Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I was involved in doing some image editing software (Just for practicing) and i would like to know how one can you make your code understand that the image what you are processing was a Landscape, portrait, Panorama or an normal image.

Shall we use it's Height and Width to identify? or is there is any algorithm available to identify that?
Posted

Height and Width are all you really have: if it's Height is bigger than it's Width, it's Portrait.
If it's Width is massively bigger than it's Height, it's Panoramic, if it's "just bigger" then it's landscape.

And what the heck a "normal image" is, I have no idea! :laugh:

The only wrinkle here is if the image has been rotated - and you can only work that out by contextual analysis of the image content, which is a major, major job!
 
Share this answer
 
Comments
Philippe Mori 25-Apr-15 20:58pm    
I thing it is possible to know if the appropriate information is saved in the file. In fact dependly on the OS, the software and the camera, image will (almost) always be displayed in the proper orientation

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900