how to convert a grayscale and a colour image into pixels.in matlab
13 次查看(过去 30 天)
显示 更早的评论
how to convert a grayscale and a colour image into pixels.in matlab
0 个评论
采纳的回答
更多回答(1 个)
Image Analyst
2015-1-12
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!