How to find total number of pixels in a colour image? How to find the resolution of an 2D image?
2 次查看(过去 30 天)
显示 更早的评论
How to find total number of pixels in a colour image? How to find the resolution of an 2D image?
2 个评论
Image Analyst
2021-2-27
I told you in the Answer below. Anyway, I'm now attaching my spatial calibration demo.
采纳的回答
Image Analyst
2021-2-24
[rows, columns, numColorChannels] = size(rgbImage);
numberOfPixels = rows * columns;
Digital resolution is number of rows and columns.
Spatial resolution in the real world units is the field of view in real world units divided by the number of rows or columns.
0 个评论
更多回答(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!