How it is possible to change all images orientation to same i.e. to vertical
Show older comments
My folder consisting of 1000 binary images with different orientation. I want to make all of them to vertically align. How it will be possible through a single code ? Later I want to save all the vertically aligned images to a new folder. Note:few images are already in vertical orientation . I want to keep them as it is .
Accepted Answer
More Answers (1)
Matt J
on 21 Jun 2018
0 votes
Use imrotate() with the Orientation angle given by regionprops().
4 Comments
Zara Khan
on 21 Jun 2018
Matt J
on 21 Jun 2018
Zara Khan commented:
I have already accessed and loaded them in matlab. But each image having different orientation and then how it will be possible to set all them to vertically align ? It is possible through a code ?
Matt J
on 21 Jun 2018
You loop through them and apply regionprops and imrotate to each one separately.
Categories
Find more on Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

