pub enum ReconstructionShape {
Exact((usize, usize)),
Minimum,
Smooth,
PowerOfTwo,
}Expand description
Selects an explicit reconstruction grid or an automatic sizing strategy.
Automatic shapes preserve the low-resolution aspect ratio, so the recovered
object has the same pixel size in both axes. Self::Smooth and
Self::PowerOfTwo round the shared reduced-aspect-ratio multiplier rather
than each dimension independently.
Variants§
Exact((usize, usize))
Use the supplied concrete (height, width) after validating it.
Minimum
Use the smallest grid containing every Fourier crop and interpolation stencil.
Smooth
Round the minimum shared multiplier up to a value whose prime factors are limited to 2, 3, 5, and 7.
PowerOfTwo
Round the minimum shared multiplier up to a power of two.
Trait Implementations§
Source§impl Clone for ReconstructionShape
impl Clone for ReconstructionShape
Source§fn clone(&self) -> ReconstructionShape
fn clone(&self) -> ReconstructionShape
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 moreSource§impl Debug for ReconstructionShape
impl Debug for ReconstructionShape
Source§impl PartialEq for ReconstructionShape
impl PartialEq for ReconstructionShape
Source§fn eq(&self, other: &ReconstructionShape) -> bool
fn eq(&self, other: &ReconstructionShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ReconstructionShape
impl Eq for ReconstructionShape
impl StructuralPartialEq for ReconstructionShape
Auto Trait Implementations§
impl Freeze for ReconstructionShape
impl RefUnwindSafe for ReconstructionShape
impl Send for ReconstructionShape
impl Sync for ReconstructionShape
impl Unpin for ReconstructionShape
impl UnsafeUnpin for ReconstructionShape
impl UnwindSafe for ReconstructionShape
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