CINoiseReduction

Trait CINoiseReduction 

Source
pub unsafe trait CINoiseReduction: 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 noiseLevel(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setNoiseLevel(&self, noise_level: c_float)
       where Self: Sized + Message { ... }
    unsafe fn sharpness(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setSharpness(&self, sharpness: c_float)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Noise Reduction filter.

Reduces noise using a threshold value to define what is considered noise. Small changes in luminance below that value are considered noise and get a noise reduction treatment, which is a local blur. Changes above the threshold value are considered edges, so they are sharpened.

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 noiseLevel(&self) -> c_float
where Self: Sized + Message,

The amount of noise reduction. The larger the value, the more noise reduction.

Source

unsafe fn setNoiseLevel(&self, noise_level: c_float)
where Self: Sized + Message,

Setter for noiseLevel.

Source

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

The sharpness of the final image. The larger the value, the sharper the result.

Source

unsafe fn setSharpness(&self, sharpness: c_float)
where Self: Sized + Message,

Setter for sharpness.

Trait Implementations§

Source§

impl ProtocolType for dyn CINoiseReduction

Source§

const NAME: &'static str = "CINoiseReduction"

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 CINoiseReduction

Implementations on Foreign Types§

Source§

impl<T> CINoiseReduction for ProtocolObject<T>
where T: ?Sized + CINoiseReduction,

Implementors§