MATLAB: Changing the colour gray

colourImage Processing Toolbox

I have a binary image with black background and a white object in circle ,now i want to change the colour of white to gray plz help

Best Answer

grayValue = uint8(128); % or whatever you want in the range of 1-255
grayScaleImage = grayValue * uint8(binaryImage);
Related Question