A Method for Local Contrast Enhancement of Endoscopic Images Based on Color Tensor Transformation into a Matrix of Color Vectors’ Modules Using a Sliding Window

A new method aimed at endoscopic color images’ local contrast enhancement is proposed, based on local sliding histogram equalization with adaptive threshold limitation, color distortions correction, and image brightness preservation. For this, the original RGB image, represented as a tensor of size M × N × 3, is transformed into a matrix of size M × N, composed by the color vectors’ modules. As a result of local contrast enhancement, the obtained color vectors are symmetrical in respect of the input ones, because they satisfy the requirement for invariance after rotation. To enhance the local contrast, recursive local histogram equalization with adaptive thresholding is applied to each matrix element. This threshold divides the histogram into two regions of equal areas. A new metric for local contrast enhancement evaluation based on the mean square difference entropy is proposed. The presented new method is characterized by low computational complexity, due to the lack of direct and inverse color conversion and the possibility for adaptive local contrast enhancement, which is essential for accurate medical diagnosis based on endoscopic images analysis. In addition, the presented method performs both the correction of color distortions and the brightness preservation of each pixel.