changing the colour gray

1 Ansicht (letzte 30 Tage)
kash
kash am 18 Mär. 2013
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
  4 Kommentare
Jan
Jan am 18 Mär. 2013
@kash: Please post the class of the input, because "binary image" is not an exact definition.
kash
kash am 19 Mär. 2013
the class is logical

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 19 Mär. 2013
grayValue = uint8(128); % or whatever you want in the range of 1-255
grayScaleImage = grayValue * uint8(binaryImage);

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by