is it possible to convert binary image to rgb image or i want to replace all pixel values 0 by some red or green color in new image?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
is it possible to convert binary image to rgb image or i want to replace all pixel values 0 by some red or green color in new image using matlab code?
0 commentaires
Réponse acceptée
Christoph
le 20 Juil 2011
How about
image=repmat(double(image),[1,1,3]);
this way you have a matrix with 3 dimensions. image(:,:,1)is the red channel, image(:,:,2) the green one and image(:,:,3) is blue. Now you could set the channels according to your needs.
Hope this helps
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Convert Image Type dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!