changing the colour gray
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Jan
2013-3-18
@kash: Please post the class of the input, because "binary image" is not an exact definition.
采纳的回答
Image Analyst
2013-3-19
grayValue = uint8(128); % or whatever you want in the range of 1-255
grayScaleImage = grayValue * uint8(binaryImage);
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!