pub struct Convolve { /* private fields */ }Expand description
Apply a convolution kernel.
Implementations§
Trait Implementations§
Source§impl Op for Convolve
impl Op for Convolve
Source§fn rescaled(&self) -> Option<Arc<dyn Op>>
fn rescaled(&self) -> Option<Arc<dyn Op>>
Never rescaled. The kernel is measured in pixels, so the same 3x3 blur over a source decoded eight times smaller is eight times the blur relative to image content. The output would be the right size and the wrong picture, which is exactly the failure the conservative default exists to prevent.
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 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 Convolve
Auto Trait Implementations§
impl Freeze for Convolve
impl RefUnwindSafe for Convolve
impl Send for Convolve
impl Sync for Convolve
impl Unpin for Convolve
impl UnsafeUnpin for Convolve
impl UnwindSafe for Convolve
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