how to perform false coloring without gray scale conversion?
Mostrar comentarios más antiguos
Respuesta aceptada
Más respuestas (1)
KALYAN ACHARJYA
el 13 de Oct. de 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 comentario
sruthi viswanath
el 13 de Oct. de 2018
Categorías
Más información sobre Convert Image Type en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
