GenerateKernel function works, matches matchKernel to fraction of a pixel