How to change particular pixel color of a binary image to other color?
Show older comments
Sir,
I have a binary image and i want to change the color of the black pixel to green. How do i do that ? Please help. Thanks in advance.
This is the binary image:

Accepted Answer
More Answers (1)
Doug Hull
on 30 Oct 2014
Change colormap?
clf
im = round(rand(10));
imshow(im)
colormap([0 1 0; 1 1 1])
1 Comment
Asif Hasan
on 30 Oct 2014
Categories
Find more on Blue 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!