Skip to main content

spectral_detectability_score

Function spectral_detectability_score 

Source
pub fn spectral_detectability_score(
    original: &CoverMedia,
    stego: &CoverMedia,
    profile: Option<&AiGenProfile>,
) -> SpectralScore
Expand description

Run a spectral-domain detectability analysis comparing original to stego.

The score is profile-aware: when an AiGenProfile is provided, only the carrier bins with coherence >= 0.90 are analysed. Without a profile the top-16 highest-magnitude bins (excluding DC at (0, 0)) are used.

ยงPanics

Never panics. Empty and single-pixel inputs are handled gracefully.