changing the colour gray

2 visualizzazioni (ultimi 30 giorni)
kash
kash il 18 Mar 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 Commenti
Jan
Jan il 18 Mar 2013
@kash: Please post the class of the input, because "binary image" is not an exact definition.
kash
kash il 19 Mar 2013
the class is logical

Accedi per commentare.

Risposta accettata

Image Analyst
Image Analyst il 19 Mar 2013
grayValue = uint8(128); % or whatever you want in the range of 1-255
grayScaleImage = grayValue * uint8(binaryImage);

Più risposte (0)

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by