필터 지우기
필터 지우기

removal the outer boundary of bw image?

조회 수: 5 (최근 30일)
mmm ssss
mmm ssss 2012년 1월 29일
Hi all
i wrote this code
y=imread('..........bmp');
bw=im2bw(y);
b=bwboundaries(bw);
boundry=b{1};
imshow(bw);
hold on;
plot(boundry(:,2),boundry(:,1),'g');
now i need to remove the outer boundary in green color without any effect on the details inside this boundary , is this possible in matlab ? if it is possible how can this be done?
regards
  댓글 수: 4
mmm ssss
mmm ssss 2012년 1월 29일
*without any affect on the details inside it
Image Analyst
Image Analyst 2012년 1월 29일
Walter, I tried but I have no idea what he wants. Apparently it's not what you or I suggested even though both suggestions were valid possible approaches according to how he unclearly worded his question.

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

답변 (1개)

Image Analyst
Image Analyst 2012년 1월 29일
Use morphological erosion
bw = imerode(bw, true(3));
  댓글 수: 12
mmm ssss
mmm ssss 2012년 1월 30일
and the obtain image mg without these border?
mmm ssss
mmm ssss 2012년 1월 30일
*and the obtain image mg without these border?

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

Community Treasure Hunt

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

Start Hunting!

Translated by