pub struct ExtractChannel { /* private fields */ }Expand description
Extract one channel as a greyscale image (SPEC §Core ops).
Implementations§
Trait Implementations§
Source§impl Clone for ExtractChannel
impl Clone for ExtractChannel
Source§fn clone(&self) -> ExtractChannel
fn clone(&self) -> ExtractChannel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExtractChannel
Source§impl Debug for ExtractChannel
impl Debug for ExtractChannel
impl Eq for ExtractChannel
Source§impl Hash for ExtractChannel
impl Hash for ExtractChannel
Source§impl Op for ExtractChannel
impl Op for ExtractChannel
Source§fn rescaled(&self) -> Option<Arc<dyn Op>>
fn rescaled(&self) -> Option<Arc<dyn Op>>
Pointwise: every output pixel depends on the one input pixel beneath it, with no length or coordinate anywhere, so resolution is irrelevant to what this op means, and there is no bound state to discard.
Source§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
Source§impl PartialEq for ExtractChannel
impl PartialEq for ExtractChannel
impl StructuralPartialEq for ExtractChannel
Auto Trait Implementations§
impl Freeze for ExtractChannel
impl RefUnwindSafe for ExtractChannel
impl Send for ExtractChannel
impl Sync for ExtractChannel
impl Unpin for ExtractChannel
impl UnsafeUnpin for ExtractChannel
impl UnwindSafe for ExtractChannel
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