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§
Sourceunsafe fn scale(&self) -> c_float
unsafe fn scale(&self) -> c_float
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.