How bughht/cmfd works
CMFD is a Python framework for evaluating image copy-move forgery detectors. The main workflow is to select an algorithm through the command line, load MICC-F220 images and labels, call the detector on each image, and report classification metrics. The repository includes SIFT, patch-adaptive SIFT, ORB, FAST, and Harris implementations, plus a block-based experiment. Source excerpts show the evaluation and several detector internals; the README documents additional framework capabilities. The block-based implementation is present but its filename marks it as dumped.
Main entry points: AlgoTest.py Algorithm runner · utils.py Image preprocessing · Dataset.py MICC-F220 dataset · Block_Methods_[!!DUMPED].py Block-based detector
Components 15
Evaluation
- Algorithm runner
AlgoTest.py - Metric reporting
AlgoTest.py - DataLoader setup
AlgoTest.py
Dataset
- MICC-F220 dataset
Dataset.py - MICC-F220 corpus
Detection algorithms
- SIFT detector
SIFT_Methods.py - Patch-SIFT detector
PATCH_SIFT_Methods.py - ORB detector
ORB_Methods.py - FAST detector
FAST_Methods.py - Harris detector
Harris_Methods.py - Block-based detector
Block_Methods_[!!DUMPED].py
Shared image utilities
- Dataset helpers
utils.py - Image preprocessing
utils.py - Block feature helpers
utils.py
Other components
- CLI user
Connections 16
- CLI user → Algorithm runner: selects algorithm
README.md - Algorithm runner → DataLoader setup: creates loader
AlgoTest.py - Algorithm runner → MICC-F220 dataset: loads dataset
AlgoTest.py - DataLoader setup → MICC-F220 dataset: batches samples
AlgoTest.py - MICC-F220 dataset → Dataset helpers: loads labels
Dataset.py - MICC-F220 dataset → MICC-F220 corpus: reads images
Dataset.py - Algorithm runner → SIFT detector: dispatches dynamically
AlgoTest.py - Algorithm runner → Metric reporting: evaluates predictions
AlgoTest.py - Metric reporting → Algorithm runner: calls predict
AlgoTest.py - SIFT detector → Image preprocessing: converts to gray
SIFT_Methods.py - Patch-SIFT detector → Image preprocessing: converts to gray
PATCH_SIFT_Methods.py - ORB detector → Image preprocessing: converts to gray
ORB_Methods.py - FAST detector → Image preprocessing: converts to gray
FAST_Methods.py - Harris detector → Image preprocessing: converts to gray
Harris_Methods.py - Block-based detector → Block feature helpers: uses features
Block_Methods_[!!DUMPED].py - Block-based detector → Dataset helpers: loads image data
Block_Methods_[!!DUMPED].py