translate_cog

translation of centre of gravity of a 2d image to the origin.
180 téléchargements
Mise à jour 24 mai 2013

Afficher la licence

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]);

Citation pour cette source

anukriti dureha (2025). translate_cog (https://fr.mathworks.com/matlabcentral/fileexchange/41927-translate_cog), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2011a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.0.0.0