translate_cog
Version 1.0.0.0 (1,19 KB) von
anukriti dureha
translation of centre of gravity of a 2d image to the origin.
pts is the matrix representing the 2-D shape or an image. It translates the shape's center of gravity to its origin.
%trans_mat represents the translated matrix of the input matrix pts.
eg:
i=imread('circle.gif');
[x,y]=find(i);
translate_cog([x,y]);
Zitieren als
anukriti dureha (2024). translate_cog (https://www.mathworks.com/matlabcentral/fileexchange/41927-translate_cog), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Erstellt mit
R2011a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Image Arithmetic >
Mehr zu Image Arithmetic finden Sie in Help Center und MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |