how to convert a grayscale and a colour image into pixels.in matlab
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
shamili
le 12 Jan 2015
Réponse apportée : Image Analyst
le 12 Jan 2015
how to convert a grayscale and a colour image into pixels.in matlab
0 commentaires
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 12 Jan 2015
I'm not exactly sure what you mean. These lines of code convert an image stored in a disk file into a variable in your MATLAB program.
grayImage = imread(fullFileName);
rgbImage = imread(fullFileName);
To display them, do this:
imshow(grayImage);
imshow(rgbImage);
Those lines of code take the image in the variable and make it an image on your computer screen.
You can find several examples of this in my tutorials in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
0 commentaires
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!