Image Centroids and Moments

11 ビュー (過去 30 日間)
Aravin
Aravin 2012 年 2 月 12 日
Hello everyone,
I m interested in to vectrize the code to calculate the image moments. Description can be found on following link:
It is calculated as follow:
Image or patch is provided with two boolean varibales, let say p and q. Then
M_p_q = Summation(x,y) x^p y^q image(x,y).
How could I do this without loops or with single loop. I will be thankful for kind help.

回答 (1 件)

Image Analyst
Image Analyst 2012 年 2 月 12 日
I gave code for computing the third and fourth central moments (skew and kurtosis) in http://www.mathworks.com/matlabcentral/answers/15307-image-operations-skewness-and-kurtosis But there is a difference between the moments with regard to intensity and the moments with regard to how the image is distributed spatially. You know the difference don't you?

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by