pub struct Options {
pub bits: u32,
pub tolerance: u8,
pub percentile: Percentile,
pub shrink: Shrink,
}Expand description
How the search is run.
Fields§
§bits: u32Ward’s shift_bits, reaching ±(2^bits - 1) pixels. Six is his figure for
the three megapixel frames of 2003; the same shake spans four times the
pixels at fifty, which wants eight. Each bit is another halving, and the
coarsest level guesses with only ±1 to correct it after, so small images
want fewer, not more.
tolerance: u8How far from the threshold a sample must sit before it is trusted.
percentile: PercentileA frame more than half clipped puts the median past the top of the range and empties the bitmap; Ward’s 17th or 83rd moves the cut back among the samples that survived.
shrink: ShrinkImplementations§
Trait Implementations§
impl Copy for Options
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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