2.2. Weights of the Fusion Process
The design of the weight measures needs to consider the desired appearance of the restored output.The image restoration is tightly correlated with the color appearance, and as a result the measurable values such as salient features, local and global contrast or exposedness are difficult to integrate by naive per pixel blending, without risking to introduce artifacts. Higher values of the weight determines that a pixel is advantaged to appear in the final image.
Laplacian contrast weight (W
L ) deals with global contrast by applying a Laplacian filter on each input luminance channel and computing the absolute value of the filter result. This straightforward indicator was used in different applications such as tone mapping and extending depth of field since it assigns high values to edges and texture. For the underwater restoration task, however, this weight is
not sufficient to recover the contrast, mainly because it can not distinguish between a ramp and flat regions. To handle this problem, an additional contrast measurement is used that independently assess the local distribution.
Local contrast weight (W
LC ) comprises the relation between each pixel and its neighborhoods average. The impact of this measure is to strengthen the local contrast appearance since it advantages the transitions mainly in the highlighted and shadowed parts of the second input. The (W
LC ) is computed as the standard deviation between pixel luminance level and the local average of its surrounding region:
WLC(x, y ) = ||Ik - Iωhck||
where I
k represents the luminance channel of the input and the I
ωhck represents the low-passed version of it. The filtered version I
ωhck is obtained by employing a small 5 X 5( (1/16)[1, 4, 6, 4, 1]) separable binomial kernel with the high frequency cut-off value ω
hc = π/2.75. For small kernels the binomial kernel is a good approximation of its Gaussian counterpart, and it can be computed more effectively.
Saliency weight (W
S ) aims to emphasize the discriminating objects that lose their prominence in the underwater scene. To measure this quality, the saliency algorithm of Achanta et al. was employed. This computationally efficient saliency algorithm is straightforward to be implemented being inspired by the biological concept of center-surround contrast. However, the saliency map tends to favor highlighted areas. To increase the accuracy of results, the exposedness map was introduced to protect the mid tones that might be altered in some specific cases.
Exposedness weight (W
E ) evaluates how well a pixel is exposed. This assessed quality provides an estimator to preserve a constant appearance of the local contrast, that ideally is neither exaggerated nor understated. Commonly, the pixels tend to have a higher exposed appearance when their normalized values are close to the average value of 0.5. This weight map is expressed as a Gaussian-modeled
distance to the average normalized range value (0.5):
WE(x, y) = exp((-(Ik(x, y) - 0.5)2)/(2σ2))
where I
k (x, y) represents the value of the pixel location (x, y) of the input image I
k , while the standard deviation is set to σ = 0.25. This map will assign higher values to those tones with a distance close to zero, while pixels that are characterized by larger distances, are associated with the over- and under- exposed regions. In consequence, this weight tempers the result of the saliency map and produces a well preserved appearance of the fused image.
To yield consistent results, we employ the normalized weight values ϒ (for an input k the normalized weight is computed as ϒ
k = W
k /Σ
k=1K W
k ), by constraining that the sum at each pixel location of the weight maps W equals one.