24 May 2013
translation of centre of gravity of a 2d image to the origin.
function [ trans_mat ] = translate_cog(pts)
%2D translation of centre of gravity to te origin
% pts is the matrix representing the 2D shape or an image. It translates the shape's centre of gravity to its origin.
%trans_mat represnts the translated matrix of the input matrix pts.