Post-processing#
Base class for post-processing.
Post-processor for one-class anomaly detection.
MEBin (Main Element Binarization) post-processor from AnomalyNCD. Uses per-image adaptive thresholds based on connected-component stability analysis.
Base Post-processor#
One-class Post-processor#
MEBin Post-processor#
MEBin (Main Element Binarization) is an adaptive binarization method introduced in the AnomalyNCD paper. It determines per-image thresholds by sweeping thresholds across the anomaly map, counting connected components at each level, and selecting the threshold at the endpoint of the longest stable interval.
MEBin is precision-oriented: it favours high-confidence anomaly regions over exhaustive coverage. Pixel-level F1 may be lower than the default post-processor, but the resulting masks are well-suited for downstream tasks such as anomaly classification.