pub struct FilterCurve {
pub points: Vec<(f64, f64)>,
pub area: f64,
pub scale_factor: f64,
pub is_scatter: bool,
}Expand description
A reconstructed filter curve from analysis.
Fields§
§points: Vec<(f64, f64)>(offset, weight) sample points. Offset is in source-pixel units (distance from the filter center). Weight is the normalized filter value.
area: f64Integral of the filter (should be ~1.0 for a normalized filter).
scale_factor: f64Scale factor used: dst_width / src_width.
is_scatter: boolTrue for dot pattern (scatter), false for line pattern (connected).
Trait Implementations§
Source§impl Clone for FilterCurve
impl Clone for FilterCurve
Source§fn clone(&self) -> FilterCurve
fn clone(&self) -> FilterCurve
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 moreAuto Trait Implementations§
impl Freeze for FilterCurve
impl RefUnwindSafe for FilterCurve
impl Send for FilterCurve
impl Sync for FilterCurve
impl Unpin for FilterCurve
impl UnwindSafe for FilterCurve
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