CIAreaHistogram

Trait CIAreaHistogram 

Source
pub unsafe trait CIAreaHistogram: CIAreaReductionFilter {
    // Provided methods
    unsafe fn scale(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setScale(&self, scale: c_float)
       where Self: Sized + Message { ... }
    unsafe fn count(&self) -> NSInteger
       where Self: Sized + Message { ... }
    unsafe fn setCount(&self, count: NSInteger)
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the Area Histogram filter.

Calculates histograms of the R, G, B, and A channels of the specified area of an image. The output image is a one pixel tall image containing the histogram data for all four channels.

See also Apple’s documentation

Provided Methods§

Source

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

The scale value to use for the histogram values. If the scale is 1.0, then the bins in the resulting image will add up to 1.0.

Source

unsafe fn setScale(&self, scale: c_float)
where Self: Sized + Message,

Setter for scale.

Source

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

The number of bins for the histogram. This value will determine the width of the output image.

Source

unsafe fn setCount(&self, count: NSInteger)
where Self: Sized + Message,

Setter for count.

Trait Implementations§

Source§

impl ProtocolType for dyn CIAreaHistogram

Source§

const NAME: &'static str = "CIAreaHistogram"

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 CIAreaHistogram

Implementations on Foreign Types§

Source§

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

Implementors§