How to represent RGB color information using matlab?

조회 수: 1 (최근 30일)
Minale Habtemichael
Minale Habtemichael 2015년 3월 12일
댓글: Minale Habtemichael 2015년 3월 13일
I want to hold the RGB color information of colored images using matlab; so as i can distinctly differentiate different objects using color information?
Very Thanks.

답변 (1개)

Michael Haderlein
Michael Haderlein 2015년 3월 12일
Images are represented by (m x n x 3) arrays. This is basically three two-dimensional arrays behind each other. The first layer is R, the second is G and the third is B. Means, if you want to get the three layers separated:
img=imread('myimage.png');
R=img(:,:,1);
G=img(:,:,2);
B=img(:,:,3);
  댓글 수: 3
Image Analyst
Image Analyst 2015년 3월 12일
Why a tensor? What's wrong with a 3D array like the rest of the world? What form do you even use tensors in in MATLAB? If not arrays, then what? Structures, tables, cell arrays, what????
Minale Habtemichael
Minale Habtemichael 2015년 3월 13일
Very Thanks for your comment, You know sir i read one paper "http://lear.inrialpes.fr/people/vandeweijer/papers/cic04.pdf" which is found on this URI, it is very important for my thesis since it can help me to hold color information with out converting to gray scale; but i am unable to implement it,using matlab this is the rational behind. Very thanks.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by