フィルターのクリア

we are not getting centroid, Orientation and other parameters using regionprops

1 回表示 (過去 30 日間)
narayana reddy
narayana reddy 2016 年 2 月 9 日
コメント済み: Guillaume 2016 年 2 月 9 日
we are not getting the answers of centroid, Orientation and other parameters using regionprops. answers are not displaying on the command window
  1 件のコメント
Image Analyst
Image Analyst 2016 年 2 月 9 日
Let's see your code. How are you trying to do that? For example, are you using fprintf()? Or are you just putting some variable on its own line without the semicolon? regionprops() doesn't automatically spew anything to the command window (thankfully) - you have to do that with extra code somehow.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 2 月 9 日
Store the output of regionprops in a variable. Ask for particular fields of the result to be displayed. For example if you assign to blobinfo then
vertcat(blobinfo.Centroid)
  1 件のコメント
Guillaume
Guillaume 2016 年 2 月 9 日
Also, while the centroid is returned by default by regionprops. Other properties such as 'Orientation' have to be asked explicitly.

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

Community Treasure Hunt

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

Start Hunting!

Translated by