size function in MATLAB
조회 수: 1 (최근 30일)
이전 댓글 표시
As we write size(img),it returns 3 values. I need to know what does the last value tells us? My result is 240 320 5. What does 5 tell?
댓글 수: 0
채택된 답변
Image Analyst
2012년 9월 6일
It has 5 color channels. You have a multi-spectral image.
[rows columns numberOfColorChannels] = size(yourImageArray);
numberOfColorChannels = 1 for a gray scale image, =3 for an RGB image or volumetric gray scale image, and >3 for multi-spectral images or higher dimensional arrays.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!