translate_cog

translation of centre of gravity of a 2d image to the origin.
ダウンロード: 179
更新 2013/5/24

ライセンスの表示

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

引用

anukriti dureha (2024). translate_cog (https://www.mathworks.com/matlabcentral/fileexchange/41927-translate_cog), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2011a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0