영상에 모폴로지 열기 연산 수행

  • 원본 영상

  • 소스 코드
I=imread('twopills-1.png');
nhood=ones(3,3);
J=imopen(I, nhood);

figure;
subplot(1,2,1);
imshow(I);
title('<원본>','FontWeight','bold');
subplot(1,2,2);
imshow(J);
title('<열기(Opening)>','FontWeight','bold');
  • 결과

Leave a Reply

Your email address will not be published. Required fields are marked *