Skip to main content

MaskFunction

Trait MaskFunction 

Source
pub trait MaskFunction {
    // Required method
    fn calculate(&self, p: &[u8]) -> u8;
}
Expand description

Trait for computing a mask value from pixel data.

Port of C++ one_component_mask_u8 / rgb_to_gray_mask_u8 patterns.

Required Methods§

Source

fn calculate(&self, p: &[u8]) -> u8

Implementors§