how to perform false coloring without gray scale conversion?
Afficher commentaires plus anciens
Réponse acceptée
Plus de réponses (1)
KALYAN ACHARJYA
le 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 commentaire
sruthi viswanath
le 13 Oct 2018
Catégories
En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
