[−][src]Function arrayfire::scale
pub fn scale<T: HasAfEnum>(
input: &Array<T>,
scale0: f32,
scale1: f32,
odim0: i64,
odim1: i64,
method: InterpType
) -> Array<T>
Scale an Image
Scale is the same functionality as resize except that the scale function uses the transform kernels. The other difference is that scale does not set boundary values to be the boundary of the input array. Instead these are set to 0.
Scale is a special case of the transform function.
Parameters
inputis input imagetrans0is amount by which the first dimension is translatedtrans1is amount by which the second dimension is translatedodim0is the first output dimensionodim1is the second output dimensionmethodis the interpolation type (Nearest by default)
Return Values
Translated Image(Array).