I want to train my classifier with some images, some of which have different dimensions.
They all fall under the following dimensions:
- 100x50
- 50x100
- 64x72
- 72x64
However, with 9 orientation bins, and 8 pixels per cell, each of these generates 648 HoG features.
I actually chose all images to be of one of these sizes so that they would end up having the same number of HoG features so that training is uniform.
The reason I opted for this is because the object of interest in the training images sometimes has a different aspect ratio, hence cropping all the images the same size for some of the images left too much background in there.
Now my question is - does it matter what the aspect ratio/image dimensions of the training images are, as long as the number of HoG features is consistent? (My training algorithm only takes in the HoG features).