필터 지우기
필터 지우기

Compare binary images: if a pixel is 1 in both images, set it to 1 in a third image, if not, set it to 0...

조회 수: 2 (최근 30일)
Hello everyone,
hopefully someone can help me. I have performed an erosion-dilation operation on a binary image and now I want to compare the eroded-dilated image with the original image. If a pixel is 1 in both images, I want to write it as 1 into a new image, if it's 0 in both it's supposed to be 0, and if it's 1 in the one and 0 in the other picture it's supposed to be written as 0.
How do I program an algorithm able to do that?
Any help would be great!
Thymes

채택된 답변

Matt J
Matt J 2012년 10월 19일
편집: Matt J 2012년 10월 19일
result = OriginalImage & OpenedImage
  댓글 수: 6
Matt J
Matt J 2012년 10월 22일
이동: DGM 2023년 12월 29일
Yes, I think I understand the situation, but first, Accept-click my answer (since it is correct) and make a new post for your new question.

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by