With a view to obtaining a high quality contrast enhancement, low-pass filters are used to remove the noise generated in a high-gain histogram equalization process. To preserve signal variations, the LP operation applied to the pixels in non-homogeneous regions should have less smoothing strength than that in homogeneous regions. The pixel classification according to the gray level homogeneity is thus a critical part in the LP filtering. In this paper, two algorithms for pixel classification according to the gray level homogeneity of their regions are proposed. In each of them, image pixels are grouped in such a way that, in the same group, pixels in homogeneous regions can be easily distinguished from those in nonhomogeneous regions by a simple gradient thresholding, despite the complexity of signal gradient degradation in images. The two proposed classification algorithms are very simple, requiring very small quantity of computation. Their effectiveness has been proven by the simulation results.