darsia.backward_diff#
- backward_diff(img, axis, dim=2, h=None)[source]#
Backward difference of image matrix in direction of axis.
- Parameters:
- img
np.ndarray Image array in single-color space.
- axis
int Axis along which the difference is taken.
- dim
int Dimension of image array.
- h
Optional[float] Grid spacing.
- img
- Returns:
np.ndarrayBackward difference image matrix.