MATLAB: White, Black and Brown color detection cancercolor segmentationcolordetectionImage Processing Toolboxskin cancer Hi all, could you please help me to detect white, Black and Brown colors from the given skin cancer image best regards Abrham Debasu Best Answer See color segmentation demos in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 Related SolutionsMATLAB: Change pixel colour / intensity from black to white, white remains white, and from other colour to black YourRGBImage = imread(....); %or dicomread() as appropriateGrayImage = rgb2gray( im2double( YourRGBImage ) );BWImage = (GrayImage == 0 || GrayImage == 1); MATLAB: How to change white background to black and black foreground to white The logical not operator is ~ (or you can use not):invertedI = ~BW%orinvertedI = not(BW) Related QuestionColor filtration for Green, Brown, Orange, White and black
Best Answer