a question aobout itkSimilarityIndexImageFilter

Recently, I was studying about ITK and used itksimilarityimageindexfilter

I wonder if this filter has any requirements for two input images? For example, does it need two images to be the same size?And What would it do with two images of different sizes?