pub fn apply_transform(src: &NDArray, transform: TransformType) -> NDArrayExpand description
Apply a transform to an NDArray.
Handles 2-D mono images and 3-D RGB1/RGB2/RGB3 color images. The per-color
reindexing mirrors C++ transformNDArray: source (x, y) is geometrically
mapped to destination (x, y) and every color component is copied with the
destination strides recomputed for the (possibly swapped) X/Y sizes.