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!