# A Stronger Adaptive Local Dimming Method with Details Preservation
## 3 Method
### Pixel Compensation Module  
In this work, we compensate luminance according to the optimal backlight described as \(\mathbf{BL_{op}}\) and the luminance of the input image. Before the compensation, we use Improved Blur Mask Approach (IBMA) [10] to smooth optimal backlight to removes the block artifacts. Specifically, [PERSON], [PERSON]; [PERSON], [PERSON] [10] divided the points of \(\mathbf{BL_{op}}\) into three categories. The first category includes the corner points, the second category includes the peripheral points except for the cornet points, and the third category includes the internal points of \(\mathbf{BL_{op}}\). Different Low Pass Filter (LPF) templates are used to smooth points of \(\mathbf{BL_{op}}\) in different categories. IBMA uses the smoothing process to simulate the light diffusion, and \(\mathbf{BL_{op}}\) is resized after each smoothing operation. By several smoothing operations, the smoothed backlight has the same size as the input image. The process is expressed in Equation (13). \[\mathbf{BL_{sm}}=IBMA\left(\mathbf{BL_{op}}\right) \tag{13}\]  
where \(\mathbf{BL_{sm}}\) represents the backlight after IBMA and \(\mathbf{BL_{op}}\) is the optimal backlight. The comparison results of using or not using IBMA are shown in Figure 6.  
Compared with Figure 6a, artifacts are removed obviously in Figure 6b by applying IBMA. We use a compensation coefficient \(k\) to control the compensation degree, which is determined by the smoothed backlight and the luminance of the input image. The process is formulated as Equations (14) and (15). \[\mathbf{k}\left(x,y\right)=(\mathbf{BL_{sm}}\left(x,y\right)\div\mathbf{I} \left(x,y\right))^{\gamma} \tag{14}\]  
\[\mathbf{I_{p}}\left(x,y\right)=\mathbf{k}\left(x,y\right)\times\mathbf{I} \left(x,y\right)+(1-\mathbf{k}\left(x,y\right))\times\mathbf{BL_{sm}}\left(x,y\right) \tag{15}\]  
where \(\gamma=0.125\) is selected from multiple experimental results to prevent overcompensation problem and enhance the overall luminance of the image effectively. \(\mathbf{I_{p}}\) is the compensated luminance. Next, IBHE is used to further enhance the compensated luminance. In BHE, an image is decomposed into two sub-images based on its mean, and then the sub-images are equalized  
Figure 5: Process of selecting the optimal backlight: (**a**) objective evaluation using Contrast Ratio (CR) and Dynamic Range (DR); and (**b**) subjective evaluation via voting based on display quality. \(A_{i}\) (i = 1, 2 \(\cdots\) 8) means adjusted backlight; \(S_{i}\) (j = 1, 2, 3) means backlights with top three objective indicators. Figure 6: (**a**) Backlight without Improved Blur Mask Approach; and (**b**) backlight with Improved Blur Mask Approach. independently to improve CR while maintaining the luminance of the image. Different from this, we rely on the Otsu method and the histogram of \(\mathbf{r}\) in Equation (6) to obtain two sub-images. Algorithm 1 is devised to acquire the breakpoint for the image segmentation. ```
1:\(r\), \(Ip\);
2:the breakpoint \(T\);
3:\([z_{1},z_{2}]\) = size \((r)\);
4:\(num\) = 0;
5:\(I_{m}\) = \(I_{P}\);
6:for\(i=1\) to \(z_{1}\)do
7:for\(j=1\) to \(z_{2}\)do
8:if\(r\)\((i,j)==0\)then
9:\(num\)+ = 1;
10:else
11:\(I_{m}\)\((i,j)=0\);
12:endif
13:endfor
14:endfor
15:\(T1=(sum\left(sum\left(I_{m}\right)\right))\div num\);
16:\(T2=Otsu\left((I_{m})\right)\); the breakpoint obtained by Otsu method
17:\(T=floor\left((T1+T2)\div 2\right)\); the average value of \(T_{1}\) and \(T_{2}\)
18:return\(T\);
```  
**Algorithm 1** Proposed algorithm for breakpoint acquisition. By the breakpoint \(T\), the CDF curves of the two sub-images are obtained to perform BHE [17]. The process is expressed as Equation (16). \[\mathbf{I_{out}}\left(k\right)=\left\{ \begin{array}{l}\left(T-I_{pmin}\right) \times CDF_{1}\left(k\right)+I_{pmin}\qquad 0<k<T\\ \left(I_{pmax}-T\right)\times CDF_{2}\left(k\right)+T\qquad T+1<k<255\end{array} \right. \tag{16}\]  
where \(I_{pmin}\) and \(I_{pmax}\) are the minimum and the maximum of compensated luminance \(\mathbf{I_{p}}\), respectively.