Function ndarray_ndimage::sobel

source ·
pub fn sobel<S, A, D>(
    data: &ArrayBase<S, D>,
    axis: Axis,
    mode: BorderMode<A>
) -> Array<A, D>where
    S: Data<Elem = A>,
    A: Copy + Signed + ScalarOperand + FromPrimitive + PartialOrd,
    for<'a> &'a [A]: SymmetryStateCheck,
    D: Dimension,
Expand description

Calculate a Prewitt filter.

  • data - The input N-D data.
  • axis - The axis of input along which to calculate.
  • mode - Method that will be used to select the padded values. See the CorrelateMode enum for more information.