How to detect size of image?

1 view (last 30 days)
Tejas
Tejas on 20 Jan 2016
Commented: Walter Roberson on 21 Jan 2016
How to detect the size of the image ?

Answers (2)

Walter Roberson
Walter Roberson on 20 Jan 2016
size()
  1 Comment
Walter Roberson
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.

Sign in to comment.


Image Analyst
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);

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!