MATLAB: Colouring in white pixels on an image

bwcolormapcolormapsimagemanipulationpixelsrgbsaturated

I've been given a 64 bit image which is partially saturated, and I need to convert it to 256 bit, then change the colormap so that the saturated pixels can be colored in blue. How do I do this?

Best Answer

Ignoring the 64 bit nonsense (since I think this just means your image came from a 64 bit computer CPU/operating system), you'd do this:
imshow(yourImage);
cMap = gray(256); % Most of the image is grayscale
cMap(256,:) = [0 0 1]; % Last row is blue.
colormap(cMap);
colorbar;
Related Question