please explain size function in MATLAB

Antworten (1)

Image Analyst
Image Analyst am 18 Okt. 2017

0 Stimmen

size(img,3) returns the number of color channels in an image. It will be 1 for a gray scale image and 3 for an RGB image. That should explain it (why they ask for a color image if the program was given a gray scale image).

Kategorien

Mehr zu Display Image finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 18 Okt. 2017

Beantwortet:

am 18 Okt. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by