i use function size(a), 1200*1920*3. what 3 means in this?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
chitresh
el 4 de Oct. de 2013
Comentada: Image Analyst
el 4 de Oct. de 2013
where a is my image matrix, i got result as 1200*1920*3. what 3 means in this?
0 comentarios
Respuesta aceptada
Image Analyst
el 4 de Oct. de 2013
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);
0 comentarios
Más respuestas (1)
ES
el 4 de Oct. de 2013
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 comentarios
Urmila
el 4 de Oct. de 2013
hello, actually i have the same problem.If you understand the concept,tell me also.Thanks in advance.
Image Analyst
el 4 de Oct. de 2013
Did you read Steve's blog that I posted in my answer? It discusses it at length.
Ver también
Categorías
Más información sobre Computer Vision with Simulink en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!