109c109 < if( !CV_ARE_SIZES_EQ(inputImage, maskImage ) ) --- > if( inputImage->width != maskImage->width || inputImage->height != maskImage->height )