pub struct ConvOptions {
pub precision: Precision,
pub layers: i32,
pub cluster: i32,
}
Expand description
Options for conv operation
Fields§
§precision: Precision
precision: Precision
-> Convolve with this precision
Integer
-> VIPS_PRECISION_INTEGER = 0
Float
-> VIPS_PRECISION_FLOAT = 1 [DEFAULT]
Approximate
-> VIPS_PRECISION_APPROXIMATE = 2
Last
-> VIPS_PRECISION_LAST = 3
layers: i32
layers: i32
-> Use this many layers in approximation
min: 1, max: 1000, default: 5
cluster: i32
cluster: i32
-> Cluster lines closer than this in approximation
min: 1, max: 100, default: 1
Trait Implementations§
Source§impl Clone for ConvOptions
impl Clone for ConvOptions
Source§fn clone(&self) -> ConvOptions
fn clone(&self) -> ConvOptions
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 ConvOptions
impl Debug for ConvOptions
Auto Trait Implementations§
impl Freeze for ConvOptions
impl RefUnwindSafe for ConvOptions
impl Send for ConvOptions
impl Sync for ConvOptions
impl Unpin for ConvOptions
impl UnwindSafe for ConvOptions
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