Matrix Size of my images
3 次查看(过去 30 天)
显示 更早的评论
回答(2 个)
Image Analyst
2012-9-12
[rows columns numberOfColorChannels] = size(yourImageArray); % Best way
For images, make sure you use the third output argument. Otherwise if it's a color image and you do
[rows columns] = size(yourImageArray); % unsafe way to do it.
then your columns will actually be columns multiplied by the number of color channels (3) in your image.
1 个评论
Jan
2012-9-12
@Esther: It is not surprising that the command size determines the size of arrays. I recommend to read the "Getting Started" chapters of the documentation to learn at first the basics and at second how to find related information in the docs.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Eye Tracking 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!