EVALUATING THE RELATIONSHIP BETWEEN IMAGE ENHANCEMENT PERFORMANCE AND CODE MAINTAINABILITY IN PYTHON-BASED IMAGE PROCESSING
Keywords:
image enhancement; Python; software maintainability; image quality assessment; CLAHE; code metrics; technical debtAbstract
Image enhancement is a central task in digital image processing, yet the quality of an enhancement pipeline is not determined by visual output alone. In Python-based projects, implementation quality also affects whether code can be understood, tested, modified, reused, and extended. This article develops a framework for evaluating the relationship between image enhancement performance and code maintainability. It proposes a controlled comparison of four commonly used enhancement approacheshistogram equalisation, contrast-limited adaptive histogram equalisation (CLAHE), gamma correction, and spatial filtering implemented in Python. Image quality is assessed using full-reference and no-reference measures, including mean squared error (MSE), peak signal-to-noise ratio (PSNR), structural similarity (SSIM), and no-reference quality indicators. Runtime, throughput, and memory use are considered alongside maintainability indicators such as cyclomatic complexity, duplication, function length, coupling, and readability. Published evidence from Python software projects is used to motivate the maintainability measures, it is represented as a result of the proposed image-processing experiment. The article provides a reproducible methodology, equations, reporting tables, and figure specifications. New experimental dataset or execution results are supplied, algorithm is declared superior and correlation or significance result is claimed. The framework supports a more complete assessment in which enhancement effectiveness and software quality are treated as related but distinct dimensions.












