pub struct GpuCannyOptions {
pub low_threshold: f64,
pub high_threshold: f64,
pub aperture_size: u32,
pub l2_gradient: bool,
}Expand description
Threshold and gradient options for resident grayscale Canny.
Fields§
§low_threshold: f64Finite nonnegative lower threshold. Reversed thresholds are swapped.
high_threshold: f64Finite nonnegative upper threshold; strong comparisons are strict.
aperture_size: u32Sobel aperture: 3, 5 or 7. Aperture 7 uses the CPU-compatible 1/16 scale.
l2_gradient: boolCompare squared Euclidean magnitudes instead of L1 magnitudes.
Trait Implementations§
Source§impl Clone for GpuCannyOptions
impl Clone for GpuCannyOptions
Source§fn clone(&self) -> GpuCannyOptions
fn clone(&self) -> GpuCannyOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GpuCannyOptions
Source§impl Debug for GpuCannyOptions
impl Debug for GpuCannyOptions
Source§impl Default for GpuCannyOptions
impl Default for GpuCannyOptions
Source§impl PartialEq for GpuCannyOptions
impl PartialEq for GpuCannyOptions
impl StructuralPartialEq for GpuCannyOptions
Auto Trait Implementations§
impl Freeze for GpuCannyOptions
impl RefUnwindSafe for GpuCannyOptions
impl Send for GpuCannyOptions
impl Sync for GpuCannyOptions
impl Unpin for GpuCannyOptions
impl UnsafeUnpin for GpuCannyOptions
impl UnwindSafe for GpuCannyOptions
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