Calculates gradient for a single layer
calculate_gradient(x)
x | Image object, must be only 2-dimensional |
---|
A list with elements:
xThe same image passed
gradxThe gradient on the X-axis
gradyThe gradient on the Y-axis
magnitudeThe overall gradient magnitude
orientationthe overal gradient orientation