mGradMag function now operates on float* images