changing the colour gray
Show older comments
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 Comments
Alessandro
on 18 Mar 2013
use class(image) to determinate what kind of data you have. If it is int8 than you can just image2 = image./2 If it is logical than you can write image2 = int8(image).*127
kash
on 18 Mar 2013
Jan
on 18 Mar 2013
@kash: Please post the class of the input, because "binary image" is not an exact definition.
kash
on 19 Mar 2013
Accepted Answer
More Answers (0)
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!