Filter löschen
Filter löschen

size function in MATLAB

2 Ansichten (letzte 30 Tage)
Marium Malik
Marium Malik am 6 Sep. 2012
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?

Akzeptierte Antwort

Image Analyst
Image Analyst am 6 Sep. 2012
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.

Weitere Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by