I developing a convolutional neural network (CNN) for image image classification.
The dataset available to me is relatively small (~35k images for both train and test sets). Each image in the dataset varies in size. The smallest image is 30 x 77 and the largest image is 1575 x 5959.
I saw this post about how to deal with images that vary in size. The post identifies the following methods for dealing with images of different sizes.
"Squash" images meaning they will be resized to fit specific dimensions without maintaining the aspect ratio
Center-crop the images to a specific size.
- Pad the images with a solid color to a squared size, then resize.
- Combination of the things above
These seem like reasonable suggestions, but I am unsure of which approach is most relevant for my situation where the images have significant differences in sizes. I was thinking it makes sense for me to resize the images but maintain the same aspect ratio (each image would have the same height), and then take a center crop of these images.
Does anyone else have any thoughts?