Solved – featurizing images of different sizes

image processingmachine learningsvm

I'm training a non linear svm to do classification on images. I'm featurizing the image by creating 3 features for each pixel, its rgb value. My question is: How should i normalize images of different dimensions. My initial thought is to go through all the images and find the maximum width and height; then extend all the images to that width and height and fill its missing pixel values with -1's. Will a non-linear svm work ok with this image normalization? How do other people deal with images of different sizes?

Best Answer

You can compare images with different number of features (arising from images of different sizes). Pyramid Match Kernel does just that. It tries to measure the similarity between images that have different number of features. The code is available on the internet.