This must be applied to the input image! I know OpenCV applies it to the response... but I don't see how this makes sense at all...