AI CH-4 – Slope Feature Extraction – Part-6 It takes an Image and converts it into gray scale if it is not already in gray scale. For slope magnitude it checks the per pixel maximum change with its neighbor’s pixels.