Input slice of an image.
Output magnitude value of gradients. If shape does not correspond to input, is allocated anew.
Orientation value of gradients in radians. If shape does not correspond to input, is allocated anew.
Optional convolution kernel type to calculate partial derivatives. Default value is EdgeKernel.SIMPLE, which calls calcPartialDerivatives function to calculate derivatives. Other options will perform convolution with requested kernel type.
TaskPool instance used parallelise the algorithm.
Note: Input slice's memory has to be contiguous. Magnitude and orientation slices' strides have to be the identical.
Calculate gradient magnitude and orientation of an image slice.