how to perform false coloring without gray scale conversion?
Show older comments
Accepted Answer
More Answers (1)
KALYAN ACHARJYA
on 13 Oct 2018
More clarification needed, though I am trying to figure out what you looking for. %You can directly force the particular value in the respective color plane. %Say if you want all pixel values less than 124 then you can be forced all pixel values should be red color in any plane
rgb_image=imread('test.jpg');
figure, imshow(rgb_image);
R=rgb_image(:,:,1);
G=rgb_image(:,:,2);
B=rgb_image(:,:,3);
R=R<=124;
G=G>124;
G=G<230;
B=B>230;
And cat displays all three planes. Also, you can force any specific two colors to zero, the third one will remain.
G(:,:)>124==0;
B(:,:)>124==0;
1 Comment
sruthi viswanath
on 13 Oct 2018
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!