What Is the third value when reading an image
3 次查看(过去 30 天)
显示 更早的评论
When using imread() we get a matrix of the size [r,c,x] what does x stand for?
回答(2 个)
Image Analyst
2018-11-13
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.
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!