필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
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