please explain size function in MATLAB

답변 (1개)

Image Analyst
Image Analyst 2017년 10월 18일

0 개 추천

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).

카테고리

도움말 센터File Exchange에서 Display Image에 대해 자세히 알아보기

질문:

2017년 10월 18일

답변:

2017년 10월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by