Function ripple::signal::sampling::slices::subsample_convert [−][src]
pub fn subsample_convert<T, U>(
src: &[T],
dst: &mut [U],
ncols: usize,
step: usize,
transpose: bool
) where
T: Into<U>,
T: Scalar + Copy,
U: Scalar + Copy,
Expand description
Converts a src slice of type T, assumed to be an image with given ncols into a destination slice of type U. If transpose is true, rows becomes columns in the resulting image. step gives the subsampling step required.