pub enum Shrink {
Average,
Subsample,
}Expand description
How a level of the pyramid is halved. Ward’s table calls ImageShrink2 a
subsample; his text says “filtered down”. Both readings are available.
Variants§
Average
The mean of each 2x2 block, and the default: averaging keeps fine detail from aliasing into the coarse levels.
Subsample
Every other row and column, as OpenCV’s AlignMTB does.
Trait Implementations§
impl Copy for Shrink
impl Eq for Shrink
impl StructuralPartialEq for Shrink
Auto Trait Implementations§
impl Freeze for Shrink
impl RefUnwindSafe for Shrink
impl Send for Shrink
impl Sync for Shrink
impl Unpin for Shrink
impl UnsafeUnpin for Shrink
impl UnwindSafe for Shrink
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