pub struct RgbBox {
pub min: [f32; 3],
pub max: [f32; 3],
}Expand description
Achsenparallele Box im RGB-Raum (Nachbarschafts-Grenzen eines Pixels).
Fields§
§min: [f32; 3]§max: [f32; 3]Implementations§
Source§impl RgbBox
impl RgbBox
Sourcepub fn from_samples(samples: &[[f32; 3]]) -> Self
pub fn from_samples(samples: &[[f32; 3]]) -> Self
Engste Box um die gegebenen Samples (Min/Max je Kanal). Leere Sample-Liste ergibt die Null-Box.
Sourcepub fn from_variance(samples: &[[f32; 3]], k: f32) -> Self
pub fn from_variance(samples: &[[f32; 3]], k: f32) -> Self
Mittelwert ± k·Standardabweichung je Kanal (variance box) — robuster gegen einzelne Ausreißer als die reine Min/Max-Box.
Sourcepub fn extended_toward(&self, c: [f32; 3], amount: f32) -> Self
pub fn extended_toward(&self, c: [f32; 3], amount: f32) -> Self
Box-Diagonale zur History-Farbe hin ausdehnen (Jimenez-2014-Trick),
bevor geklemmt wird: sonst schneidet der Clamp legitime
Kontrastkanten ab und das Bild shimmert. amount = 0 deaktiviert.
Trait Implementations§
impl Copy for RgbBox
impl StructuralPartialEq for RgbBox
Auto Trait Implementations§
impl Freeze for RgbBox
impl RefUnwindSafe for RgbBox
impl Send for RgbBox
impl Sync for RgbBox
impl Unpin for RgbBox
impl UnsafeUnpin for RgbBox
impl UnwindSafe for RgbBox
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