perturb

package
v0.0.0-...-53e698e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package perturb applies imperceptible pixel-level noise to break the statistical fingerprints left by AI image generators.

Every major AI generator (DALL-E, Midjourney, Stable Diffusion, etc.) produces images with characteristic frequency-domain patterns in the pixel data. Detectors like Hive Moderation and AI-or-Not exploit these patterns.

A ±1-2 value perturbation per channel is sufficient to disrupt those patterns while remaining completely invisible to the human eye — the change is well below the just-noticeable-difference (JND) threshold of ~2-3 values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyNoise

func ApplyNoise(src image.Image) image.Image

ApplyNoise returns a new NRGBA image with subtle per-pixel noise applied. The source image is never modified.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL