필터 지우기
필터 지우기

How to smooth binary image

조회 수: 6 (최근 30일)
ijsonvjksrefdsb
ijsonvjksrefdsb 2023년 4월 22일
댓글: ijsonvjksrefdsb 2023년 4월 25일
I have the binary image below which I want to use Hough Transform to detect the line in the middle. However, it cannot detect it. How can I smooth the image so the line is more easily detectable for the hough function? Thank you

채택된 답변

Matt J
Matt J 2023년 4월 22일
편집: Matt J 2023년 4월 22일
load BWImage;
BW=(1-entropyfilt(BW,ones([11,5])));
BW=imclose(BW,ones([11,1]));
BW=bwareaopen(BW>0.2,20);
imshow(BW,[])
  댓글 수: 7
ijsonvjksrefdsb
ijsonvjksrefdsb 2023년 4월 25일
@Image Analyst They used radon on the binary images to get the max and min values for a background subtraction, I attached the paper here, I only followed what they instructed in pages 3-4 for the binary images, then about radon in page 5.
ijsonvjksrefdsb
ijsonvjksrefdsb 2023년 4월 25일
@Matt J I see, I'll check it out, thanks a lot!

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by