MATLAB: One image 2 diferent colors ,

background normalizationpreprossesing image

I have one image with a circle, outside the circunference the color are black inside the circle the color before convert to grayscale, is gray, how can apply after normalize de image apply a mask who convert a the background in same color (gray). https://www.dropbox.com/sc/zfp80poi11m8q55/lnRX67BT4L exemple image A and B

Best Answer

It looks like B was simply the convolution of A with a high pass filter, like the Laplacian or dog filter. Do you want to do that or you simply want the black surround to be gray?