pub struct ClassificationSignals {Show 13 fields
pub blends_with_bg_in_img1: bool,
pub blends_with_bg_in_img2: bool,
pub low_color_delta: bool,
pub low_edge_change: bool,
pub dense_fill: bool,
pub sparse_fill: bool,
pub tiny_region: bool,
pub edges_correlated: bool,
pub luminance_ncc: f32,
pub structure_asymmetry: f32,
pub bg_distance_img1: f32,
pub bg_distance_img2: f32,
pub confidence: f32,
}Fields§
§blends_with_bg_in_img1: bool§blends_with_bg_in_img2: bool§low_color_delta: bool§low_edge_change: bool§dense_fill: bool§sparse_fill: bool§tiny_region: bool§luminance_ncc: f32Normalized cross-correlation of luminance across the changed pixels. High values (~1.0) mean the structural pattern is preserved between img1 and img2; near-zero values mean the structure was replaced.
structure_asymmetry: f32Signed asymmetry between img2 and img1 edge density. Positive values indicate img2 gained structure (additive), negative values indicate img1 lost structure (deletion).
bg_distance_img1: f32Normalized RGB distance of changed pixels from the local background in img1. Low values mean the pixels blended with the background there (content was absent before the change).
bg_distance_img2: f32Same measurement against img2.
confidence: f32Trait Implementations§
Source§impl Clone for ClassificationSignals
impl Clone for ClassificationSignals
impl Copy for ClassificationSignals
Source§impl Debug for ClassificationSignals
impl Debug for ClassificationSignals
Source§impl<'de> Deserialize<'de> for ClassificationSignals
impl<'de> Deserialize<'de> for ClassificationSignals
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClassificationSignals
impl PartialEq for ClassificationSignals
Source§impl Serialize for ClassificationSignals
impl Serialize for ClassificationSignals
impl StructuralPartialEq for ClassificationSignals
Auto Trait Implementations§
impl Freeze for ClassificationSignals
impl RefUnwindSafe for ClassificationSignals
impl Send for ClassificationSignals
impl Sync for ClassificationSignals
impl Unpin for ClassificationSignals
impl UnsafeUnpin for ClassificationSignals
impl UnwindSafe for ClassificationSignals
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