CIConvolution

Trait CIConvolution 

Source
pub unsafe trait CIConvolution: 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 weights(&self) -> Retained<CIVector>
       where Self: Sized + Message { ... }
    unsafe fn setWeights(&self, weights: &CIVector)
       where Self: Sized + Message { ... }
    unsafe fn bias(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setBias(&self, bias: c_float)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the 3 by 3 Convolution filter.

Convolution with 3 by 3 matrix.

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 weights(&self) -> Retained<CIVector>
where Self: Sized + Message,

Available on crate feature CIVector only.

A vector containing the 9 weights of the convolution kernel.

Source

unsafe fn setWeights(&self, weights: &CIVector)
where Self: Sized + Message,

Available on crate feature CIVector only.

Setter for weights.

Source

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

A value that is added to the RGBA components of the output pixel.

Source

unsafe fn setBias(&self, bias: c_float)
where Self: Sized + Message,

Setter for bias.

Trait Implementations§

Source§

impl ProtocolType for dyn CIConvolution

Source§

const NAME: &'static str = "CIConvolution"

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 CIConvolution
where T: ?Sized + Message + CIConvolution,

Implementations on Foreign Types§

Source§

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

Implementors§