How to crop images with a fixed aspect ratio
3 views (last 30 days)
Show older comments
After a period of time, I want to re-evaluate MATLAB for image processing. I saw augmentedImageDatastore used to process image data in batches. I regret to find that MATLAB still cannot perform equal-scale cropping of images and cannot implement it manually. I don't think this is a complicated features.Why has it not been implemented yet?
0 Comments
Answers (1)
Walter Roberson
on 28 Mar 2021
Edited: Walter Roberson
on 28 Mar 2021
Use a transform data store.
Notice that transform() is specifically supported for that class; https://www.mathworks.com/help/deeplearning/ref/augmentedimagedatastore.html?searchHighlight=augmented%20data%20store&s_tid=srchtitle#d123e10506
See Also
Categories
Find more on Image Data Workflows 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!