pub struct CompassOptions {
pub times: i32,
pub angle: Angle45,
pub combine: Combine,
pub precision: Precision,
pub layers: i32,
pub cluster: i32,
}Expand description
Options for compass operation
Fields§
§times: i32times: i32 -> Rotate and convolve this many times
min: 1, max: 1000, default: 2
angle: Angle45angle: Angle45 -> Rotate mask by this much between convolutions
D0 -> VIPS_ANGLE45_D0 = 0
D45 -> VIPS_ANGLE45_D45 = 1
D90 -> VIPS_ANGLE45_D90 = 2 [DEFAULT]
D135 -> VIPS_ANGLE45_D135 = 3
D180 -> VIPS_ANGLE45_D180 = 4
D225 -> VIPS_ANGLE45_D225 = 5
D270 -> VIPS_ANGLE45_D270 = 6
D315 -> VIPS_ANGLE45_D315 = 7
Last -> VIPS_ANGLE45_LAST = 8
combine: Combinecombine: Combine -> Combine convolution results like this
Max -> VIPS_COMBINE_MAX = 0 [DEFAULT]
Sum -> VIPS_COMBINE_SUM = 1
Min -> VIPS_COMBINE_MIN = 2
Last -> VIPS_COMBINE_LAST = 3
precision: Precisionprecision: 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: i32layers: i32 -> Use this many layers in approximation
min: 1, max: 1000, default: 5
cluster: i32cluster: i32 -> Cluster lines closer than this in approximation
min: 1, max: 100, default: 1
Trait Implementations§
Source§impl Clone for CompassOptions
impl Clone for CompassOptions
Source§fn clone(&self) -> CompassOptions
fn clone(&self) -> CompassOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more