pub struct EdgeFilter {
pub level: u8,
pub limit: u8,
pub threshold: u8,
pub hev_threshold: u8,
pub filter_size: u8,
}Expand description
Configuration for a single edge filter.
Fields§
§level: u8Filter level (0-63).
limit: u8Limit value.
threshold: u8Threshold for flat detection.
hev_threshold: u8High edge variance threshold.
filter_size: u8Filter size (4, 8, or 14 taps).
Implementations§
Source§impl EdgeFilter
impl EdgeFilter
Sourcepub const fn should_filter(&self) -> bool
pub const fn should_filter(&self) -> bool
Check if filtering should be applied.
Sourcepub fn is_flat(&self, p: &[i16], q: &[i16]) -> bool
pub fn is_flat(&self, p: &[i16], q: &[i16]) -> bool
Check if this is a flat region (use wide filter).
Trait Implementations§
Source§impl Clone for EdgeFilter
impl Clone for EdgeFilter
Source§fn clone(&self) -> EdgeFilter
fn clone(&self) -> EdgeFilter
Returns a duplicate of the value. Read more
1.0.0 · 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 EdgeFilter
impl Debug for EdgeFilter
Source§impl Default for EdgeFilter
impl Default for EdgeFilter
Source§fn default() -> EdgeFilter
fn default() -> EdgeFilter
Returns the “default value” for a type. Read more
impl Copy for EdgeFilter
Auto Trait Implementations§
impl Freeze for EdgeFilter
impl RefUnwindSafe for EdgeFilter
impl Send for EdgeFilter
impl Sync for EdgeFilter
impl Unpin for EdgeFilter
impl UnsafeUnpin for EdgeFilter
impl UnwindSafe for EdgeFilter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more