MATLAB: How to combine two different binary image

digital image processingimage processing

Halo im Indra. i have a final project to combine two images from optik disk segmentation and optik cup segmentation on binary image. i cant combine both image. optik disk in white and optik cup in black
. and the result like this picture. can you help me?

Best Answer

Use bwperim(). From left to right for your 4 desired images:
image1 = bwperim(opticCup);
image2 = bwperim(opticDisc);
image3 = opticsCup & opticDisc;
image4 = bwperim(image3);
% or
image4 = image1 | image2;
Related Question