Borrar filtros
Borrar filtros

How to crop images with a fixed aspect ratio

4 visualizaciones (últimos 30 días)
Shino Asada
Shino Asada el 28 de Mzo. de 2021
Comentada: Shino Asada el 29 de Mzo. de 2021
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?

Respuestas (1)

Walter Roberson
Walter Roberson el 28 de Mzo. de 2021
Editada: Walter Roberson el 28 de Mzo. de 2021
  1 comentario
Shino Asada
Shino Asada el 29 de Mzo. de 2021
I used transform to achieve proportional scaling, but I encountered a problem when using it with augmentedImageDatastore. Transform should be used before it (because it needs to specify outputSize), but it does not support TransformedDatasore as input. How to solve it?

Iniciar sesión para comentar.

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by