フィルターのクリア

Why Pixel information is in fraction returned by regionprops function.

1 回表示 (過去 30 日間)
Dhanu Naik
Dhanu Naik 2017 年 11 月 11 日
コメント済み: Walter Roberson 2017 年 11 月 11 日
Sir,am using regionprops function to find out the properties of elliptical structure. But it's Majojaxislength Minoraxislength and perimeter are in fractions. Why those fraction values? Is there any mathematical background to calculate these properties. Can you please help me.

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 11 月 11 日
regionprops says that the MajorAxisLength and MinorAxisLength will be in pixels. The definition for Perimeter is not as clear but the output is in pixels as well.
I think your question is perhaps why the results are not integers. The answer to that is that the lengths used are based upon the distance between pixel centers, which is an integer for horizontal and vertical distances but is not integer for angles.
A
B
distance between center of A and center of B is sqrt(1^2+1^2) = sqrt(2)
  2 件のコメント
Dhanu Naik
Dhanu Naik 2017 年 11 月 11 日
Sir can you please provide mathematical background on which basis Majoraxislength and Minoraxislength functions are implimented using pixel information in matlab

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by