What Is the third value when reading an image
이전 댓글 표시
When using imread() we get a matrix of the size [r,c,x] what does x stand for?
댓글 수: 1
Adam
2018년 11월 13일
doc imread
tells you this!
답변 (2개)
madhan ravi
2018년 11월 13일
0 개 추천
Image Analyst
2018년 11월 13일
0 개 추천
When used with an image, the third output of the size() function represents how many color channels there are: 1 for a gray scale image and 3 for an RGB image. There are some watchouts if you only accept two size() outputs and you actually really have an RGB image and not a gray scale image. See the link below.
See Steve's blog discussion about this: Too much information about the size function.
카테고리
도움말 센터 및 File Exchange에서 Images에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!