Code covered by the BSD License  

Highlights from
translate_cog

Be the first to rate this file! 1 Download (last 30 days) File Size: 1.19 KB File ID: #41927
image thumbnail

translate_cog

by

 

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

| Watch this File

File Information
Description

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

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us