the size of picture show three data?
Show older comments
As shown in the figure, I found that the call size results have three photos, but the question is how to view only one photo

the 20230814.jpg is below

So why multiply by 3? Any complete argument or reason? Thank you for your enthusiastic answers.
Accepted Answer
More Answers (2)
Dyuman Joshi
on 16 Jan 2024
0 votes
It does not result in 3 images. That is a single image only, which is stored as a 3D array.
That is a RGB image, also referred as Truecolor image, stored as mxnx3 array.
Each page/plane of the array contains information regarding color intensity - the first plane in the third dimension represents the red pixel intensities, the second plane represents the green pixel intensities, and the third plane represents the blue pixel intensities.
Image Analyst
on 16 Jan 2024
0 votes
The two others said why the size is 3 times the size of the lateral dimensions (because you have 3 color channels/planes).
Don't use "image" as the name of your variable since that is a built-in function name.
You will need to define img1. You use it in your code but you don't define it. You only define img, not img1, at least in what you've shown us.
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


