필터 지우기
필터 지우기

measure the maximum distance in millimeters(mm)

조회 수: 2 (최근 30일)
Dina Abd El-twab
Dina Abd El-twab 2020년 4월 11일
댓글: Dina Abd El-twab 2020년 4월 12일
How can I measure the maximum width of the white shape in millimeters(mm) not in pixels ?

답변 (1개)

Image Analyst
Image Analyst 2020년 4월 11일
Then you need to multiply by the number of millimeters per pixel:
props = regionprops(binaryImage, 'BoundingBox')
width = props.BoundingBox(3) * mmPerPixel;
See attached demo.
  댓글 수: 4
Dina Abd El-twab
Dina Abd El-twab 2020년 4월 12일
편집: Dina Abd El-twab 2020년 4월 12일
I need it to extract features .
Image Analyst
Dina Abd El-twab
Dina Abd El-twab 2020년 4월 12일
I applied your (regionprops code), but the value that is obtained is not the right value , I applied (imtool) and I found that the maximum width is 60.07 .
But your code gave me the width is 445.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by