MIN Check for dimension of input for sobel()