I'm a beginner in matlab. I have a rgb image and I would like to get the intensity value of every pixels in the image.

조회 수: 1 (최근 30일)
For grey scale image if r,c,a are row,column,image then [r c a(r,c)] means we are storing coordinates along with intensity value in a row.how should this be modified for rgb images since they have third dimension in addition ?? and if i use rgb2gray then number of pixels are getting reduced, does this mean we are loosing some information???

채택된 답변

Image Analyst
Image Analyst 2013년 2월 2일
With a true color image, there is a third dimension. That third dimension is either the red value at that row,column location, the green value, or the blue value, depending on if the third dimension index is 1, 2, or 3 respectively.
If you use rgb2gray on an rgb image, then the output of that is a gray scale image and the gray scale image has less information in it than the original color image.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by