필터 지우기
필터 지우기

get the inner white circle

조회 수: 1 (최근 30일)
Elysi Cochin
Elysi Cochin 2016년 2월 1일
댓글: Walter Roberson 2016년 2월 1일
i wanted to get the inner white circle and blacken all the remaining portions....
please can someone help me solve this...
i am trying to get such an image.... but not getting... please help...

채택된 답변

Walter Roberson
Walter Roberson 2016년 2월 1일
regionprops() 'BoundingBox' would give you the bounding box without any problems. You could also request the 'Eccentricity' and use that to choose between the two output regions. You might also want the 'Image' property.
  댓글 수: 2
Elysi Cochin
Elysi Cochin 2016년 2월 1일
sir i used regionpropos i'm getting the outer circle... i needed the inner circle....
Walter Roberson
Walter Roberson 2016년 2월 1일
regionprops() is going to give you a structure array of length 2. You can examine the properties returned to decide which of the two each one refers to.
If you have a newer version of MATLAB, R2014b or later, you can use bwareafilt() and ask to keep the 1 'smallest'

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Denoising and Compression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by