i use function size(a), 1200*1920*3. what 3 means in this?

where a is my image matrix, i got result as 1200*1920*3. what 3 means in this?

 채택된 답변

Image Analyst
Image Analyst 2013년 10월 4일
It means there are 3 color channels. If you use only 2 outputs, then the second one is hte number of columns time the number of color channels. See Steve's blog for more info: http://blogs.mathworks.com/steve/2011/03/29/even-more-information-about-the-size-function/
[rows, columns, numberOfColorChannels= = size(rgbImage);

추가 답변 (1개)

ES
ES 2013년 10월 4일

0 개 추천

three dimensional data. I think you read a 1200X1920 colour image. The 3 rd dimension is R, G, B values. What i mean is data[:,:,1] is R, data[:,:,2] is G, data[:,:,3] is B values.

댓글 수: 3

k thanks but when i am using [M,N] = size(A); command then it gives M = 1200 and N = 5760 i.e. 1920*3 .... and according to your answer it should be M = 1200 and N = 1920
hello, actually i have the same problem.If you understand the concept,tell me also.Thanks in advance.
Did you read Steve's blog that I posted in my answer? It discusses it at length.

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

카테고리

도움말 센터File Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

질문:

2013년 10월 4일

댓글:

2013년 10월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by