I am making a project in Java. I need to calculate the gradient of an image in both vertical as well as horizontal direction for the same. Is there any function/operator in Java for this?
P.S. : I know about the gradientmagnitude operation that gives the magnitude of gradient. I need to know separate values for gradient in vertical and horizontal direction. :confused::confused: