How to crop images with a fixed aspect ratio
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Walter Roberson
2021-3-28
编辑:Walter Roberson
2021-3-28
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!