원시데이터 수집 시스템
선정목록으로

ILLUMINATION ENHANCEMENT OF NIGHTTIME IMAGES USING A REGULATED SINGLE SCALE RETINEX ALGORITHM

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. Ola Basheer
  2. Zohair Ameen
DOI
10.5455/jjcit.71-1705156218
저널
Jordanian Journal of Computers and Information Technology
발행년도
2024
발행기관
ScopeMed
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.5455/jjcit.71-1705156218
토픽
Color Science and Applications
OpenAlex ID
W4393126279

평가 내용

관련도
관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

People are active during the nighttime and capture many photos. Due to the low-light nature of the environment, captured images tend to appear dimmed with imbalanced illumination, low contrast, noise, and a lack of vibrant colors. For this purpose, this paper presents a direct and practical approach to improving the lighting of night images based on the single-scale retinex model and using image processing methods and other statistical approaches. The proposed algorithm begins by converting the image from the RGB to the HSI model. Then, it enhances only the I channel while preserving the H and S channels. Thus, processing on the I channel begins with estimating the illumination version of the image and calculating the logarithms of both the illuminated and original image, like the SSR model. Then, it subtracts these two images using a subtraction of logarithmic image processing. Subsequently, the cumulative distribution function of the Gumble probability distribution is applied, and the resulting output is further treated using a logarithmic transformation method. That produces the processed I channel, which combines with the conserved H and S channels to give the HSI image. Ultimately, it converts the image to RGB format. The proposed algorithm is applied to two datasets of nighttime images, compares their performance to seven different contemporary algorithms, and evaluates the results of the compares using three specific metrics of quality evaluation based on the results generated, deducing that the suggested algorithm enhanced the brightness of night images and surpassed other algorithms in terms of execution time, and image assessment methods. Additionally, it exceeded them in all metrics used.

본문 51,583자

본문 펼치기
138 <mark>Jordanian Journal of Computers and Information Technology (JJCIT), Vol. 10, No. 02, June 2024.</mark> # ILLUMINATION ENHANCEMENT OF NIGHTTIME IMAGES USING A REGULATED SINGLE SCALE RETINEX ALGORITHM ###### Ola A. Basheer 1 and Zohair Al-Ameen 2 _(Received: 14-Jan.-2024, Revised: 11-Mar.-2024, Accepted: 13-Mar.-2024)_ ###### _ABSTRACT_ _Nowadays, people are active during the nighttime and take many photos to record their activities. Due to the low-_ _light nature of the environment at nighttime, captured images tend to appear with dimmed and imbalanced_ _illumination, limited contrast, covert noise and diminished colors. Thus, this paper presents a practical algorithm_ _to improve the illumination of nighttime images based on the single-scale retinex model, image processing methods_ _and certain statistical functions. The developed algorithm initiates by converting the image from the RGB into the_ _HSV model. Then, it enhances only the value (V) channel while preserving the H and S channels. Next, estimating_ _the illumination version of the image and calculating the logarithms of both the illumination and original image_ _are performed. Afterward, a logarithmic subtraction occurs and a modified cumulative distribution function of_ _Gumble probability is applied and the result is further enhanced using a logarithmic transform method. These_ _operations produce the processed V channel and a conversion to the RGB format occurs to generate the final_ _output. The proposed algorithm is experimented with by using two datasets, compared to ten different_ _contemporary algorithms and outcomes are evaluated via three sophisticated metrics. Based on the attained_ _results, promising performances by the developed algorithm have been recorded, surpassing the performance of_ _many existing algorithms in various objective, subjective and runtime terms._ ###### _KEYWORDS_ _Nighttime, Image enhancement, Single-scale retinex, Statistical methods._ ##### 1. INTRODUCTION Nighttime is the period from dusk to dawn [37]. Images taken at nighttime are of defective quality and characterized by unbalanced illumination, unpleasant colors, limited contrast and undesirable noise [1]. Due to the significant increase in nighttime photography to visualize large-scale events, such as personal activities, surveillance and speed cams, there has been an urgent need for efficient nighttime imageenhancement algorithms. Thus, this topic has attracted widespread attention by various beneficiaries. Since hardware is constantly improving, most modern devices and computer-vision applications are required to deliver high-quality images [2]. Image enhancement (IE) refers to the operations applied to an image to improve its perceived quality and make it more visually pleasing to the recipient. The primary goal of IE is to change the characteristics of an image to enhance its suitability for a particular activity and viewer without introducing errors [3]. IE techniques must seek to consider two crucial factors: 1) There may be hidden noise in dark areas of nighttime images, so it must be ensured that the noise is suppressed or kept from being amplified when improving the illumination [4]. 2) Preserving the brightness in the already bright areas from being amplified to avoid the state of over-enhancement [5]. Different algorithms have been introduced to help improve the quality of digital images. One concept of interest is the Retinex theory, which is commonly used for image enhancement and owns many versions, such as the single-scale retinex (SSR), multi-scale retinex (MSR) and multi-scale retinex with color restoration (MSRCR) [6]. This research introduces a well-developed SSR algorithm using statistical and image-processing methods for nighttime-image enhancement. The performance of the proposed algorithm has been tested on two datasets, compared to ten contemporary algorithms explained in the related-work section, in addition to evaluating and discussing the results thoroughly. The paper is organized as follows: the 2 <sup>nd</sup> section explains a literature review of recent years’ research work, the 3 <sup>rd</sup> section explains the developed algorithm in depth, the 4 <sup>th</sup> section presents the attained results and the 5 <sup>th</sup> section gives a brief conclusion. 1. O. A. Basheer is with the Department of Computer Science, College of Computer Science and Mathematics, University of Mosul, Mosul, Nineveh, Iraq. Email: `olaalh9@gmail.com` 2. Z. Al-Ameen is with the ICT Research Unit, Computer Center, University of Mosul Presidency, University of Mosul, Mosul, Nineveh, Iraq Email: `qizohair@uomosul` `edu` `iq` 139 "Illumination Enhancement of Nighttime Images Using a Regulated Single-scale Retinex Algorithm", O. A. Basheer and Z. Al-Ameen. ##### 2. RELATED WORK In recent years, numerous studies have been introduced on improving nighttime images due to their high importance in different real-world applications. The selected studies are reviewed in a newer to older style. In 2024, a method that utilizes gamma correction and merged color spaces is introduced [35], in that the algorithm starts by determining a transmission map (TM) that includes the saturation information of the degraded image in two different color spaces. Next, the calculated TM is transformed into a function that contains the max and mean values and these values are approximated from a poor illumination image by utilizing a gamma-correction approach. After that, an adaptive valuedetermination algorithm is applied to enhance the image, prevent the over-enhancement phenomenon and generate the output. In 2023, a Gaussian-based model (GM) was developed [34] and this algorithm starts by creating the GM to get the estimated reflectance and illumination information based on the retinex theory. Then, based on the retinex theory, a decomposition in the GM-based operation is applied to the illumination layer and a gradient descent-based approach is implemented to enhance the image’s illumination. Lastly, a denoising process based on the total-variation concept is executed on the reflectance layer to reduce the noise and generate the output. In 2023, a triangle similarity-based algorithm (TS) was presented [33], in that it begins by transforming the image into the HSI color domain and maintaining the hue channel while processing the saturation and intensity channels. Next, a translation-based operation is applied to the saturation channel to improve the color representation. After that, various scaling operations are implemented in the intensity channel to improve the illumination and visual information. Lastly, a transformation to the RGB domain is applied to create the output. In 2022, a structure preservation-based variation model (SPV) was provided [32] and it started by utilizing a variation-coefficient-based concept to improve the illumination information. Next, a total-variation concept is implemented to reduce the noise information in the image. Lastly, these two images are mixed using the retinex concept in an iterative way to generate the output. In 2021, a progressive-recursive network-based algorithm was established [36], in that the method begins by getting the degraded image and sending it to a dual-attention approach to extract the global features. After that, a mixture of residual blocks and recurrent layers is utilized to extract the local features. Based on the extracted local and global features, several recursive operations are applied to enhance the image and create the output. In 2020, a semi-decoupled decomposition (SDD) algorithm was proposed [7], in that it decomposes the image using the retinex model into reflectance and illumination components in a semi-decoupled manner. The illumination layer is enhanced progressively and the reflectance layer is improved jointly using a specialized total-variation concept. These components are united to create the output. In 2020, a retinex-based multi-phase (RBMP) algorithm was proposed [8], which is initiated by computing the illumination image in a manner akin to the standard SSR algorithm, subtracts the log of the illumination image from the log of the original image using a modified method and then processes the output through a gamma-corrected sigmoid and normalization approaches to generate the output. In 2019, an adaptive image-enhancement (AIE) algorithm was presented [9], where it first transforms the image to the HSV domain and the V channel is processed to isolate the illumination component of the scene through a multi-scale Gaussian function. Afterward, a correction function is implemented _via_ the Weber-Fechner law and two outputs are generated by adaptively adjusting the parameters according to the distribution profiles of the illumination components. The output is created by combining both images using a specially-developed approach. Similarly, in 2019, an algorithm named LECARM was developed [10], which began by utilizing illumination-estimating algorithms to calculate the exposure ratio for every pixel. After that, the chosen camera-response model is employed to modify each pixel to achieve the required exposure based on the estimated exposure-ratio map. Lastly, the output is obtained using a specific mapping method. Moreover, in 2018, a robust retinex model (RRM) algorithm was presented [11], which starts by applying advanced regularization terms for illumination and reflectance approximation. More precisely, it employs one norm to limit the smoothness of the illumination in different regions, joining a fidelity term to highlight the structural details in low-light areas with the gradients of the reflectance to estimate the noise map using a robust Retinex concept. Next, the enhancement is applied using a Lagrange multiplier-based approach to build the output image. In 2016, a fusion-based enhancement (FBE) algorithm was developed [12], which utilizes an illumination-estimation algorithm based on 140 <mark>Jordanian Journal of Computers and Information Technology (JJCIT), Vol. 10, No. 02, June 2024.</mark> morphological closure to separate an observed image into reflectance and illumination components. This algorithm generates two images from the illumination image, one with brightness enhancement and the other with contrast enhancement, by applying sigmoid transform and adaptive-histogram equalization. Moreover, two weights are created using a multi-scale process. Lastly, the two images are fused using the determined weights to create the output. In 2016, an algorithm called LIME was proposed [13], which starts by determining the max values of the RGB image, followed by the determination of reflectance and illumination information _via_ the retinex model. The illumination information is enhanced using a structure-processing concept, followed by implementing different maps to further boost illumination. The output image is generated by joining the improved-illumination and reflectance components. As seen from the studied algorithms, different notions were used and the computational cost of each algorithm varies. Most of the proposed algorithms in this field did not reach the required level of enhancement. Thus, the chance remains to develop a new method that can improve the illumination of nighttime images more efficiently. The proposed algorithm differs from existing algorithms in several aspects. First, low computational developments are utilized to make the proposed algorithm efficient and particularly fast in filtering different nighttime images. Second, the utilized developments improve the illumination in a direct and non-iterative way while considering minimal noise augmentation, which is needed as many existing algorithms utilize the iterative feature and their utilized processing steps may amplify the noise, which leads to the requirement of another major step for image denoising, making such algorithms slow and require high computational cost. ##### 3. PROPOSED ALGORITHM Land and McCann initially proposed the retinex theory [30]. The term “retinex” is derived from the combination of the root terms “retina” and “cortex,” which are both essential components of human vision. Retinex is more visually consistent with human vision. This is predicated on the notion that the reflectance and illumination components’ collective influence creates the image, as shown in Figure 1. Figure 1. The retinex theory. Specifically, when light illuminates an object, it creates a reflection that is then seen as an image by the human eye [6]. Various algorithms have been designed based on the retinex theory, such as the SSR [14] and the MSR [15]. Both algorithms utilize a specific Gaussian function to modify a given image. Therefore, the brightness level of the output image is determined by using the natural logarithm of reflectance. Nevertheless, it may exhibit a color-distortion effect, which poses a difficulty in both the SSR and MSR. A potential solution to address this problem is the implementation of a “Multi-scale Retinex with Color Restoration” (MSRCR) technique [16]. Here, the inclusion of MSRCR allows for the handling of color distortion and restoration by utilizing the color ratio of the red, green and blue (RGB) channels. However, due to the universally-applied mapping curve, this method tends to diminish the level of detail in the image, particularly in the areas of high brightness. The primary motivation of the proposed regulated SSR (RSSR) algorithm is to improve the quality of night images by improving lighting in dark areas without intensifying brighter regions using noncomplex concepts. The SSR model and other less-complex statistical concepts and methods were used among these concepts. The original SSR model is used for illumination estimation of degraded images by applying convolution (*) between the input image _I(x,y)_ and the Gaussian function _G(x,y)_, which is calculated in the following manner [17]: 141 "Illumination Enhancement of Nighttime Images Using a Regulated Single-scale Retinex Algorithm", O. A. Basheer and Z. Al-Ameen. #####   U 2  V 2   _x_, _y_   _Q_  exp   2  2 #####   U 2  V 2    _Q_  exp   2  2    (1) (2) #####   U 2  V _G_  _x_, _y_   _Q_  exp   2  2  _x_, _y_   _Q_  exp   2  2  #####  U 2  V 2  _Q_ 1  ##### N M   U 2  V 2   ##  exp   2  _x_  1 _y_  1  2   1 _N_ _M_ exp    2  _U_ 2  _V_  1 _y_  1  2  2 1 _y_  1  2  2 _x_  1 _y_ Let _Q_ be a normalizing factor; _x_ and _y_ represent the coordinates of the digital image; _U_ and _V_ denote two grayscale gradients, where _U_ is horizontal and _V_ is vertical. _U_ and _V_ hold the same size as _I(x,y)_ . Additionally, _M_ and _N_ represent the dimensions of _I(x,y)_, (·) denotes a multiplication operation and _σ_ is a parameter that addresses the brightness. Then, the logarithm of the illumination image resulting from the previous step and the logarithm of the degraded image are taken to produce an enhanced version of the degraded image called reflectance image _R(x,y)_ by subtracting the log of the illumination image from the log of the degraded image [14], in the following manner: ## R  x, y   log  I  x, y    log  G  x, y   I  x, y   (3) where _R(x,y)_ is the output of original SSR. Experiments have been conducted on applying the standard SSR on different nighttime images to determine its filtering abilities with this type of image. Some results are demonstrated in Figure 2. Figure 2. Outputs of the standard SSR model when applied to different nighttime images. From the conducted experiments, the SSR provided resulting images with defects, including extra dimming for the darkened areas, which led to the loss of visual details, as well as amplification of brightness in the bright areas and the production of unrealistic colors, leading to overall unacceptable results. Regardless of these defects, the standard SSR model is characterized by low computational cost, which is a key aspect and has a high development potential [14]. The proposed RSSR algorithm aims to improve illumination while producing appropriate colors and avoids the over-amplification of the latent noise. The RSSR algorithm begins its first phase by converting the image from the RGB form into the HSV color model [18]. This color model is designed to efficiently separate the color information from the brightness (value) information, making it intuitive to improve brightness by simply modifying the value component. Supposing that the input image _I(x,y)_ has three color channels of red (R), green (G) and blue (B) and R, G, B ∈ [0, Wm], with Wm being the max. range value (typically 1), assuming the range ∈ [0,1], the conversion to the HSV color domain can be achieved using the following equations [31]: _<u>Wr</u>_ (4) _S_  _Wh_ for _Wh_ >0, 0 otherwise _<u>r</u>_ for _Wh_ >0, 0 otherwise _h_ _h_ _<u>Wh</u>_ (5) _V_  _Wm_ with _Wh_, _Wl_ and _Wr_ defined as _Wh_ = max( _R_, _G_, _B_ ), _Wl_ = min( _R_, _G_, _B_ ), _Wr_ = ( _Wh_ - W _l_ ), where S is the saturation channel and V is the value channel. What is more needed is to determine the hue (H) channel, wherein if the three RGB channels contain a similar value, then it is the case of a gray pixel. In this situation, _Wr_ = 0, _S_ = 0 and _H_ is undefined. To calculate _H_ when _Wr_ - 0, each channel is normalized in the following manner: 142 <mark>Jordanian Journal of Computers and Information Technology (JJCIT), Vol. 10, No. 02, June 2024.</mark> _R_ ˆ  _<u>Wh</u>_ <u></u> _<u>R</u>_, _G_ ˆ  _<u>Wh</u>_ <u></u> _<u>G</u>_, _B_ ˆ  _<u>Wh</u>_ <u></u> _<u>B</u>_ . (6) _Wr_ _Wr_ _Wr_ _R_ ˆ  _<u>Wh</u>_ <u></u> _<u>R</u>_, _G_ ˆ  _<u>Wh</u>_ <u></u> _<u>G</u>_, _B_ ˆ  _<u>Wh</u>_ <u></u> _<u>B</u>_ . _r_ _r_ _r_ Next, the initial hue (Ĥ) is calculated based on the notion of which color channel contains the max. value in the following manner:  ˆ ˆ _B_  _G_   ˆ ˆ   _R_  _B_    ˆ ˆ _G_  _R_   ˆ ˆ _B_  _G_ if = _R_ _h_ ˆ ˆ _B_  _G_ if = _R_ _Wh_  ˆ ˆ ˆ _H_   _R_  _B_  2 if = _G_ _h_ ˆ ˆ ˆ _H_   _R_  _B_  2 if = _G_ _Wh_ (7) ˆ ˆ _G_  _R_  4 if = _B_ _h_ ˆ ˆ _G_  _R_  4 if = _B_ _W_ The outcome value of Ĥ is in the range of [-1, 5] and the final H channel is obtained in the range of [0,1] as follows: ##### 1  H ˆ  6 for  H ˆ  0  6  _H_ ˆ otherwise. ##### 1  H ˆ  6 for  H ˆ    ##### 1  H ˆ  6 for  H ˆ _H_   (8)  _H_ The operations are performed only on the value channel, because the key requirement here is to improve the illumination, as the HSV color domain separates the color information from the illumination information. Thus, the processing becomes rapid and efficient. In the second phase, the Gaussian function _G(x,y)_ is calculated using Eq. (1) and Eq. (2), where ( _σ_ = _N_ × _M_ ). The third phase includes the computation of the illumination image in the following manner [17]: _M_  _x_, _y_   _G_  _x_, _y_   _I_  _x_, _y_  (9) where, M(x,y) is the illumination image. To apply the convolution (*) in the frequency domain, first, the Fourier transform is used to convert the inputs from the spatial domain into the frequency domain. Then, the element-wise multiplication between two inputs of the same size is computed. It often needs a frequency shift to return the high frequencies in the middle and the low frequencies in the edges and finally convert the image from the frequency domain into the spatial domain [19]. In the fourth phase, the log of the illumination image _M(x,y)_ and the log of the input image _I(x,y)_ are determined as follows: ## O  x, y   log  I  x, y   ### L  x, y   log  M  x, y   (10) (11) Here, (ε = 0.001) represents a minor value added to prevent the computation of the log of zero, which is infinite. The fifth utilized phase includes the application of a logarithmic-subtraction approach [20], as logarithmic image processing has been utilized in dynamic range manipulation, improving the visibility of details in both dark and bright regions, replacing the standard-subtraction method in Eq. (3) to produce the reflectance image, as follows: _O_ <u></u> _x_, _y_ <u></u>  _L_ <u></u> _x_, _Z_  _x_, _y_   1 _O_  _x_, _y_   _L_  (12) _x_, _y_ <u></u> <u></u> _x_, _y_ , _y_ <u></u> <u></u> _x_,  _x_, _y_  _O_ <u></u> _x_, _y_ <u></u>   1 _O_  _x_, _y_   1 _O_  _x_, _y_   _L_  _x_, <u></u> _x_, _y_ <u></u>  _L_ <u></u> _x_, _y_ <u></u>  _x_, _y_   _L_  _x_, _y_  _x_, _y_ _x_, _x_, _y_   _x_, _y_  After that, the sixth phase is implemented, which includes the utilization of a slightly modified cumulative distribution function of the Gumble probability (CDF-GP) approach. The standard CDF-GP approach can be mathematically expressed as follows [21]: (13) ######    x  _F_  _x_, _y_   exp   exp   _x_, _y_   exp   exp ######  x    _x_, _y_  ######    x    exp   exp          This approach redistributes the values across the image, emphasizing certain brightness levels over others and improves the contrast depending on β. With a slight heuristic modification to simplify the calculation, its equation becomes as follows:   _Z_ <u></u> _x_, _y_ _F_  _x_, _y_   exp   exp      (14) , _y_   exp   exp <u></u> _x_, _y_ <u></u>  _x_, _y_   _x_, _y_    _Z_ <u></u> _x_, _y_ <u></u>    exp   exp              where β > 0 is the parameter that controls the image illumination and contrast, in that lower β values compress the range of values, reducing illumination and contrast. In comparison, higher β values spread 143 "Illumination Enhancement of Nighttime Images Using a Regulated Single-scale Retinex Algorithm", O. A. Basheer and Z. Al-Ameen. out the intensity values, potentially enhancing illumination and contrast. Next, the log transform is applied as the seventh phase to further improve fine details in low-density areas. This transformation is appropriate for an excessively dark image, as it increases the values of dark pixels and decreases the values of highly-illuminated pixels [22], resulting in a well-balanced, visually pleasing outcome. The log transform can be computed as follows [23]: ### S  x, y   c log  F  x, y   1  (15) where S(x,y) represents the resulting value channel and _c_ is a luminance parameter that is set to 2.5. In the final eighth phase, a conversion from HSV to RGB is applied. To convert the HSV image, where ∈ [0, 1], to the corresponding RGB image, the following is applied [31]: ###### H ˆ   6  H  mod6 (16) where (0 ≤ Ĥ < 6) is initially obtained, then the intermediate values are calculated as follows: ###### c 1   H ˆ  x   1  S   v 1 ######   H ˆ  x   1  S     ###### H ˆ  x   1  ######  1  S  ######  1   S  c 2  ###### H ˆ  c 1 y   1 ######  H ˆ  c 1 y   1   S  c 2   ###### c 2  H ˆ  c 1 y   1   S  c 2   V 2 1 2 #####  1   S   1  c 2  #####  V z   1   S   1  c 2   ##### v  V z   1   S   1  c 2   V ###### 1   S   1 2 Using these pre-determined values, the normalized RGB channels are computed as follows: (17) (18) 1 1 ######  v, z, x  if c 1   y, v, x  if c 1   x, v, z  if c 1   ######  x, y, v  if c 1   ######  z, x, v  if c 1  ###### v, z, x  if c 1 y, v, x  if c 1 ###### v, z, x  if c 1  0 ######, v, x  if c 1  1 ######  x, v, z  if c 1 ˆ ˆ ˆ #### R, G, B   ######  x, v, z  if c 1  2 ˆ ˆ ˆ #### R, G, B   ˆ ˆ ˆ _R_, _G_, _B_ ####   ######  v, z, x   y, v, x   x, v, z   x, y, v   z, x, v   v, x, y  ###### x, y, v  if c 1 z, x, v  if c 1 v, x, y  if c 1 ######, y, v  if c 1  3 1 1 1 1 ###### z, x, v  if c 1  4 ######  v, x, y  if c 1  ###### v, x, y  if c 1  5 Finally, scaling the channels to the range of [0, _A_ -1] (normally _A_ = 256) is done in the following manner: round _A_  _R_ ˆ, _A_  1 #####     round _A_  _G_ ˆ, _A_  1 ####     round _A_  _B_ ˆ, _A_  1 #####     min round _A_  _R_ ˆ, _A_  1 #####     min round _A_  _G_ ˆ, _A_  1 ####     min round _A_  _B_ ˆ, _A_  1 #####      min round _A_  _R_ ˆ, _A_  #####    _R_  min round _A_  _R_ ˆ, _A_ #####    min round _A_  _G_ ˆ, _A_  #####   (19) _G_  min round _A_  _G_ ˆ, _A_  min round _A_  _B_ ˆ, _A_  #####    _B_  min round _A_  _B_ ˆ, _A_ #####   where RGB is the final algorithm output. The flowchart of the proposed RSSR algorithm is demonstrated in Figure 3. Figure 3. Flowchart of the proposed RSSR algorithm. 144 <mark>Jordanian Journal of Computers and Information Technology (JJCIT), Vol. 10, No. 02, June 2024.</mark> ##### 4. RESULTS AND DISCUSSION In this section, the results of the proposed algorithm are presented and its performance is evaluated on low-light nighttime images. These results are also discussed and compared to the results of other algorithms. In this study, two datasets were used. The first is the MIT-Adobe FiveK dataset [24], which contains five thousand images captured using single-lens (SLR) cameras by different photographers, wherein the images are all in RAW format, meaning that all data captured by the camera sensor is pristine. Photoshop was used to convert these images from the DNG format into the JPG format. The second one is the exclusively Dark (ExDARK) dataset [25], containing approximately seven thousand images captured in low-light conditions. When it comes to the comparison, the proposed algorithm is compared with ten advanced methods; namely, SDD [7], AIE [9], FBE [12], LECARM [10], LIME [13], RBMP [8], RRM [11], SPV [32], TS [33] and GM [34]. Moreover, the results of the proposed method and other methods are evaluated using one reduced-reference (RR) metric, called the lightness order error (LOE) and two no-reference (NR) metrics that are natural image-quality evaluator (NIQE) metric and blind/referenceless image spatial quality evaluator (BRISQUE). The LOE [27] is utilized to measure the error of the lightness order (i.e., illumination quality) between the degraded image and its filtered counterpart. The output of the LOE is a numerical value, where lower scores represent a better illumination quality. The LOE is defined as: <u>1</u> _W_ _H_ _LOE_   _D_  _x_, _y_  _W_  _H_ _x_  1 _y_  1 (20) The variables _W_ and _H_ represent the image dimensions and _D(x,y)_ denotes the relative order difference in luminance between two given images. Moreover, the NIQE [28] measures the naturality and evaluates the quality based on measurable deviations from statistical patterns found in natural images without considering expected distortions or human subjective judgments. The quality of the distorted image is quantified by measuring the difference between the statistical properties of the model and the distorted image. The output NIQE is a numeric value, where lower scores represent better naturality. Likewise, the BRISQUE [29] measures the distortions and perceived quality and utilizes natural scene statistics (NSS) to construct a distortion-agnostic no-reference metric for image quality that functions in the spatial domain. NSS focuses on analyzing the statistical patterns seen in “natural scene” photos and developing metrics to quantify the extent to which the statistical properties of an unfamiliar image differ from those of typical natural scene images. The output BRISQUE is a numeric value, where lower scores represent low distortion and high quality, which is deemed better. In brief, the NIQE measures the naturality, the LOE measures the illumination quality and the BRISQUE measures the existence of distortions. As for computational complexity, CPU runtime can deliver insights into an algorithm’s efficiency and complexity [26]. Let’s dissect it: the computational complexity measures the number of resources required by a method to solve a problem. It’s usually quantified in terms of space and time complexity. The CPU runtime, on the other hand, denotes the real time needed by a CPU to implement a specific method. It relies on numerous aspects, such as the method’s complexity, the input size and the hardware utilized. Comparative analysis (CA) can be applied to this case. CA means that comparing the CPU runtimes of various methods for the same task provides a sense of relative computational complexities, in that a method with a lower runtime for the same input size denotes a lower computational complexity. Thus, CPU runtimes have been considered as a computational complexity measure and provided in this study in Table 4 and Figure 13. The computer on which experiments and evaluations were performed had specifications of 16 GB of RAM, a Core i7-8650U 2.11 GHz processor and MATLAB 2020a. Figures 4-7 show the experimental results of the proposed algorithm with various degraded nighttime images, Figures 8-11 demonstrate the comparison results. Moreover, Tables 1-4 show the recorded scores and implementation times for the compared algorithms. Finally, Figure 12 and Figure 13 display the graphs of the average performance in Tables 1-4. As in the given samples of the conducted experiments, the proposed algorithm succeeded in improving the quality of nighttime images in that it illuminates dark areas while preserving the illumination of the bright regions from being extremely amplified, in addition to emphasizing the visual details of the filtered images. This balance benefits in maintaining the natural illumination while improving visibility in darker image parts. Moreover, the output images from the proposed RSSR algorithm have vibrant, 145 "Illumination Enhancement of Nighttime Images Using a Regulated Single-scale Retinex Algorithm", O. A. Basheer and Z. Al-Ameen. eye-comforting colors with acceptable contrast, bearing in mind that the proposed method does not add any distortion or unwanted artifacts during the processing procedure and prevents the noise from being massively augmented. This guarantees that the processed images stay true to the pristine scene without Figure 4. Experimental results of the MIT-Adobe dataset (Batch-1) : (1 <sup>st</sup> row) represents unprocessed nighttime images; (2 <sup>nd</sup> row) represents the version of the enhanced images from the proposed algorithm with β values equal to (5, 6, 7, 5, 6). Figure 5. Experimental results of the MIT-Adobe dataset (Batch-2) : (1 <sup>st</sup> row) represents unprocessed nighttime images; (2 <sup>nd</sup> row) represents the version of the enhanced images from the proposed algorithm with β values equal to (7, 6, 7, 7, 6). Figure 6. Experimental results of the ExDARK dataset (Batch-1) : (1 <sup>st</sup> row) represents unprocessed nighttime images; (2 <sup>nd</sup> row) represents the version of the enhanced images from the proposed algorithm with β values equal to (11, 9, 9, 10, 10). Figure 7. Experimental results of the ExDARK dataset (Batch-2) : (1 <sup>st</sup> row) represents unprocessed nighttime images; (2 <sup>nd</sup> row) represents the version of the enhanced images from the proposed algorithm with β values equal to (12, 11, 10, 9, 9). 146 <mark>Jordanian Journal of Computers and Information Technology (JJCIT), Vol. 10, No. 02, June 2024.</mark> presenting any visual irregularities. Moreover, this also indicates that the RSSR algorithm not only enhances visibility, but also improves the images’ visual appeal. In addition, the calculations are low and therefore, the proposed method has great potential in night-image processing, making it suitable for resource-constrained applications. Figure 8. Comparison results (Batch-1) . (a1) unprocessed image (1024×683); (a2) SDD; (a3) AIE; (a4) FBE; (a5) LECARM; (a6) LIME; (a7) RRM; (a8) RBMP; (a9) GM; (a10) TS; (a11) SPV; (a12) proposed RSSR. From the outcomes of the performed comparisons, it is observed that each method provides different enhancement modes due to the different used processing notions, wherein the analysis of each method depends on aspects, such as quality of illumination, contrast, colors, sharpness, in addition to the generation or increase in noise, artifacts or errors. SDD provided insufficient illumination with a smoothed appearance and brightness amplification. It’s why the metrics readings are low and the processing speed is slow due to the implementation of the noise-reduction process. AIE delivered the second-best reading in terms of LOE compared to the other methods. However, the unnatural tonality and noise generation led to scoring poorly in NIQE and not good in BRISQUE. Still, it recorded the second fastest method in terms of processing time. FBE recorded low and unusual brightness and contrast but with adequate sharpness. Thus, LOE readings were not good, but BRISQUE and NIQE readings were agreeable and the processing speed was considered acceptable. Likewise, LECARM produced images with insufficient lighting and had white shadows around the edges. Thus, LOE readings were unacceptable, but the BRISQUE and NIQE readings were reasonable with relatively fast processing speeds. LIME introduced brightness amplification, unusual illumination, processing errors and boosted colors. That is why the LOE readings were the worst among the competitors, yet they averaged in terms of BRISQUE and NIQE with above-average processing speed. In addition, the RRM algorithm provided average illumination with over-smoothness. Due to that, the LOE readings were mediocre, but due to the over-smoothness, the readings of BRISQUE and NIQE were very low. As for the processing time, it was the worst as it took an extremely long processing period. Moreover, RBMP delivered adequate illumination with somewhat pale colors. Thus, the LOE readings were satisfactory as well and the BRISQUE and NIQE metrics recorded the second-best results, considering that it did not generate distortions, provided slightly pale colors and was noticeable fast. GM delivered results with limited brightness, imbalanced contrast and slightly pale colors, scoring below average in LOE, low in BRISQUE and NIQE and with slow performance according to the average runtime. TS proved to have low illumination and artifacts in the results, leading to low LOE, BRISQUE and NIQE readings with fast runtimes. SPV increased the illumination and surged the difference 147 "Illumination Enhancement of Nighttime Images Using a Regulated Single-scale Retinex Algorithm", O. A. Basheer and Z. Al-Ameen. between the brightest and darkest regions in the image, leading to somewhat average readings according to the utilized metrics. When it comes to the proposed RSSR, it outperformed all the other comparison algorithms subjectively and objectively, as it recorded the best readings according to LOE, BRISQUE and NIQE metrics with the fastest execution time. It is essential, because it is infrequent to have an algorithm that produces high-quality results rapidly without generating distortion or massive noise presentation. In this context, the proposed algorithm excels and its performance is considered positive and distinctive for the desired purpose, improving the illumination of nighttime images. Figure 9. Comparison results (Batch-2) . (b1) unprocessed image (1024×680); (b2) SDD; (b3) AIE; (b4) FBE; (b5) LECARM; (b6) LIME; (b7) RRM; (b8) RBMP; (b9) GM; (b10) TS; (b11) SPV; (b12) proposed RSSR. Figure 10. Comparison results (Batch-3) . (c1) unprocessed image (800×532); (c2) SDD; (c3) AIE; (c4) FBE; (c5) LECARM; (c6) LIME; (c7) RRM; (c8) RBMP; (c9) GM; (c10) TS; (c11) SPV; (c12) proposed RSSR. 148 <mark>Jordanian Journal of Computers and Information Technology (JJCIT), Vol. 10, No. 02, June 2024.</mark> Figure 11. Comparison results (Batch-4) . (d1) unprocessed image (640×427); (d2) SDD; (d3) AIE; (d4) FBE; (d5) LECARM; (d6) LIME; (d7) RRM; (d8) RBMP; (d9) GM; (d10) TS; (d11) SPV; (d12) proposed RSSR. Table 1. The recorded LOE↓ scores. Image SDD AIE FBE LECARM LIME RRM RBMP SPV TS GM Proposed Fig.8 310.6972 13.3393 285.7465 140.5607 619.3701 175.1018 6.8974 103.5646 100.0498 246.3067 0.9549 Fig.9 283.3439 12.1001 298.9320 172.7044 543.7599 210.1371 35.6361 167.4058 196.5971 286.8417 0.7978 Fig.10 400.8085 10.9486 376.5085 284.0700 978.8198 359.1726 34.6262 197.8955 607.2545 477.0071 7.5333 Fig.11 575.8479 11.4816 427.7972 460.4458 1087.1 571.9542 87.6679 1010.5 1589.9 395.6528 11.3453 Avg 392.6743 11.9674 347.2460 264.4452 807.2624 329.0914 41.2069 369.8414 623.4503 351.4520 5.1578 Table 2. The recorded BRISQUE↓ scores. Image SDD AIE FBE LECARM LIME RRM RBMP SPV TS GM Proposed <u>Fig.8</u> <u>29.3314</u> <u>34.9999</u> <u>26.9860</u> <u>28.0290</u> <u>33.1889</u> <u>31.3011</u> <u>26.8401</u> 21.8559 21.5089 28.9948 <u>24.7420</u> <u>Fig.9</u> <u>28.8798</u> <u>20.7151</u> <u>19.1639</u> <u>19.2840</u> <u>20.0713</u> <u>31.2884</u> <u>19.7321</u> 28.2142 17.9283 31.7083 <u>18.0840</u> <u>Fig.10</u> <u>30.0810</u> <u>13.0398</u> <u>12.4795</u> <u>12.6481</u> <u>12.7708</u> <u>43.1239</u> <u>10.2004</u> 23.5718 30.5554 23.8386 <u>8.6066</u> <u>Fig.11</u> <u>25.2895</u> <u>22.4329</u> <u>18.0028</u> <u>16.4182</u> <u>18.8628</u> <u>25.8702</u> <u>17.2163</u> 21.2278 39.0027 23.7215 <u>15.5915</u> <u>Avg</u> <u>28.3954</u> <u>22.7969</u> <u>19.1580</u> <u>19.0948</u> <u>21.2234</u> <u>32.8959</u> <u>18.4972</u> <u>23.7174</u> <u>27.2488</u> <u>27.0658</u> <u>16.7560</u> Table 3. The recorded NIQE↓ scores. Image SDD AIE FBE LECARM LIME RRM RBMP SPV TS GM Proposed <u>Fig.8</u> <u>2.8009</u> <u>3.1575</u> <u>2.3784</u> <u>2.3234</u> <u>2.5689</u> <u>3.1398</u> <u>2.3259</u> 2.5575 2.2575 3.0323 <u>2.1849</u> <u>Fig.9</u> <u>2.3427</u> <u>2.9661</u> <u>2.5334</u> <u>2.5476</u> <u>2.7440</u> <u>2.8844</u> <u>2.2979</u> 2.6727 2.4478 2.7833 <u>2.4188</u> <u>Fig.10</u> <u>3.3333</u> <u>2.0966</u> <u>2.1190</u> <u>2.0112</u> <u>2.1122</u> <u>3.1282</u> <u>2.0596</u> 2.5849 3.1453 2.9401 <u>1.9478</u> <u>Fig.11</u> <u>3.0179</u> <u>3.3062</u> <u>2.6004</u> <u>2.7839</u> <u>2.8941</u> <u>3.4941</u> <u>2.8951</u> 2.9095 4.4594 3.1705 <u>2.6001</u> <u>Avg</u> <u>2.8737</u> <u>2.8816</u> <u>2.4078</u> <u>2.4165</u> <u>2.5798</u> <u>3.1616</u> <u>2.3946</u> <u>2.68115</u> <u>3.0775</u> <u>2.98155</u> <u>2.2879</u> Table 4. The recorded runtimes↓ (in seconds). Image SDD AIE FBE LECARM LIME RRM RBMP SPV TS GM Proposed Fig.8 21.40511 0.18263 0.84769 0.68879 2.16288 54.36626 0.45154 18.248078 0.500824 46.933321 0.13474 Fig.9 18.44903 0.18122 0.71538 0.73408 2.42125 105.09780 0.33700 22.879234 0.543656 50.913605 0.17260 Fig.10 13.30351 0.15941 0.71985 0.40115 1.10794 31.33848 0.25359 11.602561 0.310696 33.103307 0.06986 Fig.11 11.11168 0.26329 2.76838 0.37095 3.64605 36.45124 0.18027 18.511313 0.162029 16.652700 0.06114 Avg 16.06733 0.19664 1.26282 0.54874 2.33453 56.81345 0.30560 17.8102 0.37930 36.9007 0.10958 149 "Illumination Enhancement of Nighttime Images Using a Regulated Single-scale Retinex Algorithm", O. A. Basheer and Z. Al-Ameen. Figure 12. Average readings of LOE and BRISQUE. Figure 13. Average readings of NIQE and runtimes. The proposed RSSR outperformed the other algorithms in the metrics used because of the careful development and attentive analysis of the drawbacks of the related-work methods, knowing what advantages to consider and what disadvantages to avoid. When developing the RSSR, it has been affirmed that proper illumination must be provided with balanced contrast and attractive colors and focused on avoiding the generation of unwanted processing errors in addition to evading noise amplification. Thus, the methods used in the development of the RSSR were added and adapted successfully to introduce a fast and efficient algorithm. Despite the accomplishments of the algorithm, it still has one limitation; that is, it is not fully automatic and the human operator should manually choose the value of β to produce the resulting image with the desired illumination. ##### 5. CONCLUSION This research proposes an algorithm to improve the illumination of nighttime images. This algorithm works on the HSV color model and estimates the illumination image in a similar way to the standard SSR model. Still, it differs in the subtraction process, as it uses logarithmic subtraction in addition to the utilization of two statistical approaches for further visual enhancement, in that the first is a modified CDF-GP approach, which applies a curvy transform and the other one is a non-complex log transform. The performance of the proposed algorithm is assessed by utilizing two different datasets. By performing a comparison with ten contemporary algorithms, the obtained results are then evaluated using three metrics and recorded CPU runtimes. The study’s outcomes showed that the proposed RSSR algorithm improved the quality of nighttime images and properly illuminated the details in dark areas while avoiding over-illumination of bright areas, producing images with natural and balanced brightness, adequate colors and adjusted contrast. As a result, the proposed RSSR algorithm outperformed the other algorithms in the used objective measures and recorded the fastest runtime. This is essential, as it is challenging to find an algorithm that is uncomplicated and fast and, at the same time, generates satisfactory results. In future work, it is likely to embrace developments by including AI for automation. ##### ACKNOWLEDGMENT The authors would like to thank the University of Mosul staff for the success of this study. 150 <mark>Jordanian Journal of Computers and Information Technology (JJCIT), Vol. 10, No. 02, June 2024.</mark> ##### REFERENCES [1] Y. F. Wang, H. M. Liu and Z. W. Fu, "Low-light Image Enhancement _via_ the Absorption Light Scattering Model," IEEE Transactions on Image Processing, vol. 28, no. 11, pp. 5679–5690, 2019. [2] X. Guo, Y. Li and H. Ling, "LIME: Low-light Image Enhancement _via_ Illumination Map Estimation," IEEE Transactions on Image Processing, vol. 26, no. 2, pp. 982–993, 2017. [3] Y. Qi et al., "A Comprehensive Overview of Image Enhancement Techniques," Archives of Computational Methods in Engineering, vol. 29, no. 1, pp. 583–607, 2022. [4] M. Li, J. Liu, W. Yang, X. Sun and Z. Guo, "Structure-revealing Low-light Image Enhancement _via_ Robust Retinex Model," IEEE Transactions on Image Processing, vol. 27, no. 6, pp. 2828–2841, 2018. [5] H. Lee, "Successive Low-light Image Enhancement Using an Image-adaptive Mask," Symmetry (Basel), vol. 14, no. 6, p. 1165, 2022. [6] R. R. Hussein, Y. I. Hamodi and R. A. Sabri, "Retinex Theory for Color Image Enhancement: A Systematic Review," Int. J. Electr. Comput. Eng. (IJECE), vol. 9, no. 6, p. 5560, 2019. [7] S. Hao, X. Han, Y. Guo, X. Xu and M. Wang, "Low-light Image Enhancement with Semi-decoupled Decomposition," IEEE Transactions on Multimedia, vol. 22, no. 12, pp. 3025–3038, 2020. [8] M. A. Al-Hashim and Z. Al-Ameen, "Retinex-based Multiphase Algorithm for Low-light Image Enhancement," Traitement du Signal (TS), vol. 37, no. 5, pp. 733–743, 2020. [9] W. Wang, Z. Chen, X. Yuan and X. Wu, "Adaptive Image Enhancement Method for Correcting Lowillumination Images," Information Sciences, vol. 496, pp. 25–41, 2019. [10] Y. Ren, Z. Ying, T. H. Li and G. Li, "LECARM: Low-light Image Enhancement Using the Camera Response Model," IEEE Trans. on Circuits and Sys. for Video Techn., vol. 29, no. 4, pp. 968–981, 2019. [11] M. Li, J. Liu, W. Yang, X. Sun and Z. Guo, "Structure-revealing Low-light Image Enhancement _via_ Robust Retinex Model," IEEE Transactions on Image Processing, vol. 27, no. 6, pp. 2828–2841, 2018. [12] X. Fu, D. Zeng, Y. Huang, Y. Liao, X. Ding and J. Paisley, "A Fusion-based Enhancing Method for Weakly Illuminated Images," Signal Processing, vol. 129, pp. 82–96, 2016. [13] X. Guo, "LIME: A Method for Low-light Image Enhancement," Proc. of the 24 <sup>th</sup> ACM Int. Conf. on Multimedia, DOI:10.1145/2964284.2967188, 2016. [14] D. J. Jobson, Z. Rahman and G. A. Woodell, "Properties and Performance of a Center/Surround Retinex," IEEE Transactions on Image Processing, vol. 6, no. 3, pp. 451-462, 1997. [15] Z. Rahman, D. J. Jobson, and G. A. Woodell, “Resiliency of the multiscale retinex image enhancement algorithm,” in Color Imaging Conference: Color Science, Systems and Applications, 1998. [16] D. J. Jobson, "Retinex Processing for Automatic Image Enhancement," Journal of Electronic Imaging, vol. 13, no. 1, pp. 100-110, 2004. [17] M. Ismail and Z. Al-Ameen, "Adapted Single Scale Retinex Algorithm for Nighttime Image Enhancement," AL-Rafidain J. of Computer Sciences and Mathematics, vol. 16, no. 1, pp. 59–69, 2022. [18] Y. Meng, D. Kong, Z. Zhu and Y. Zhao, "From Night to Day: GANs Based Low Quality Image Enhancement," Neural Processing Letters, vol. 50, no. 1, pp. 799–814, 2019. [19] R. C. Gonzalez and R. E. Woods, Digital Image Processing: International Edition, 3 <sup>rd</sup> Ed., Upper Saddle River, NJ: Pearson, 2008. [20] V. Patrascu and V. Buzuloiu, "Color Image Processing Using Logarithmic Operations," Proc. of the IEEE Int. Symposium on Signals, Circuits and Systems (SCS 2003), DOI: 10.1109/SCS.2003.1226966, 2004. [21] R. J. Oosterbaan, "Software for Generalized and Composite Probability Distributions," International Journal of Mathematical and Computational Methods, vol. 4, no. 1, pp. 1-19, 2019. [22] W. Wang, X. Wu, X. Yuan and Z. Gao, "An Experiment-based Review of Low-light Image Enhancement Methods," IEEE Access, vol. 8, pp. 87884–87917, 2020. [23] E. Baidoo and K. Alex, "Implementation of Gray Level Image Transformation Techniques," Int. J. of Modern Education and Computer Science, vol. 10, no. 5, pp. 44–53, 2018. [24] V. Bychkovsky, S. Paris, E. Chan and F. Durand, "Learning Photographic Global Tonal Adjustment with a Database of Input/Output Image Pairs," Proc. of the Int. Conf. on Computer Vision and Pattern Recognition (CVPR), DOI: 10.1109/CVPR.2011.5995413, Colorado Springs, USA, 2011. [25] Y. P. Loh and C. S. Chan, "Getting to Know Low-light Images with the Exclusively Dark Dataset," Computer Vision and Image Understanding, vol. 178, pp. 30–42, 2019. [26] M. R. Lone and A. K. Sandhu, "Enhancing Image Quality: A Nearest Neighbor Median Filter Approach for Impulse Noise Reduction," Multimedia Tools and Applications, pp. 1–17, 2023. [27] S. Bao, S. Ma and C. Yang, “Multi-scale retinex-based contrast enhancement method for preserving the naturalness of color image,” Opt. Rev., vol. 27, no. 6, pp. 475–485, 2020. [28] A. Mittal, R. Soundararajan and A. C. Bovik, "Making a ‘Completely Blind’ Image Quality Analyzer," IEEE Signal Processing Letters, vol. 20, no. 3, pp. 209–212, 2013. [29] A. Mittal, A. K. Moorthy and A. C. Bovik, "No-reference Image Quality Assessment in the Spatial Domain," IEEE Transactions on Image Processing, vol. 21, no. 12, pp. 4695–4708, 2012. [30] E. H. Land and J. J. McCann, "Lightness and Retinex Theory," J. of the Optical Society of America, vol. 151 "Illumination Enhancement of Nighttime Images Using a Regulated Single-scale Retinex Algorithm", O. A. Basheer and Z. Al-Ameen. 61, no. 1, pp. 1–11, 1971. [31] W. Burger and M. Burge, Principles of Digital Image Processing: Fundamental Techniques, 1 <sup>st</sup> Edn. London, England: Springer, 2009. [32] X. Wu, B. Wu, J. He, B. Fang, Z. Shang and M. Zhou, "A Structure Preservation and Denoising Lowlight Enhancement Model _via_ Coefficient of Variation," Int. J. of Pattern Recognition and Artificial Intelligence, vol. 36, no. 13, DOI: 10.1142/S0218001422540180, 2022. [33] M. F. Hassan, T. Adam, H. Rajagopal and R. Paramesran, "A Hue Preserving Uniform Illumination Image Enhancement _via_ Triangle Similarity Criterion in HSI Color Space," Visual Computer, vol. 39, no. 12, pp. 6755–6766, 2023. [34] X. Yi, C. Min, M. Shao, H. Zheng and Q. Lv, "Low-light Image Enhancement _via_ Regularized Gaussian Fields Model," Neural Processing Letters, vol. 55, no. 9, pp. 12017–12037, 2023. [35] J. J. Jeon, J. Y. Park and I. K. Eom, "Low-light Image Enhancement Using Gamma Correction Prior in Mixed Color Spaces," Pattern Recognition, vol. 146, p. 110001, DOI: 10.1016/j.patcog.2023.110001, 2024. [36] J. Li, X. Feng and Z. Hua, "Low-light Image Enhancement _via_ Progressive-recursive Network," IEEE Transactions on Circuits and Systems for Video Technology, vol. 31, no. 11, pp. 4227–4240, 2021. [37] D. Dai and L. Van Gool, "Dark Model Adaptation: Semantic Image Segmentation from Daytime to Nighttime," Proc. of the 21 <sup>st</sup> Int. Conf. on Intelligent Transportation Systems (ITSC), DOI: 10.1109/ITSC.2018.8569387, Maui, USA, 2018. ##### :ملخص البحث فييي ي ييي ي ّ ي ي ييي ا ّ ل ي ييي ي ييي ا ّ ِ ي ييي ِو ي ي ل ييي ا ّو ي ييي ّد ّ م ف ي ييي ّا ون ي ييي ّي ا ا ّيل ي ييي ّاس ِشا ي يييي ُ ار ِ ي ييي أل ي ييي ا ّ لييييي ي ا ّاو ّييييي ض يييي ي ييي ّ ي ون ي ييي س واي ي يوي ل ييي ا ّري ييييي ا ّو ي ييي ّة، ف ي ّةييييي بي ا ا ض ييياا ي ييي ّد ّونظر ول ي بييييا ي م ا ّلُّنييي ا ي ييياس ّ ي ييي ي م ري ي ييي س ا ي ِّ م ييي ي ييي س ور ي يييا اوو ي ييي بي ي ييي ّة،م ش ا ي ييي ي ة ٍا ي اا مر ##### و يييي اا ي يييي ة ّ ي يوي ل يييي ي ا ّو ي يييي ا ّ ُّ ي يييي ّة، ف ي ييييي ا ا ي ّ ب ض يييي ي ااوي ض يييي ي يييي ت ايو ي ي ييييي ُ ا ّ ي ي يييياا أل ي ييي ا ّيلاييي رت ي وا ي ييي ّ ي ر ِر ي ييي ل ا ل ا ي ييي ا ّ ي ييي م ي ييي ي ا ي ييي ا ّ ل ي يييادم ّا ّّ ي ييي د ش ي ٍ او ييي ي ييي رتم ِاوى ي )يييييا ويدRGB ا ّاب ي يييييا تة ي ييييي رت ا ي ييييي وا ي ييييي ّ ي ييييياا ّّ ن ي ييييي ي ا ّا ي ييييي ا ّ ل ي ييييي ا ة ِ ي )ر ة ييي ي ،ّ يييييS )ييي يييييH ،ّ) شر ييييي ي او ّض ييي ف يييي ،ّ يييييV )س ييييظ ِ بل ي ّيييي وايييي رتHSV ر ّيييييمس ِييييي ظل و ييييي ِا وبييييي ، ا اييييي ّة، ييييي ا ّ لييييي ي، بييييي ّا ت ايو يييييي ّ ييييي لم ييييي ا اييييي ّة ا ّ ل ي، ارصوي ر ##### يييي ااوييييي س ي ّّي يييي ّ ا ي يييي واا اي ي يييي و و ِ ي يييي لا ّ ي يييي ظل و ري ي ِّا س ِ يييي ّي ي يييياا ّ ب ي يييي د ي ة ي يييييمس و ي ُ وىيييييي ا ّي ي يييييي ٍِيييييي اِّاييييييي ر ويييييي ألييييييي بييييييي ة ّ يييييي اا دا ِ يييييي و يييييي ّ ب ّي ل يييييي ا ّ ض ) ِييييييي ّييييييي واييييييي رتRGB ا ّا ّّ ييييييي ّييييييي ّوييييييي ا ّ ل ) ،ّا ّ اويييييييي ّ ّييييييي و ييييييي ّت ييييييييV ّو او ا ّا ات ا ّيلن ّ ر ##### ّ يييييي وييييييظل و ا ِيييييي ش ا ّيل ايييييي رت ا ّا يييييياا ة ّ يييييي اا ايييييي ا ةي ّويييييي ّ مس ّيو يييييي يييييي انييييييا ت ايو ييييي ّةض ي يييي ّار ةي ي يييياا ا ّ ي ي يييي ي يييي م ي يييي اا ي يييي ا ة ّ ي يييي ّ ا ّا ا ي يييي ةي ي يييي ّ اي ، ف ي اويييي د ي يييياا و ي يييي رت ا ّا ي يييي ،م ّويلا ي يييياا اةم اا ي يييي ل ي يييي او ي ييييظل ا ّ ي يييي س و ي يييي ّ ا ّا ّيو ي يييي و ي يييي ا ،ّ يييي ّة ي ييييي ا ا ي يييي و ب ي يييي ا ّ ي يييي ون ي ي يييي ّ ا ّ ّ ا ي يييي ا ّ ايو ي ي ييييام ي يييي ّي ي يييياا ار اة ف ي ر ض ف ا ّ ل ي ا ّاو ّي <mark>This article is an open access article distributed under the terms and conditions of the Creative</mark> <mark>Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).</mark>

섹션 본문 54문단 · 32,568자

(제목 없음)

1Nowadays, people are active during the nighttime and take many photos to record their activities.Due to the lowlight nature of the environment at nighttime, captured images tend to appear with dimmed and imbalanced illumination, limited contrast, covert noise and diminished colors.Thus, this paper presents a practical algorithm to improve the illumination of nighttime images based on the single-scale retinex model, image processing methods and certain statistical functions.The developed algorithm initiates by converting the image from the RGB into the HSV model.Then, it enhances only the value (V) channel while preserving the H and S channels.Next, estimating the illumination version of the image and calculating the logarithms of both the illumination and original image are performed.Afterward, a logarithmic subtraction occurs and a modified cumulative distribution function of Gumble probability is applied and the result is further enhanced using a logarithmic transform method.These operations produce the processed V channel and a conversion to the RGB format occurs to generate the final output.The proposed algorithm is experimented with by using two datasets, compared to ten different contemporary algorithms and outcomes are evaluated via three sophisticated metrics.Based on the attained results, promising performances by the developed algorithm have been recorded, surpassing the performance of many existing algorithms in various objective, subjective and runtime terms.

INTRODUCTION

2Nighttime is the period from dusk to dawn [37].Images taken at nighttime are of defective quality and characterized by unbalanced illumination, unpleasant colors, limited contrast and undesirable noise [1].Due to the significant increase in nighttime photography to visualize large-scale events, such as personal activities, surveillance and speed cams, there has been an urgent need for efficient nighttime imageenhancement algorithms.Thus, this topic has attracted widespread attention by various beneficiaries.Since hardware is constantly improving, most modern devices and computer-vision applications are required to deliver high-quality images [2].Image enhancement (IE) refers to the operations applied to an image to improve its perceived quality and make it more visually pleasing to the recipient.The primary goal of IE is to change the characteristics of an image to enhance its suitability for a particular activity and viewer without introducing errors [3].IE techniques must seek to consider two crucial factors: 1) There may be hidden noise in dark areas of nighttime images, so it must be ensured that the noise is suppressed or kept from being amplified when improving the illumination [4].2) Preserving the brightness in the already bright areas from being amplified to avoid the state of over-enhancement [5].

3Different algorithms have been introduced to help improve the quality of digital images.One concept of interest is the Retinex theory, which is commonly used for image enhancement and owns many versions, such as the single-scale retinex (SSR), multi-scale retinex (MSR) and multi-scale retinex with color restoration (MSRCR) [6].This research introduces a well-developed SSR algorithm using statistical and image-processing methods for nighttime-image enhancement.The performance of the proposed algorithm has been tested on two datasets, compared to ten contemporary algorithms explained in the related-work section, in addition to evaluating and discussing the results thoroughly.The paper is organized as follows: the 2 nd section explains a literature review of recent years' research work, the 3 rd section explains the developed algorithm in depth, the 4 th section presents the attained results and the 5 th section gives a brief conclusion.

RELATED WORK

4In recent years, numerous studies have been introduced on improving nighttime images due to their high importance in different real-world applications.The selected studies are reviewed in a newer to older style.In 2024, a method that utilizes gamma correction and merged color spaces is introduced [35], in that the algorithm starts by determining a transmission map (TM) that includes the saturation information of the degraded image in two different color spaces.Next, the calculated TM is transformed into a function that contains the max and mean values and these values are approximated from a poor illumination image by utilizing a gamma-correction approach.After that, an adaptive valuedetermination algorithm is applied to enhance the image, prevent the over-enhancement phenomenon and generate the output.In 2023, a Gaussian-based model (GM) was developed [34] and this algorithm starts by creating the GM to get the estimated reflectance and illumination information based on the retinex theory.Then, based on the retinex theory, a decomposition in the GM-based operation is applied to the illumination layer and a gradient descent-based approach is implemented to enhance the image's illumination.Lastly, a denoising process based on the total-variation concept is executed on the reflectance layer to reduce the noise and generate the output.

5In 2023, a triangle similarity-based algorithm (TS) was presented [33], in that it begins by transforming the image into the HSI color domain and maintaining the hue channel while processing the saturation and intensity channels.Next, a translation-based operation is applied to the saturation channel to improve the color representation.After that, various scaling operations are implemented in the intensity channel to improve the illumination and visual information.Lastly, a transformation to the RGB domain is applied to create the output.In 2022, a structure preservation-based variation model (SPV) was provided [32] and it started by utilizing a variation-coefficient-based concept to improve the illumination information.Next, a total-variation concept is implemented to reduce the noise information in the image.Lastly, these two images are mixed using the retinex concept in an iterative way to generate the output.In 2021, a progressive-recursive network-based algorithm was established [36], in that the method begins by getting the degraded image and sending it to a dual-attention approach to extract the global features.After that, a mixture of residual blocks and recurrent layers is utilized to extract the local features.Based on the extracted local and global features, several recursive operations are applied to enhance the image and create the output.

6In 2020, a semi-decoupled decomposition (SDD) algorithm was proposed [7], in that it decomposes the image using the retinex model into reflectance and illumination components in a semi-decoupled manner.The illumination layer is enhanced progressively and the reflectance layer is improved jointly using a specialized total-variation concept.These components are united to create the output.In 2020, a retinex-based multi-phase (RBMP) algorithm was proposed [8], which is initiated by computing the illumination image in a manner akin to the standard SSR algorithm, subtracts the log of the illumination image from the log of the original image using a modified method and then processes the output through a gamma-corrected sigmoid and normalization approaches to generate the output.In 2019, an adaptive image-enhancement (AIE) algorithm was presented [9], where it first transforms the image to the HSV domain and the V channel is processed to isolate the illumination component of the scene through a multi-scale Gaussian function.Afterward, a correction function is implemented via the Weber-Fechner law and two outputs are generated by adaptively adjusting the parameters according to the distribution profiles of the illumination components.The output is created by combining both images using a specially-developed approach.Similarly, in 2019, an algorithm named LECARM was developed [10], which began by utilizing illumination-estimating algorithms to calculate the exposure ratio for every pixel.After that, the chosen camera-response model is employed to modify each pixel to achieve the required exposure based on the estimated exposure-ratio map.Lastly, the output is obtained using a specific mapping method.Moreover, in 2018, a robust retinex model (RRM) algorithm was presented [11], which starts by applying advanced regularization terms for illumination and reflectance approximation.More precisely, it employs one norm to limit the smoothness of the illumination in different regions, joining a fidelity term to highlight the structural details in low-light areas with the gradients of the reflectance to estimate the noise map using a robust Retinex concept.Next, the enhancement is applied using a Lagrange multiplier-based approach to build the output image.In 2016, a fusion-based enhancement (FBE) algorithm was developed [12], which utilizes an illumination-estimation algorithm based on morphological closure to separate an observed image into reflectance and illumination components.This algorithm generates two images from the illumination image, one with brightness enhancement and the other with contrast enhancement, by applying sigmoid transform and adaptive-histogram equalization.Moreover, two weights are created using a multi-scale process.Lastly, the two images are fused using the determined weights to create the output.In 2016, an algorithm called LIME was proposed [13], which starts by determining the max values of the RGB image, followed by the determination of reflectance and illumination information via the retinex model.The illumination information is enhanced using a structure-processing concept, followed by implementing different maps to further boost illumination.The output image is generated by joining the improved-illumination and reflectance components.

7As seen from the studied algorithms, different notions were used and the computational cost of each algorithm varies.Most of the proposed algorithms in this field did not reach the required level of enhancement.Thus, the chance remains to develop a new method that can improve the illumination of nighttime images more efficiently.The proposed algorithm differs from existing algorithms in several aspects.First, low computational developments are utilized to make the proposed algorithm efficient and particularly fast in filtering different nighttime images.Second, the utilized developments improve the illumination in a direct and non-iterative way while considering minimal noise augmentation, which is needed as many existing algorithms utilize the iterative feature and their utilized processing steps may amplify the noise, which leads to the requirement of another major step for image denoising, making such algorithms slow and require high computational cost.

PROPOSED ALGORITHM

8Land and McCann initially proposed the retinex theory [30].The term "retinex" is derived from the combination of the root terms "retina" and "cortex," which are both essential components of human vision.Retinex is more visually consistent with human vision.This is predicated on the notion that the reflectance and illumination components' collective influence creates the image, as shown in Figure 1.Specifically, when light illuminates an object, it creates a reflection that is then seen as an image by the human eye [6].Various algorithms have been designed based on the retinex theory, such as the SSR [14] and the MSR [15].Both algorithms utilize a specific Gaussian function to modify a given image.Therefore, the brightness level of the output image is determined by using the natural logarithm of reflectance.Nevertheless, it may exhibit a color-distortion effect, which poses a difficulty in both the SSR and MSR.A potential solution to address this problem is the implementation of a "Multi-scale Retinex with Color Restoration" (MSRCR) technique [16].Here, the inclusion of MSRCR allows for the handling of color distortion and restoration by utilizing the color ratio of the red, green and blue (RGB) channels.However, due to the universally-applied mapping curve, this method tends to diminish the level of detail in the image, particularly in the areas of high brightness.

9The primary motivation of the proposed regulated SSR (RSSR) algorithm is to improve the quality of night images by improving lighting in dark areas without intensifying brighter regions using noncomplex concepts.The SSR model and other less-complex statistical concepts and methods were used among these concepts.The original SSR model is used for illumination estimation of degraded images by applying convolution (*) between the input image I(x,y) and the Gaussian function G(x,y), which is calculated in the following manner [17]:

10Let Q be a normalizing factor; x and y represent the coordinates of the digital image; U and V denote two grayscale gradients, where U is horizontal and V is vertical.U and V hold the same size as I(x,y).

11Additionally, M and N represent the dimensions of I(x,y), (•) denotes a multiplication operation and σ is a parameter that addresses the brightness.Then, the logarithm of the illumination image resulting from the previous step and the logarithm of the degraded image are taken to produce an enhanced version of the degraded image called reflectance image R(x,y) by subtracting the log of the illumination image from the log of the degraded image [14], in the following manner:

12where R(x,y) is the output of original SSR.Experiments have been conducted on applying the standard SSR on different nighttime images to determine its filtering abilities with this type of image.Some results are demonstrated in Figure 2. From the conducted experiments, the SSR provided resulting images with defects, including extra dimming for the darkened areas, which led to the loss of visual details, as well as amplification of brightness in the bright areas and the production of unrealistic colors, leading to overall unacceptable results.Regardless of these defects, the standard SSR model is characterized by low computational cost, which is a key aspect and has a high development potential [14].

13The proposed RSSR algorithm aims to improve illumination while producing appropriate colors and avoids the over-amplification of the latent noise.The RSSR algorithm begins its first phase by converting the image from the RGB form into the HSV color model [18].This color model is designed to efficiently separate the color information from the brightness (value) information, making it intuitive to improve brightness by simply modifying the value component.Supposing that the input image I(x,y) has three color channels of red (R), green (G) and blue (B) and R, G, B ∈ [0, Wm], with Wm being the max.range value (typically 1), assuming the range ∈ [0,1], the conversion to the HSV color domain can be achieved using the following equations [31]:

14with Wh, Wl and Wr defined as Wh = max(R, G, B), Wl = min(R, G, B), Wr = (Wh -Wl), where S is the saturation channel and V is the value channel.What is more needed is to determine the hue (H) channel, wherein if the three RGB channels contain a similar value, then it is the case of a gray pixel.In this situation, Wr = 0, S = 0 and H is undefined.To calculate H when Wr > 0, each channel is normalized in the following manner: , , .

15Next, the initial hue (Ĥ) is calculated based on the notion of which color channel contains the max.value in the following manner:

16The outcome value of Ĥ is in the range of [-1, 5] and the final H channel is obtained in the range of [0,1] as follows:

17The operations are performed only on the value channel, because the key requirement here is to improve the illumination, as the HSV color domain separates the color information from the illumination information.Thus, the processing becomes rapid and efficient.In the second phase, the Gaussian function G(x,y) is calculated using Eq. ( 1) and Eq. ( 2), where (σ = N×M).The third phase includes the computation of the illumination image in the following manner [17]:

18where, M(x,y) is the illumination image.To apply the convolution (*) in the frequency domain, first, the Fourier transform is used to convert the inputs from the spatial domain into the frequency domain.Then, the element-wise multiplication between two inputs of the same size is computed.It often needs a frequency shift to return the high frequencies in the middle and the low frequencies in the edges and finally convert the image from the frequency domain into the spatial domain [19].In the fourth phase, the log of the illumination image M(x,y) and the log of the input image I(x,y) are determined as follows:

19Here, (ε = 0.001) represents a minor value added to prevent the computation of the log of zero, which is infinite.The fifth utilized phase includes the application of a logarithmic-subtraction approach [20], as logarithmic image processing has been utilized in dynamic range manipulation, improving the visibility of details in both dark and bright regions, replacing the standard-subtraction method in Eq. ( 3) to produce the reflectance image, as follows:

20After that, the sixth phase is implemented, which includes the utilization of a slightly modified cumulative distribution function of the Gumble probability (CDF-GP) approach.The standard CDF-GP approach can be mathematically expressed as follows [21]:

21This approach redistributes the values across the image, emphasizing certain brightness levels over others and improves the contrast depending on β.With a slight heuristic modification to simplify the calculation, its equation becomes as follows: (14) where β > 0 is the parameter that controls the image illumination and contrast, in that lower β values compress the range of values, reducing illumination and contrast.In comparison, higher β values spread

22out the intensity values, potentially enhancing illumination and contrast.Next, the log transform is applied as the seventh phase to further improve fine details in low-density areas.This transformation is appropriate for an excessively dark image, as it increases the values of dark pixels and decreases the values of highly-illuminated pixels [22], resulting in a well-balanced, visually pleasing outcome.The log transform can be computed as follows [23]:

23where S(x,y) represents the resulting value channel and c is a luminance parameter that is set to 2.5.In the final eighth phase, a conversion from HSV to RGB is applied.To convert the HSV image, where ∈ [0, 1], to the corresponding RGB image, the following is applied [31]:

24  ˆ6 mod 6 HH  (16) where (0 ≤ Ĥ < 6) is initially obtained, then the intermediate values are calculated as follows:

25Using these pre-determined values, the normalized RGB channels are computed as follows:

26Finally, scaling the channels to the range of [0, A-1] (normally A = 256) is done in the following manner:

27where RGB is the final algorithm output.The flowchart of the proposed RSSR algorithm is demonstrated in Figure 3.

28Figure 3. Flowchart of the proposed RSSR algorithm.

RESULTS AND DISCUSSION

29In this section, the results of the proposed algorithm are presented and its performance is evaluated on low-light nighttime images.These results are also discussed and compared to the results of other algorithms.In this study, two datasets were used.The first is the MIT-Adobe FiveK dataset which contains five thousand images captured using single-lens (SLR) cameras by different photographers, wherein the images are all in RAW format, meaning that all data captured by the camera sensor is pristine.Photoshop was used to convert these images from the DNG format into the JPG format.The second one is the exclusively Dark (ExDARK) dataset [25], containing approximately seven thousand images captured in low-light conditions.

30When it comes to the comparison, the proposed algorithm is compared with ten advanced methods; namely, SDD [7], AIE [9], FBE [12], LECARM [10], LIME [13], RBMP [8], RRM [11], SPV [32], TS [33] and GM [34].Moreover, the results of the proposed method and other methods are evaluated using one reduced-reference (RR) metric, called the lightness order error (LOE) and two no-reference (NR) metrics that are natural image-quality evaluator (NIQE) metric and blind/referenceless image spatial quality evaluator (BRISQUE).The LOE [27] is utilized to measure the error of the lightness order (i.e., illumination quality) between the degraded image and its filtered counterpart.The output of the LOE is a numerical value, where lower scores represent a better illumination quality.The LOE is defined as:

31The variables W and H represent the image dimensions and D(x,y) denotes the relative order difference in luminance between two given images.Moreover, the NIQE [28] measures the naturality and evaluates the quality based on measurable deviations from statistical patterns found in natural images without considering expected distortions or human subjective judgments.The quality of the distorted image is quantified by measuring the difference between the statistical properties of the model and the distorted image.The output NIQE is a numeric value, where lower scores represent better naturality.Likewise, the BRISQUE [29] measures the distortions and perceived quality and utilizes natural scene statistics (NSS) to construct a distortion-agnostic no-reference metric for image quality that functions in the spatial domain.NSS focuses on analyzing the statistical patterns seen in "natural scene" photos and developing metrics to quantify the extent to which the statistical properties of an unfamiliar image differ from those of typical natural scene images.The output BRISQUE is a numeric value, where lower scores represent low distortion and high quality, which is deemed better.In brief, the NIQE measures the naturality, the LOE measures the illumination quality and the BRISQUE measures the existence of distortions.

32As for computational complexity, CPU runtime can deliver insights into an algorithm's efficiency and complexity [26].Let's dissect it: the computational complexity measures the number of resources required by a method to solve a problem.It's usually quantified in terms of space and time complexity.The CPU runtime, on the other hand, denotes the real time needed by a CPU to implement a specific method.It relies on numerous aspects, such as the method's complexity, the input size and the hardware utilized.Comparative analysis (CA) can be applied to this case.CA means that comparing the CPU runtimes of various methods for the same task provides a sense of relative computational complexities, in that a method with a lower runtime for the same input size denotes a lower computational complexity.Thus, CPU runtimes have been considered as a computational complexity measure and provided in this study in Table 4 and Figure 13.The computer on which experiments and evaluations were performed had specifications of 16 GB of RAM, a Core i7-8650U 2.11 GHz processor and MATLAB 2020a.1-4 show the recorded scores and implementation times for the compared algorithms.Finally, Figure 12 and Figure 13 display the graphs of the average performance in Tables 1-4.

33As in the given samples of the conducted experiments, the proposed algorithm succeeded in improving the quality of nighttime images in that it illuminates dark areas while preserving the illumination of the bright regions from being extremely amplified, in addition to emphasizing the visual details of the filtered images.This balance benefits in maintaining the natural illumination while improving visibility in darker image parts.Moreover, the output images from the proposed RSSR algorithm have vibrant, eye-comforting colors with acceptable contrast, bearing in mind that the proposed method does not add any distortion or unwanted artifacts during the processing procedure and prevents the noise from being massively augmented.This guarantees that the processed images stay true to the pristine scene without presenting any visual irregularities.Moreover, this also indicates that the RSSR algorithm not only enhances visibility, but also improves the images' visual appeal.In addition, the calculations are low and therefore, the proposed method has great potential in night-image processing, making it suitable for resource-constrained applications.From the outcomes of the performed comparisons, it is observed that each method provides different enhancement modes due to the different used processing notions, wherein the analysis of each method depends on aspects, such as quality of illumination, contrast, colors, sharpness, in addition to the generation or increase in noise, artifacts or errors.SDD provided insufficient illumination with a smoothed appearance and brightness amplification.It's why the metrics readings are low and the processing speed is slow due to the implementation of the noise-reduction process.AIE delivered the second-best reading in terms of LOE compared to the other methods.However, the unnatural tonality and noise generation led to scoring poorly in NIQE and not good in BRISQUE.Still, it recorded the second fastest method in terms of processing time.FBE recorded low and unusual brightness and contrast but with adequate sharpness.Thus, LOE readings were not good, but BRISQUE and NIQE readings were agreeable and the processing speed was considered acceptable.

34Likewise, LECARM produced images with insufficient lighting and had white shadows around the edges.Thus, LOE readings were unacceptable, but the BRISQUE and NIQE readings were reasonable with relatively fast processing speeds.LIME introduced brightness amplification, unusual illumination, processing errors and boosted colors.That is why the LOE readings were the worst among the competitors, yet they averaged in terms of BRISQUE and NIQE with above-average processing speed.

35In addition, the RRM algorithm provided average illumination with over-smoothness.Due to that, the LOE readings were mediocre, but due to the over-smoothness, the readings of BRISQUE and NIQE were very low.As for the processing time, it was the worst as it took an extremely long processing period.Moreover, RBMP delivered adequate illumination with somewhat pale colors.Thus, the LOE readings were satisfactory as well and the BRISQUE and NIQE metrics recorded the second-best results, considering that it did not generate distortions, provided slightly pale colors and was noticeable fast.

36GM delivered results with limited brightness, imbalanced contrast and slightly pale colors, scoring below average in LOE, low in BRISQUE and NIQE and with slow performance according to the average runtime.TS proved to have low illumination and artifacts in the results, leading to low LOE, BRISQUE and NIQE readings with fast runtimes.SPV increased the illumination and surged the difference between the brightest and darkest regions in the image, leading to somewhat average readings according to the utilized metrics.When it comes to the proposed RSSR, it outperformed all the other comparison algorithms subjectively and objectively, as it recorded the best readings according to LOE, BRISQUE and NIQE metrics with the fastest execution time.It is essential, because it is infrequent to have an algorithm that produces high-quality results rapidly without generating distortion or massive noise presentation.In this context, the proposed algorithm excels and its performance is considered positive and distinctive for the desired purpose, improving the illumination of nighttime images.When developing the RSSR, it has been affirmed that proper illumination must be provided with balanced contrast and attractive colors and focused on avoiding the generation of unwanted processing errors in addition to evading noise amplification.Thus, the methods used in the development of the RSSR were added and adapted successfully to introduce a fast and efficient algorithm.Despite the accomplishments of the algorithm, it still has one limitation; that is, it is not fully automatic and the human operator should manually choose the value of β to produce the resulting image with the desired illumination.

CONCLUSION

37This research proposes an algorithm to improve the illumination of nighttime images.This algorithm works on the HSV color model and estimates the illumination image in a similar way to the standard SSR model.Still, it differs in the subtraction process, as it uses logarithmic subtraction in addition to the utilization of two statistical approaches for further visual enhancement, in that the first is a modified CDF-GP approach, which applies a curvy transform and the other one is a non-complex log transform.The performance of the proposed algorithm is assessed by utilizing two different datasets.By performing a comparison with ten contemporary algorithms, the obtained results are then evaluated using three metrics and recorded CPU runtimes.The study's outcomes showed that the proposed RSSR algorithm improved the quality of nighttime images and properly illuminated the details in dark areas while avoiding over-illumination of bright areas, producing images with natural and balanced brightness, adequate colors and adjusted contrast.As a result, the proposed RSSR algorithm outperformed the other algorithms in the used objective measures and recorded the fastest runtime.This is essential, as it is challenging to find an algorithm that is uncomplicated and fast and, at the same time, generates satisfactory results.In future work, it is likely to embrace developments by including AI for automation.

Figure 1 .

38Figure 1.The retinex theory.

Figure 2 .

39Figure 2. Outputs of the standard SSR model when applied to different nighttime images.

Figures 4 -

407 show the experimental results of the proposed algorithm with various degraded nighttime images, Figures 8-11 demonstrate the comparison results.Moreover, Tables

Figure 4 .

41Figure 4. Experimental results of the MIT-Adobe dataset (Batch-1): (1 st row) unprocessed nighttime images; (2 nd row) represents the version of the enhanced images from the proposed algorithm with β values equal to (5, 6, 7, 5, 6).

Figure 5 .

42Figure 5. Experimental results of the MIT-Adobe dataset (Batch-2): (1 st row) represents unprocessed nighttime images; (2 nd row) represents the version of the enhanced images from the proposed algorithm with β values equal to (7, 6, 7, 7, 6).

Figure 6 .

43Figure 6.Experimental results of the ExDARK dataset (Batch-1): (1 st row) represents unprocessed nighttime images; (2 nd row) represents the version of the enhanced images from the proposed algorithm with β values equal to (11, 9, 9, 10, 10).

Figure 7 .

44Figure 7. Experimental results of the ExDARK dataset (Batch-2): (1 st row) represents unprocessed nighttime images; (2 nd row) represents the version of the enhanced images from the proposed algorithm with β values equal to (12, 11, 10, 9, 9).

Figure 8 .

45Figure 8.Comparison results (Batch-1).(a1) unprocessed image (1024×683); (a2) SDD; (a3) AIE; (a4) FBE; (a5) LECARM; (a6) LIME; (a7) RRM; (a8) RBMP; (a9) GM; (a10) TS; (a11) SPV; (a12) proposed RSSR.

Figure 9 .

46Figure 9.Comparison results (Batch-2).(b1) unprocessed image (1024×680); (b2) SDD; (b3) AIE; (b4) FBE; (b5) LECARM; (b6) LIME; (b7) RRM; (b8) RBMP; (b9) GM; (b10) TS; (b11) SPV; (b12) proposed RSSR.

Figure 10 .

47Figure 10.Comparison results (Batch-3).(c1) unprocessed image (800×532); (c2) SDD; (c3) AIE; (c4) FBE; (c5) LECARM; (c6) LIME; (c7) RRM; (c8) RBMP; (c9) GM; (c10) TS; (c11) SPV; (c12) proposed RSSR.

Figure 11 .

48Figure 11.Comparison results (Batch-4).(d1) unprocessed image (640×427); (d2) SDD; (d3) AIE; (d4) FBE; (d5) LECARM; (d6) LIME; (d7) RRM; (d8) RBMP; (d9) GM; (d10) TS; (d11) SPV; (d12) proposed RSSR.

Figure 12 .

49Figure 12.Average readings of LOE and BRISQUE.

Figure 13 .

50Figure 13.Average readings of NIQE and runtimes.The proposed RSSR outperformed the other algorithms in the metrics used because of the careful development and attentive analysis of the drawbacks of the related-work methods, knowing what advantages to consider and what disadvantages to avoid.When developing the RSSR, it has been affirmed that proper illumination must be provided with balanced contrast and attractive colors and focused on avoiding the generation of unwanted processing errors in addition to evading noise amplification.Thus, the methods used in the development of the RSSR were added and adapted successfully to introduce a fast and efficient algorithm.Despite the accomplishments of the algorithm, it still has one limitation; that is, it is not fully automatic and the human operator should manually choose the value of β to produce the resulting image with the desired illumination.

Table 1 .

51The recorded LOE↓ scores.

Table 2 .

52The recorded BRISQUE↓ scores.

Table 3 .

53The recorded NIQE↓ scores.

Table 4 .

54The recorded runtimes↓ (in seconds).

참고문헌

참고문헌 정보가 없습니다.