Hey, everyone! I'm studying on edge detection at MATLAB and have a sample code for that.The edges are white and the background is black.However, my teacher wants to see that edges are black and the background is white.How can I do that? .Also, edge should be only between land and sea.The edges inside land should not be shown (my code doesn't show them anyways).'erodedimg = 255 – real(erodedimg)' part does the image all white even tho I made the white edges bigger with imdilate function.
Image is attached.
I = imread('island.bmp');
BW1 = edge(I,'Prewitt',0.18);
se = strel('square',3);
erodedimg = imdilate(BW1,se);
erodedimg = 255 – real(erodedimg);
Please help me about that. Thanks by now for your attention.