Hi everyone.
In order to conduct an Object analysis from a binary source image (white=main matrix, black=background and pores)
I had to inverse the colours of the image by applying the imcomplement function and then select a Region of Interest (ROI).
From that, as a final image I'd need a binary ROI image with: white=pores, black=main matrix and background, so basically I would like to remove the white background obtained with the imcomplement function.
NOTE: I already tried to select the ROI before and then imcomplement it but it doesn't work because once created, the ROI-image is imrect type instead of logical as it is required by imcomplement.
Attached there are: the source binarized image, an example of ROI-shaped image with inverted colours.
I hope someone can help me to sort this out ASAP. Thanks in advance.
Serena.
Best Answer