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§
Sourceunsafe fn inputImage(&self) -> Option<Retained<CIImage>>
Available on crate feature CIImage only.
unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
CIImage only.The image to use as an input for the effect.
Sourceunsafe fn setInputImage(&self, input_image: Option<&CIImage>)
Available on crate feature CIImage only.
unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
CIImage only.Setter for inputImage.
Sourceunsafe fn gaussianSigma(&self) -> c_float
unsafe fn gaussianSigma(&self) -> c_float
The gaussian sigma of blur to apply to the image to reduce high-frequency noise.
Sourceunsafe fn setGaussianSigma(&self, gaussian_sigma: c_float)
unsafe fn setGaussianSigma(&self, gaussian_sigma: c_float)
Setter for gaussianSigma.
Sourceunsafe fn perceptual(&self) -> bool
unsafe fn perceptual(&self) -> bool
Specifies whether the edge thresholds should be computed in a perceptual color space.
Sourceunsafe fn setPerceptual(&self, perceptual: bool)
unsafe fn setPerceptual(&self, perceptual: bool)
Setter for perceptual.
Sourceunsafe fn thresholdHigh(&self) -> c_float
unsafe fn thresholdHigh(&self) -> c_float
The threshold that determines if gradient magnitude is a strong edge.
Sourceunsafe fn setThresholdHigh(&self, threshold_high: c_float)
unsafe fn setThresholdHigh(&self, threshold_high: c_float)
Setter for thresholdHigh.
Sourceunsafe fn thresholdLow(&self) -> c_float
unsafe fn thresholdLow(&self) -> c_float
The threshold that determines if gradient magnitude is a weak edge.
Sourceunsafe fn setThresholdLow(&self, threshold_low: c_float)
unsafe fn setThresholdLow(&self, threshold_low: c_float)
Setter for thresholdLow.
Sourceunsafe fn hysteresisPasses(&self) -> NSInteger
unsafe fn hysteresisPasses(&self) -> NSInteger
The number of hysteresis passes to apply to promote weak edge pixels.
Sourceunsafe fn setHysteresisPasses(&self, hysteresis_passes: NSInteger)
unsafe fn setHysteresisPasses(&self, hysteresis_passes: NSInteger)
Setter for hysteresisPasses.