CICannyEdgeDetector

Trait CICannyEdgeDetector 

Source
pub unsafe trait CICannyEdgeDetector: CIFilterProtocol {
    // Provided methods
    unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
       where Self: Sized + Message { ... }
    unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
       where Self: Sized + Message { ... }
    unsafe fn gaussianSigma(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setGaussianSigma(&self, gaussian_sigma: c_float)
       where Self: Sized + Message { ... }
    unsafe fn perceptual(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn setPerceptual(&self, perceptual: bool)
       where Self: Sized + Message { ... }
    unsafe fn thresholdHigh(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setThresholdHigh(&self, threshold_high: c_float)
       where Self: Sized + Message { ... }
    unsafe fn thresholdLow(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setThresholdLow(&self, threshold_low: c_float)
       where Self: Sized + Message { ... }
    unsafe fn hysteresisPasses(&self) -> NSInteger
       where Self: Sized + Message { ... }
    unsafe fn setHysteresisPasses(&self, hysteresis_passes: NSInteger)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Canny Edge Detector filter.

Applies the Canny Edge Detection algorithm to an image.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
where Self: Sized + Message,

Available on crate feature CIImage only.

The image to use as an input for the effect.

Source

unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
where Self: Sized + Message,

Available on crate feature CIImage only.

Setter for inputImage.

Source

unsafe fn gaussianSigma(&self) -> c_float
where Self: Sized + Message,

The gaussian sigma of blur to apply to the image to reduce high-frequency noise.

Source

unsafe fn setGaussianSigma(&self, gaussian_sigma: c_float)
where Self: Sized + Message,

Setter for gaussianSigma.

Source

unsafe fn perceptual(&self) -> bool
where Self: Sized + Message,

Specifies whether the edge thresholds should be computed in a perceptual color space.

Source

unsafe fn setPerceptual(&self, perceptual: bool)
where Self: Sized + Message,

Setter for perceptual.

Source

unsafe fn thresholdHigh(&self) -> c_float
where Self: Sized + Message,

The threshold that determines if gradient magnitude is a strong edge.

Source

unsafe fn setThresholdHigh(&self, threshold_high: c_float)
where Self: Sized + Message,

Setter for thresholdHigh.

Source

unsafe fn thresholdLow(&self) -> c_float
where Self: Sized + Message,

The threshold that determines if gradient magnitude is a weak edge.

Source

unsafe fn setThresholdLow(&self, threshold_low: c_float)
where Self: Sized + Message,

Setter for thresholdLow.

Source

unsafe fn hysteresisPasses(&self) -> NSInteger
where Self: Sized + Message,

The number of hysteresis passes to apply to promote weak edge pixels.

Source

unsafe fn setHysteresisPasses(&self, hysteresis_passes: NSInteger)
where Self: Sized + Message,

Setter for hysteresisPasses.

Trait Implementations§

Source§

impl ProtocolType for dyn CICannyEdgeDetector

Source§

const NAME: &'static str = "CICannyEdgeDetector"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn CICannyEdgeDetector

Implementations on Foreign Types§

Source§

impl<T> CICannyEdgeDetector for ProtocolObject<T>

Implementors§