필터 지우기
필터 지우기

how to convert a grayscale and a colour image into pixels.in matlab

조회 수: 5 (최근 30일)
how to convert a grayscale and a colour image into pixels.in matlab

채택된 답변

Stalin Samuel
Stalin Samuel 2015년 1월 12일

추가 답변 (1개)

Image Analyst
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.
If that's not what you mean, then explain further, after reading this.
You can find several examples of this in my tutorials in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by