How to detect size of image?
1 view (last 30 days)
Show older comments
How to detect the size of the image ?
0 Comments
Answers (2)
Walter Roberson
on 20 Jan 2016
size()
1 Comment
Walter Roberson
on 21 Jan 2016
Or are you trying to figure out the "real-world" size of what is represented in the image? If so then there are techniques, none completely reliable, but which to use would depend upon what is shown in the image.
Image Analyst
on 20 Jan 2016
Use the size() function, but only after you've read this link: http://blogs.mathworks.com/steve/2011/03/22/too-much-information-about-the-size-function/
[rows, columns, numberOfColorChannels] = size(yourImage);
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!