i want to display binary image in blue color...
1 次查看(过去 30 天)
显示 更早的评论
i want to display binary image in blue color...that is i have an image of black lines in white background... i want to display the black lines in blue color in white background.... how can i do it?
0 个评论
采纳的回答
Teja Muppirala
2012-10-17
You can change the colormap to contain blue and white. Like this:
I = im2bw(imread('cameraman.tif'));
imshow(I)
colormap([0 0 1; 1 1 1]) % Blue = [0 0 1], White = [1 1 1]
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Blue 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!