eess.IVFeb 10, 2022

Multiclass histogram-based thresholding using kernel density estimation and scale-space representations

Authors: S. Korneev, J. Gilles, I. Battiato

Abstract

We present a method for multiclass thresholding of histograms whose modes may overlap so strongly that they merge into a unimodal distribution. The histogram is approximated by a nonparametric kernel density (KD) estimate, a mixture of Gaussians with one component per bin and a common bandwidth, whose parameters are determined by Expectation-Maximization (EM) iterations. Because the estimate is a Gaussian mixture, the semigroup property of Gaussian convolution yields its scale-space representation in closed form, at bandwidths both larger and smaller than the fitted one. The algorithm increases or decreases the bandwidth until the number of local minima of the estimate equals the number of requested classes minus one, and returns the positions of those minima as the threshold values. We validate the method on synthetic histograms with known thresholds, and we apply it to the histogram of X-ray computed tomography images of a natural porous sample in which the three phases strongly overlap. The porosity computed from the resulting segmentation agrees with the direct experimental measurement to within 4%, whereas K-means clustering misestimates it by 52%.

Figures & tables

Explore similar work

May 26, 2026

A Dynamic Programming Framework for Discovering Count and Values of Multilevel Image Thresholding

Multilevel Image thresholding is an important preprocessing algorithm in computer vision applications nowadays. Since most common thresholding methods take the desired count of thresholds as input by the user, thresholding methods that automatically determines a suitable count of thresholds from the input image itself are advantageous. In this article, a novel thresholding method based on a dynamic programming algorithm and a modification of Minimum Error Thresholding (MET) criterion is thoroughly presented. An empirical statistical study is performed to pinpoint why this proposed method is superior. Moreover, an extended comparison between this proposed method and other state-of-the-art methods is performed on a comprehensive set of natural, satellite and medical test images. The numerical results show that the proposed MET-DP method takes much less time than traditional dynamic programming thresholding methods when the number of thresholds is high. The proposed method can detect a suitable count of thresholds for most of tested images of different types. However, traditional methods that take the count of thresholds as input produce thresholded images of higher structural similarity index measure (SSIM) and peak signal-to-noise ratio (PSNR) values than MET-DP. Source code can be found on https://w3id.org/met-dp/article1-code
Oct 16, 2026

How Many, but How Sure? Class Competition as a Confidence Proxy in Multi-Class Density-Based Counting

Multi-class density estimators can count objects in crowded scenes, but their class-wise outputs offer no indication of how reliably density mass has been allocated. We introduce a training-free confidence proxy based on local competition between the strongest class channels. The resulting prominence measure requires only the predicted density maps, with no retraining or access to model internals. We test whether residual competition is diagnostic of cross-class leakage by attenuating contested density at inference time. On DSACA predictions for the Hicks et al. dataset, this reduces overall MAE from 0.920 to 0.846, suggesting that class competition contains useful information about count reliability.
May 26, 2026

Image Thresholding: Understanding Bias of Evaluation Metrics towards Specific Evaluation Functions

Multilevel image thresholding is widely used for segmentation in applications ranging from medical imaging to remote sensing. Classical objective functions, such as Otsu's between-class variance and Kapur's entropy, are often optimized using metaheuristic algorithms, with performance evaluated via metrics like Structural Similarity Index (SSIM) and Peak Signal-to-Noise Ratio (PSNR). These evaluations implicitly assume that SSIM and PSNR provide unbiased measures of segmentation quality. In this study, we examine this assumption by analyzing the correlation between thresholding objective functions and quality metrics across all possible thresholds for images in the BSDS500 dataset. Results show that Otsu's criterion consistently exhibits high correlation with both SSIM and PSNR, while Kapur's entropy demonstrates weaker and more variable correlation. Otsu outperforms Kapur in correlation with PSNR for all images and with SSIM for over 91%. Our findings reveal an inherent metric-objective-function bias. This work highlights the need for more neutral evaluation frameworks and motivates extending the analysis to additional thresholding criteria and domains. Source code of this paper can be found at https://w3id.org/met-dp/icpr26-95