File Exchange

image thumbnail

translate_cog

version 1.0 (1.19 KB) by

translation of centre of gravity of a 2d image to the origin.

0 Downloads

Updated

View License

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

Comments and Ratings (0)

MATLAB Release
MATLAB 7.12 (R2011a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video