pub enum ResamplingFunction {
Show 49 variants
Bilinear,
Nearest,
Cubic,
MitchellNetravalli,
CatmullRom,
Hermite,
BSpline,
Hann,
Bicubic,
Hamming,
Hanning,
EwaHanning,
Blackman,
EwaBlackman,
Welch,
Quadric,
EwaQuadric,
Gaussian,
Sphinx,
Bartlett,
Robidoux,
EwaRobidoux,
RobidouxSharp,
EwaRobidouxSharp,
Spline16,
Spline36,
Spline64,
Kaiser,
BartlettHann,
Box,
Bohman,
Lanczos2,
Lanczos3,
Lanczos4,
Lanczos2Jinc,
Lanczos3Jinc,
Lanczos4Jinc,
EwaLanczos3Jinc,
Ginseng,
EwaGinseng,
EwaLanczosSharp,
EwaLanczos4Sharpest,
EwaLanczosSoft,
HaasnSoft,
Lagrange2,
Lagrange3,
Lanczos6,
Lanczos6Jinc,
Area,
}
Expand description
Describes resampling function that will be used
Variants§
Bilinear
Nearest
Cubic
MitchellNetravalli
CatmullRom
Hermite
BSpline
Hann
Bicubic
Hamming
Hanning
EwaHanning
Blackman
EwaBlackman
Welch
Quadric
EwaQuadric
Gaussian
Sphinx
Bartlett
Robidoux
EwaRobidoux
RobidouxSharp
EwaRobidouxSharp
Spline16
Spline36
Spline64
Kaiser
BartlettHann
Box
Bohman
Lanczos2
Lanczos3
Lanczos4
Lanczos2Jinc
Lanczos3Jinc
Lanczos4Jinc
EwaLanczos3Jinc
Ginseng
EwaGinseng
EwaLanczosSharp
EwaLanczos4Sharpest
EwaLanczosSoft
HaasnSoft
Lagrange2
Lagrange3
Lanczos6
Lanczos6Jinc
Area
This method replicates INTER_AREA
behaviour from OpenCV
Trait Implementations§
Source§impl Clone for ResamplingFunction
impl Clone for ResamplingFunction
Source§fn clone(&self) -> ResamplingFunction
fn clone(&self) -> ResamplingFunction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResamplingFunction
impl Debug for ResamplingFunction
Source§impl Default for ResamplingFunction
impl Default for ResamplingFunction
Source§fn default() -> ResamplingFunction
fn default() -> ResamplingFunction
Returns the “default value” for a type. Read more
Source§impl From<u32> for ResamplingFunction
impl From<u32> for ResamplingFunction
Source§impl Ord for ResamplingFunction
impl Ord for ResamplingFunction
Source§fn cmp(&self, other: &ResamplingFunction) -> Ordering
fn cmp(&self, other: &ResamplingFunction) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResamplingFunction
impl PartialEq for ResamplingFunction
Source§impl PartialOrd for ResamplingFunction
impl PartialOrd for ResamplingFunction
impl Copy for ResamplingFunction
impl Eq for ResamplingFunction
impl StructuralPartialEq for ResamplingFunction
Auto Trait Implementations§
impl Freeze for ResamplingFunction
impl RefUnwindSafe for ResamplingFunction
impl Send for ResamplingFunction
impl Sync for ResamplingFunction
impl Unpin for ResamplingFunction
impl UnwindSafe for ResamplingFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more