pub struct Recomb { /* private fields */ }Expand description
Recombine channels through a matrix (sharp’s recomb): sepia, channel
swaps and the like.
A 3x3 matrix mixes red, green and blue and leaves alpha alone; a 4x4 one mixes alpha in too, and adds an opaque alpha to an image without one so there is somewhere to put it. A greyscale input becomes colour.
Implementations§
Trait Implementations§
impl Copy for Recomb
Source§impl Op for Recomb
impl Op for Recomb
Source§fn rescaled(&self) -> Option<Arc<dyn Op>>
fn rescaled(&self) -> Option<Arc<dyn Op>>
A copy of this op fit for a graph rebuilt at a reduced input
resolution, or
None if this op must not be. Read moreSource§fn output_descriptor(
&self,
inputs: &[ImageDescriptor],
) -> Result<ImageDescriptor, PixelsError>
fn output_descriptor( &self, inputs: &[ImageDescriptor], ) -> Result<ImageDescriptor, PixelsError>
Compute the output shape from the input shapes. Read more
Source§fn input_regions(
&self,
output: Region,
_inputs: &[ImageDescriptor],
) -> Result<Vec<Region>, PixelsError>
fn input_regions( &self, output: Region, _inputs: &[ImageDescriptor], ) -> Result<Vec<Region>, PixelsError>
The input regions needed to produce
output. Read moreSource§fn compute(
&self,
inputs: &[Tile<'_>],
output: &mut TileMut<'_>,
) -> Result<(), PixelsError>
fn compute( &self, inputs: &[Tile<'_>], output: &mut TileMut<'_>, ) -> Result<(), PixelsError>
Source§fn access_pattern(&self) -> AccessPattern
fn access_pattern(&self) -> AccessPattern
How this op reads its inputs; drives tile negotiation (ADR-0003). Read more
impl StructuralPartialEq for Recomb
Auto Trait Implementations§
impl Freeze for Recomb
impl RefUnwindSafe for Recomb
impl Send for Recomb
impl Sync for Recomb
impl Unpin for Recomb
impl UnsafeUnpin for Recomb
impl UnwindSafe for Recomb
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more