Added GradientMagnitudeChannel functions