- Research
- Open access
- Published:

# Bit-depth scalable lossless coding for high dynamic range images

*EURASIP Journal on Advances in Signal Processing*
**volumeÂ 2015**, ArticleÂ number:Â 22 (2015)

## Abstract

In this paper, we propose a bit-depth scalable lossless coding method for high dynamic range (HDR) images based on a reversible logarithmic mapping. HDR images are generally expressed as floating-point data, such as in the OpenEXR or RGBE formats. Our bit-depth scalable coding approach outputs base layer data and enhancement layer data. It can reconstruct the low dynamic range (LDR) image from the base layer data and reconstructs the HDR image by adding the enhancement layer data. Most previous two-layer methods have focused on the lossy coding of HDR images. Unfortunately, the extension of previous lossy methods to lossless coding does not significantly compress the enhancement layer data. This is because the bit depth becomes very large, especially for HDR images in floating-point data format. To tackle this problem, we apply a reversible logarithmic mapping to the input HDR data. Moreover, we introduce a format conversion to avoid any degradation in the quality of the reconstructed LDR image. The proposed method is effective for both OpenEXR and RGBE formats. Through a series of experiments, we confirm that the proposed method decreases the volume of compressed data while maintaining the visual quality of the reconstructed LDR images.

## 1 Introduction

Image data compression technologies, such as the JPEG 2000 international standard [1,2], allow high quality images to be transmitted via worldwide digital communication networks. Digital cinema and 4K images are remarkable examples of such technology [3,4]. These images require a huge number of pixels to express fine textures at high spatial resolutions.

Recently, high dynamic range (HDR) images have attracted considerable attention [5]. These images have a high resolution of pixel values, i.e., numerous pixel tones. Compared with the current standard for low dynamic range (LDR) images, which are expressed in 8 bits, HDR images have an extremely long bit depth and high dynamic range of pixel values. To fully utilize this dynamic range under limited memory space, the pixel values are expressed as floating-point data, such as in OpenEXR or RGBE format [6,7]. This paper focuses on the compression of HDR images in these data formats. Moreover, the proposed method, referred to as bit-depth scalable coding, is backward compatible with a standard coding method for LDR images.

Bit-depth scalable coding outputs compressed data in two layers, a base layer and an enhancement layer. From the bit stream in the base layer, the LDR image is decoded with a standard lossy decoder. By adding the bit stream in the enhancement layer, the original HDR image can be decoded without any loss. This scalable coding system has the advantage that it can directly accommodate both HDR and LDR users. Therefore, the system has attracted many researchers, and a number of variations have been reported [8-15].

Ward et al. [8] proposed a backward compatible bit-depth scalable coding method in which the original HDR color image is tone mapped in the base layer to produce an LDR image that is compressed by the JPEG international standard encoder. The enhancement layer then embeds the luminance ratio of the LDR and HDR images. The original HDR color image is decoded by multiplying the luminance ratio in the enhancement layer and the LDR color image in the base layer. This method has been extended to video signals and has attracted attention as a bit-depth scalable video coding method in international standardization activities [9-11,16]. For still images, Khan introduced a piecewise linear model of a tone mapping [12]. Jinno et al. improved the coding efficiency in the enhancement layer by replacing the ratio with a low-pass-filtered HDR image [15]. However, these reports focused on â€˜lossyâ€™ coding for HDR images.

Unlike these previous reports, we discuss the â€˜losslessâ€™ coding of HDR images under a scalable coding scheme that is compatible with lossy LDR image coding. The lossless coding of HDR images is especially important for storing and archiving original visual data such as medical, artistic, and astrograph images. Such data can be used for diagnosis based on medical images, analysis of astrograph images, art preservation, and bio-medical detections [17,18].

First, we discuss a baseline method [19] that was simply extended to lossless scalable coding from a non-scalable HDR image coding method [20]. Although the baseline method is straightforward and easy to implement, the coding efficiency in the enhancement layer is not satisfactory. To cope with this problem, we introduced a reversible logarithmic mapping and reduced the dynamic range of the HDR images [19,21]. This approach was shown to be effective for compressing data in the enhancement layer. However, the method was limited to the OpenEXR format [6]. Another representative format, referred to as RGBE [7], has been ignored.

In this paper, we improve on our previous conference papers [19,21] and add some theoretical analysis. First, we show that a simple extension of the reversible logarithmic mapping (Rev) to the RGBE format degrades the visual quality of the decoded LDR images. To avoid this problem, we introduce a format conversion (Cnv) to the system. We demonstrate that simply extending Rev magnifies the quantization error added by the lossy coding in the base layer. Second, we analyze the theoretical basis for why our method improves the coding efficiency of the system. We estimate how the bit depth of the residual image to be encoded in the enhancement layer is reduced by Rev. We also explain why the simply extended Rev degrades the LDR images, and why Cnv improves their quality in the RGBE format.

This paper is organized as follows. In Section 2, we describe two floating-point data formats and a non-scalable HDR image coding method. A baseline scalable coding method that simply extends the non-scalable coding approach is then summarized in Section 3, and the concept and implementation of the proposed method are introduced in Section 4. The theoretical analysis is described in Section 5, and our experimental results are summarized in Section 6. Finally, we present our conclusions in Section 7.

## 2 Data format and non-scalable coding

We first describe two floating-point data formats for HDR images. A non-scalable lossy coding method, which is extended to scalable lossless coding of HDR images in the next section, is also summarized.

### 2.1 2.1 Type A format of HDR images

To date, there are two well-known representative data formats for HDR images. One is the OpenEXR floating-point data format [6] and the other is the RGBE data format [7].

In the OpenEXR data format, a pixel value *x*
_{
H,c
} of an HDR image is described by an exponent value *x*
_{
E,c
}, mantissa value *x*
_{
M,c
}, and sign value *x*
_{
S,c
} as

and

for a color component *c*âˆˆ{*R*,*G*,*B*}. The exponent, mantissa, and sign values are given as integers in the ranges

The mantissa, exponent, and sign have depths of 10 bits, 5 bits, and 1 bit, respectively. Therefore, a pixel value of an HDR image is expressed in 10+5+1=16 bits for each color component. Note that in certain special cases, *x*
_{
E,c
}=31 [6].

In the remainder of this paper, we denote the exponent, mantissa, and sign of each color component as a vector

and define the HDR image data **x**
_{
D
} as

Using these vectors, we denote Equations 1 and 2 as

where the pixel value of the HDR image **x**
_{
H
} is

Hereafter, we refer to OpenEXR as the â€˜type Aâ€™ format.

### 2.2 2.2 Type B format of HDR images

In the RGBE data format, a pixel value of an HDR image *x*
_{
H,c
} is given as

for a color component *c*âˆˆ{*R*,*G*,*B*}. Both the mantissa and exponent have depths of 8 bits, i.e.,

The exponent *x*
_{
E,0} is commonly used among three color components. In this format, a pixel value is expressed with a total of 32 bits [7]. Using the vectors, we denote Equation 8 as

Hereafter, we refer to RGBE as the â€˜type Bâ€™ format. Note that, for a type B image, **x**
_{
H
} in Equation 10 is non-negative. In contrast, **x**
_{
H
} in Equation 6 for a type A image can be negative, zero, or positive.

### 2.3 2.3 Non-scalable lossy coding

Figure 1 illustrates the â€˜HDR image coding in JPEG 2000â€™ reported in [20]. At the encoder, the HDR image data **x**
_{
D
} is converted into the pixel value **x**
_{
H
} by Flt, where Flt denotes Flt_{
A
} in Equation 6 for type A images and Flt_{
B
} in Equation 10 for type B images. The logarithmic function log*e* is applied to each color component of **x**
_{
H
}. Note that pixel values that are less than or equal to zero are first clipped to the minimum positive pixel value in the image. In terms of the signal-to-noise ratio (SNR) of the variances, the effect on the LDR images is almost zero. At worst, of the nine test images considered in this paper, the SNR is less than 10^{âˆ’2} [%] for a type A â€˜still lifeâ€™ image. The effect on HDR images is also limited, with an SNR of less than 10^{âˆ’10} [%] for the same input image.

The pixel values are normalized to the range [ 0,255] by

for *X*={*x*|*x*âˆˆ*i*
*m*
*a*
*g*
*e*}, where min*X* and max*X* are the minimum and maximum pixel values in the set *X*, respectively. Because the input values to the encoder must be integers, the results are rounded to be integers. Namely,

is fed into the encoder, where Rnd and Clp are the rounding and clipping operations, respectively. In the decoder, the HDR pixel values **y**
_{
H
} are recovered from the decoded image **y**
_{
B
} with the inverse of each Nrm and log*e*.

In this paper, we extend this method to the scalable lossless coding of HDR images. The tone mapping operator Tmo described in Section 2.4 is added to this procedure as â€˜part Aâ€™ to display color LDR images with better quality.

### 2.4 2.4 Tone mapping operation

We now summarize the tone mapping operator for color images based on the Hill function [5]. A pixel value of the HDR image *y*
_{
H,c
} is tone mapped to *y*
_{
L,c
} of the LDR image as

for *c*âˆˆ{*R*,*G*,*B*}, where

and the Hill function is defined as

In (14), \({\bar Y}_{H,Y}\) is defined as

where Ens(Â·) denotes the ensemble average over all positive values of *y*
_{
H,Y
} in the image. *a* and *b* are user-set parameters. In our experiments, we use (*a*,*b*)=(1,1). We denote the tone mapping in Equation 13 as

where

for color components. Because the output values of Tmp exceed 8-bit integers for color images, we clip the output values to the range [ 0,255] with Clpâ€™.

## 3 Baseline method

The baseline scalable lossless coding method is simply an extension of the non-scalable lossy coding method. We now summarize this baseline method, as well as the problem considered in this paper.

### 3.1 3.1 Scalable lossless coding

Figure 2 illustrates the baseline method, which we use as a reference in this paper. This is a simple extension of the non-scalable lossy coding in Figure 1 to the scalable lossless coding of HDR images. â€˜Part Bâ€™ denotes the processes that have been added.

To achieve the lossless coding of HDR images, **x**
_{
H
} is converted into the integer value **x**
_{
I
} by the reversible integer mapping Int detailed in Section 3.2. Note that the inverse mapping Int^{âˆ’1} reconstructs the original value without any loss. The procedure for generating the LDR images is almost the same as the method in Figure 1. The bit stream needed to reconstruct the LDR image is embedded in the base layer. In the enhancement layer, the integer value **y**
_{
I
} is reconstructed from the decoded LDR image **y**
_{
B
} with the inverse normalization Nrm^{âˆ’1}, the exponential function exp, and the rounding operation

Finally, the residual

is encoded with a lossless coding method to generate the bit stream in the enhancement layer.

### 3.2 3.2 Reversible integer mapping

The reversible integer mapping Int from the real value **x**
_{
H
} to the integer value **x**
_{
I
} was introduced in [19]. It is defined as

where *c*âˆˆ{*R*,*G*,*B*} and *X*
_{
E
}={*x*
_{
E,c
}|*x*
_{
E,c
}âˆˆimage} for type A images. This is a simple scaling applied to the rational number *x*
_{
H,c
} in Equation 1 so that it becomes an integer. In other words, we shift the decimal point to the right. Note that the minimum min *X*
_{
E
} of all the pixel values **x**
_{
E
} in the image is stored and embedded into the bit stream. We denote the mapping in Equation 21 as

for

Similarly, a mapping for type B images can be defined as

where *c*âˆˆ{*R*,*G*,*B*} and \(X_{E}^{+}=\left \{ x_{E,c} | x_{E,c}>0 \right \}\). Note that the minimum min\(X_{E}^{+}\) of all the positive pixel values **x**
_{
E
}>0 in the image is stored and embedded into the bit stream. We denote this mapping as

for type B images.

Note that the inverse of this mapping recovers the original value without any loss. Therefore, the baseline method becomes lossless for the original HDR image.

### 3.3 3.3 Problem setting

In this paper, we tackle the following limitation of the baseline method. As a result of the reversible integer mapping, the residual **e**
_{
I
} in Equation 20 requires a very large bit depth. It is somewhat difficult to compress this data volume in the high bit rate coding of the LDR image. This is because **e**
_{
I
} is a magnified version of the coding noise **e**
_{
B
}=**y**
_{
B
}âˆ’**x**
_{
B
}. In lossy coding, the noise **e**
_{
B
} is added in the base layer and is magnified by Nrm^{âˆ’1} and exp as indicated in Equation 19. Because this noise tends to have a weak correlation, the difference **e**
_{
I
} also has a weak correlation. Therefore, the data volume of the enhancement layer becomes huge. Note that the correlation of **e**
_{
I
} increases in the low bit rate coding of the LDR image. This is investigated in Section 6.

To cope with this problem, we previously introduced the reversible logarithmic mapping (Rev) to reduce the bit depth of the residual image [19]. However, in this previous report, we only presented experimental results without any theoretical endorsement. In this paper, we theoretically compare Int and Rev in respect of the bit depth of the residual image in the enhancement layer.

In addition, Rev has been limited to the type A format, ignoring type B. In this paper, we show that a simple extension of Rev to the type B format degrades the LDR images. To avoid this problem, we introduce a format conversion (Cnv) from type B to type A in the base layer. We present a theoretical justification for why the simply extended Rev degrades the LDR images and Cnv improves its quality for type B images.

## 4 Proposed method

The reversible logarithmic mapping (Rev) is introduced to reduce the data volume of the enhancement layer. In particular, for type B format images, the format conversion (Cnv) is introduced to maintain the visual quality of the LDR images.

### 4.1 4.1 Type I method for type A format images

Figure 3 illustrates the proposed type I method. Instead of Flt and I*n*
*t* in the baseline method (Figure 2), the reversible logarithmic mapping Rev defined in Section 4.2 is applied to the HDR data **x**
_{
D
} to produce **x**
_{
R
}. This is converted to an 8-bit depth integer **x**
_{
B
} as

and fed into the lossy encoder, which outputs the bit stream in the base layer. The reconstructed pixel **y**
_{
B
} given by the decoder is inversely normalized and rounded to an integer as

Then, the difference

is encoded with the lossless encoder to generate the bit stream in the enhancement layer. In the decoder, **y**
_{
R
} is added to **e**
_{
R
} to recover **x**
_{
R
}. Applying the inverse of Rev, the original HDR data **x**
_{
D
} are retrieved without any loss. Namely, they are recovered as

The LDR image **y**
_{
L
} is reconstructed from the decoded image **y**
_{
B
} in a similar way to the baseline method with a compensation factor (Cmp). This recovers the HDR pixel value **y**
_{
H
}, and then applies the tone mapping operation Tmo as

It is also possible to display **y**
_{
B
} as an LDR image without using Cmp. In this case, **y**
_{
B
} in the proposed method is almost the same as that of the baseline method as illustrated in Figure 4. There are two approaches that use the Hill function in Equation 15 to generate the LDR image **y**
_{
L
} exampled in Figure 5. The first introduces Cmp in the encoding process, and the second introduces Cmp in the decoding process. The former case is convenient for data receivers, because it is not necessary to add Cmp to a standard decoder. However, this increases the data volume of the enhancement layer. In this paper, we employ the latter approach.

### 4.2 4.2 Reversible logarithmic mapping

In the proposed type I method illustrated in Figure 3, the reversible logarithmic mapping is applied to generate the integer value **x**
_{
R
}. This technique was originally introduced in [22]. The mapping for type A images is defined as

for *c*âˆˆ{*R*,*G*,*B*}. We denote this mapping as

for

This mapping approximates the logarithm of an HDR image **x**
_{
H
}. Substituting **x**
_{
E,c
} from Equation 1, i.e.,

for positive values in Equation 31, we have

where

for *Î´*
_{
A
}=2^{âˆ’10}
*x*
_{
M,c
}. As indicated in Equation 35, Rev_{
A
} generates a good approximation of the logarithm of the HDR image [23,24]. The approximation error is relatively small, as *Îµ*
_{
A
} fluctuates around 0.06 depending on the mantissa. Therefore, Nrm(**x**
_{
R
}) becomes close to **x**
_{
B
} in Equation 12. This is encoded with a standard lossy encoder to generate the bit stream in the base layer.

The reversible logarithmic mapping is suitable for lossless scalable coding because it one-to-one maps an integer to an integer. Therefore, its inverse mapping reconstructs the original integer values without any loss, i.e., Rev is â€˜reversibleâ€™. This property also reduces the dynamic range of the mapped integer values. We have experimentally confirmed [21] that the residual in the enhancement layer **e**
_{
R
} has a lower bit depth than that of **e**
_{
I
} in the baseline method. We provide the theoretical basis for this observation in Section 5.1.

### 4.3 4.3 Type I method for type B format images

For type A images, Rev_{
A
} in Equation 32 is applied in Figure 3. For type B images, a direct extension of Rev_{
A
} can be defined as

for *c*âˆˆ{*R*,*G*,*B*} and

We denote this mapping as

and apply this to type B images in the type I method.

Note that the depth of **x**
_{
R
} from Rev_{
B
} is a maximum of 16 bits for each color component. Therefore, it costs 48 bits for all the color components, which exceeds the original 32-bit data. However, using the reversible color transform (RCT) in JPEG 2000 lossless coding reduces the cost by 16 bits. The RCT is defined as

Because the second and third row of this RCT take the difference between the color components, the exponent term \(x_{E,0}^{*}\) in Equation 37 disappears. As a result, the bit depth becomes 48âˆ’16=32 bits in total. Furthermore, the exponent term is less than 5 bits in the type B images tested in our experiment. Therefore, in practice, the system can compress the data volume.

In this paper, we show that the quality of LDR images is degraded in this directly extended Rev_{
B
} for type B images. Figure 6 shows some LDR images produced by the proposed type I and type II methods. The former has lower quality than the latter, with a peak SNR (PSNR) of 20.79 dB compared with 29.08 dB at the same bit rate of 5.23 bppc in the base layer. The reason for this is analyzed in Section 5.2. To solve this problem, we introduce the following format conversion.

### 4.4 4.4 Type II method for type B format images

Figure 7 illustrates the modified method for type B images. We refer to this as the type II method. The type II approach includes the format conversion (Cnv). First, Rev_{
B
} converts the HDR data **x**
_{
D
} into type B **x**
_{
R
}. In the figure, this is denoted as \(\textbf {x}_{R}^{(B)}\) to clearly indicate the type. The conversion introduced in this paper is defined as

as illustrated in Figure 8. In the proposed type II method,

is encoded with the lossy encoder.

As a result of this conversion, the type B image is temporarily converted into a type A image in the base layer. Therefore, the problem caused by Rev_{
B
} can be avoided, and the quality of the LDR image is improved compared to that given by applying the type I method to type B images. This assertion is theoretically endorsed in Section 5.2. This conversion is reversible as far as a large enough bit depth is assigned to values inside the process. However, reversion is not always necessary, as the system becomes lossless for HDR images in as much as the **y**
_{
R
} are exactly the same in the encoder and the decoder, even though Cnv is not perfectly reversible.

## 5 Theoretical analysis

We now present a theoretical analysis of why the proposed method reduces the bit depth of the enhancement layer. The rationale for introducing the format conversion is also explained.

### 5.1 5.1 Bit depth of the enhancement layer

We estimate the bit depth of the residual **e**
_{
I
} in the baseline method and **e**
_{
R
} in the proposed method and theoretically demonstrate that the bit depth of the proposed method is smaller than that of the baseline method.

The bit depth of pixel values in an image **x** is defined as

where max*X* and min*X* denote the maximum and minimum pixel values in the image. We must calculate the maximum of **e**
_{
I
} in the baseline method to estimate its bit depth. In Figure 2, the relations

are modeled as

for positive values of **x**
_{
I
}, where *e*
_{1},*e*
_{2}âˆˆ[ âˆ’0.5,0.5] are rounding errors due to Rnd in Equation 44. Therefore, the maximum of

is estimated as

for

as detailed in Appendix A. Substituting

and Equation 47 into Equation 43, the bit depth of **e**
_{
I
} is estimated as

giving the bit depth of the residual of the baseline method. Similarly, using the model

in the proposed method, the maximum of

is given as

as shown in Appendix . Substituting

and Equation 53 into Equation 43, the bit depth of **e**
_{
R
} can be estimated as

giving the bit depth of the residual of the proposed method.

We can now compare **e**
_{
I
} and **e**
_{
R
} in terms of bit depth. The error in the base layer **e**
_{
B
} is composed of errors due to the rounding before applying the lossy encoder, as well as quantization errors added by the lossy coding. Therefore, the maximum and minimum of

are

where *Q* is determined by the quantization step size of the lossy coding in the base layer. Taking the difference between Equation 50 and Equation 55, we have

and therefore

is the difference in bit depth. From Equations 1, 21, and 31, the maxima of **x**
_{
I
} and **x**
_{
R
} are expressed as

for

where *Î³*âˆˆ[ 0,1) is determined according to the mantissa âˆˆ[0,2^{10}). Substituting Equation 60 into Equation 59, we have the difference as

which is always a positive value. This indicates that the bit depth of the proposed method is smaller than that of the baseline method. Thus, we have theoretically shown that the proposed method achieves bit-depth reduction in the enhancement layer.

### 5.2 5.2 Difference between type I and type II for type B format

Next, we show that the format conversion introduced in Section 4.4 alleviates the degradation of LDR images in the base layer. The output LDR image **y**
_{
L
} is tone mapped from the decoded HDR image **y**
_{
H
}, which is generated from **y**
_{
R
} in the proposed method. Therefore, we analyze the relation between **y**
_{
H
} and **y**
_{
R
} for the type I and type II methods.

As illustrated in Figure 3, the proposed type I method produces **y**
_{
H
} as

for type B images. For example, the exponent of the type B image data becomes

from the inverse of Equation 37. Substituting this equation into Equation 8, we have

where

This is the relation between **x**
_{
H
} and **x**
_{
R
} and includes a function *f*
_{
Ia
} that is proportional to the exponent of **x**
_{
R
}. However, note that this is chopped by the function *f*
_{
Ib
}. This is confirmed by Figure 9, which indicates the relation between **x**
_{
B
} and **x**
_{
H
} for the type B â€˜treeâ€™ image. Note that **x**
_{
B
} is a scaled version of **x**
_{
R
}. The points â€˜oâ€™ indicate where the mapping given by the type I method becomes discontinuous.

In contrast, the proposed type II method in Figure 7 produces **y**
_{
H
} as

neglecting the effect of Rnd. This means that the image is converted to type A in the base layer. Therefore, taking the inverse of Equation 35, we have

where

Similar to the type I method, the function *f*
_{
IIa
} is proportional to the exponent of **x**
_{
R
}. Note that the function *f*
_{
IIb
} is close to one. Therefore, unlike the type I method, the type II method gives an HDR image **x**
_{
H
} that is approximately proportional to the exponent of **x**
_{
R
}. This is confirmed by the points marked â€˜xâ€™ in Figure 9.

Next, we investigate how the mappings in Equations 65 and 67 magnify the quantization error **e**
_{
B
}. Denoting the mapping as **x**
_{
H
}=*f*(**x**
_{
B
}), the error is magnified as

Figure 10 illustrates the absolute value of

for the type I method (marked â€˜oâ€™) and the type II method (marked â€˜xâ€™). In the figure, a larger value signifies greater amplification of the error. We can see that the type I method has larger values, especially at the jump points of Figure 10 which come from the discontinuous points of Figure 9. This implies that the degradation in LDR image quality produced by the type I method is alleviated by the type II method, which uses the format conversion in Section 4.4.

## 6 Experiments

We now describe a series of experiments that tested nine HDR images, including five type A images and four type B images. For the lossy coding in the base layer and the lossless coding in the enhancement layer, we used the JPEG 2000 international standard [1] in lossy mode and lossless mode, respectively.

### 6.1 6.1 Base layer

We compared the coding performance in the base layer of the baseline method and the proposed method. In this section, the proposed method denotes the type I procedure in Figure 3 for type A images and the type II procedure in Figure 7 for type B images. Figure 11 compares the baseline and proposed methods for the type A â€˜cannonâ€™ image. The horizontal axis records the data volume of the base layer in bits per pixel per color component (bppc). The vertical axis indicates the LDR image quality in terms of PSNR, which is defined by

for

where Ens(Â·) denotes the ensemble average over all pixels in the image. The results indicate that the proposed method is slightly worse (by 0.46 dB at 3.1 bpp) than the baseline approach. Figure 12 indicates the rate distortion curves for the type B â€˜Belgiumâ€™ image. The results are very similar to those for â€˜cannonâ€™. The â€˜treeâ€™ image was investigated in different formats. Figures 13 and 14 indicate the curves for this image in type A and type B formats, respectively. Figure 15 summarizes the PSNR at 1.5 bppc in the base layer. This indicates that the proposed method is slightly better than the baseline technique. It can be concluded that the proposed method is comparable to or slightly better than the baseline method. This is considered to be because of the similarity of **x**
_{
B
} in the baseline method and the proposed method. Both quantities represent the logarithm of the original HDR image **x**
_{
H
}.

### 6.2 6.2 Enhancement layer

Figure 16 compares the output from the proposed and baseline methods for the type A â€˜cannonâ€™ image. The horizontal axis indicates the PSNR of the reconstructed LDR images, and the vertical axis indicates the bit rate of the bit stream in the enhancement layer. Note that, because the decoded HDR images are lossless, the PSNR is infinite. This figure indicates that the proposed method reduces the bit rate by more than 3.4 bppc for this image. As indicated in the figure, the bit rate in the enhancement layer decreases as the PSNR increases. However, the bit rate in the base layer increases with PSNR, which means that there is a trade-off in the bit rate in these layers.

Figure 17 shows the results for the type B â€˜Belgiumâ€™ image. We can observe that the bit rate decreases by 8.03 bppc at 35 dB LDR image quality. Unlike the case in Figure 16, the bit rate increases with the PSNR. This is because the correlation among neighboring pixels in **e**
_{
I
} increases in low PSNR (low bit rate) coding of the LDR image as indicated in Figure 18. For this input image, the correlation is observed to be 0.14 at a PSNR of 36.9 dB. The correlation monotonically increases as PSNR decreases, reaching 0.80 at 18.8 dB. Because **e**
_{
I
} is encoded with a transform that uses this correlation, a higher correlation serves to lower the bit rate. This is why the curve of the baseline method in the figure increases monotonically. The bit depth of the enhancement layer decreases monotonically from 26.7 bits at a PSNR of 18.8 dB to 24.1 bits at 36.9 dB as indicated in Figure 19. Furthermore, the logarithm of the variance of **e**
_{
I
} is also monotonically decreasing as indicated in Figure 20.

The â€˜treeâ€™ image was again investigated in different formats. Figures 21 and 22 show the bit rate for the type A and type B image formats, respectively. We can see that better PSNR in the LDR images brings about a lower bit rate in the enhancement layer. This suggests that a higher data volume in the base layer will lead to a lower volume in the enhancement layer. Figure 23 summarizes the bit rate at 35 dB LDR image quality. This figure indicates that the proposed method reduces the data volume of type A images by a minimum of 3.82 bppc (for the â€˜cannonâ€™ image) and by a maximum of 8.82 bppc (for â€˜still lifeâ€™). For type B images, the data volume is reduced by a minimum of 7.8 bppc for â€˜deskâ€™. It was confirmed that the proposed method significantly reduces the data volume of the enhancement layer for both type A and type B format images.

## 7 Conclusions

In this paper, we have presented a bit-depth scalable lossless coding for HDR images in floating-point data formats. Unlike most conventional scalable coding methods, the proposed method reconstructs the original HDR image without any loss. Introducing a reversible logarithmic mapping and format conversion technique, it was confirmed that the proposed method reduces the bit depth as well as the bit rate in the enhancement layer. It was also confirmed that the proposed method maintains the LDR image quality and coding performance of the baseline method in the base layer for both the OpenEXR and RGBE formats.

As our investigation has been limited to a difference-based approach, it is necessary to include ratio-based approaches, such as [8].

## 8 Appendix A

Substituting

into

we have

where

When *x* takes its maximum value, *Îµ*â‰ª*x* holds. For example, the value of *Îµ*/*x* for all images tested in this paper is less than 10^{âˆ’4}. In this case,

holds. Therefore, we have

namely,

According to our experiments, max *E*
_{
I
} is 7.23Ã—10^{3} in â€˜cannonâ€™ at minimum. Therefore *e*
_{2} is negligible compared to max *E*
_{
I
} since the maximum of *e*
_{2} is 0.5. Similarly, max *E*
_{
B
} takes value between 3 and approximately 2^{7} depending on the bit rate of the base layer. Therefore, *e*
_{1} is negligible in low bit rate compared to max *E*
_{
B
} and we have

Note that precision of this estimation slightly decreases in high bit rate coding in which max *E*
_{
B
} takes small value such as 3.

## 9 Appendix B

Substituting

into

we have

According to our experiments, max *E*
_{
R
} is 94 in â€˜cannonâ€™ at minimum. Therefore *e*2â€²âˆˆ[ âˆ’0.5,0.5] is negligible compared to max *E*
_{
R
}. Similarly to Appendix A, *e*
_{1} is negligible compared to max *E*
_{
B
}. As a result, we have

## References

ISO/IEC 15444-1,

*Information Technology - JPEG, 2000 Image Coding System, Core coding system, ITU-T Recommendation, T800*, (Geneva, 2002).A Skodras, C Christopoulos, T Ebrahimi, The JPEG, 2000, still image compression standard. IEEE Signal Process. Mag. 18, 36â€“58 (2001).

A Descampe, F-O Devaux, G Rouvroy, J Legat, J-J Quisquater, B Macq, A flexible hardware JPEG, 2000 decoder for digital cinema. IEEE Trans. Circuits Syst. Video Technol. 16(11), 1397â€“1410 (2006).

K Kaneko, N Ohta, in

*Proc. Int. Conf. Virtual Syst. Multimedia*. 4K applications beyond digital cinema (Seoul, 2010), pp. 133â€“136.E Reinhard, G Ward, S Pattanaik, P Debevec,

*High Dynamic Range Imaging: Acquisition, Display, and Image-Based Lighting*(Morgan Kaufmann, San Francisco, CA, USA, 2010).R Bogart, F Kainz, D Hess,

*OpenEXR image file format. ACM SIGGRAPH, Sketches & Applications*, (San Diego, 2003).G Ward, Real Pixels Graphics Gems II (1991).

G Ward, M Simmons, in

*Proc. ACM SIGGRAPH 2006 Courses*. JPEG-HDR: a backwards-compatible, high dynamic range extension to JPEG (Boston, 2006).R Mantiuk, A Efremov, K Myszkowski, H-P Seidel, Backward compatible high dynamic range MPEG video compression. ACM Trans. Graph. 25(3), 2006.

M Winken, D Marpe, H Schwarz, T Wiegand, in

*Proc. IEEE Int. Conf. Image Process*, 1. Bit-depth scalable video coding (San Antonio, 2007), pp. 5â€“8.S Park, KR Rao, Bit-depth scalable video coding based on H.264/AVC. IEICE Trans. Fundamentals. E91-A(6), 1541â€“1544 (2008).

IR Khan, in

*Proc. IEEE Int. Conf. Acoustics Speech Signal Process*. Two layer scheme for encoding of high dynamic range images (Las Vegas, 2008), pp. 1169â€“1172.H Kikuchi, W Otake, M Iwahashi, in

*Proc. Int. Symp. Intell. Signal Process. Commun. Syst.*Bit rate reduction of enhancement layer in bit-depth scalable coding (Kanazawa, 2009), pp. 264â€“267.A Boschetti, N Adami, R Leonardi, M Okuda, in

*Proc. IEEE Int. Conf. Image Process*. Flexible and effective high dynamic range image coding (Hong Kong, 2010), pp. 3145â€“3148.T Jinno, M Okuda, N Adami, in

*Proc. IEEE Int. Conf. Acoustics Speech Signal Process*. New local tone mapping and two-layer coding for HDR images (Kyoto, 2012), pp. 765â€“768.J-C Chiang, W-T Kuo, P-H Kao, Bit-depth scalable video coding with new inter-layer prediction. EURASIP J. Adv. Signal Process. 2011(1), 1â€“9 (2011).

Y Zhang, DR Bull, E Reinhard, in

*Proc. Int. Conf. Image Process*. Perceptually lossless high dynamic range image compression with JPEG, 2000 (Kyoto, 2012), pp. 1057â€“1060.YS Shih, WC Zhang, H Sheng, YH Yang, ST Sun, CC Wu, YC Lee, SS Lee, SC Huang, in

*Proc. Int. Comp. Symp*. Bio-inspired JPEG XR CODEC design for lossless HDR biomedical image, (2010), pp. 148â€“153.M Iwahashi, H Kiya, in

*Proc. Asia-Pacific Signal Inf. Process. Association Annual Summit Conf*. Efficient lossless bit depth scalable coding for HDR images (Hollywood, 2012), pp. 1â€“4.R Xu, SN Pattanaik, CE Hughes, High-dynamic-range still-image encoding in JPEG 2000. IEEE Comput. Graphics Appl. 25(6), 57â€“64 (2005).

CY Ping, M Iwahashi, H Kiya, in

*Proc. Int. Workshop Adv. Image Technol*. Lossless bit depth scalable coding for floating point images (Nagoya, 2013), pp. 169â€“174.JF Blinn, Floating-point tricks. IEEE Comput. Graph. Appl. 17(4), 80â€“84 (1997).

M Iwahashi, H Kiya, in

*Proc. Int. Conf. Acoust. Speech Signal Process*. Two layer lossless coding of HDR images (Vancouver, 2014), pp. 1340â€“1344.ML Pendu, C Guillemot, D Thoreau, in

*Proc. Int. Conf. Acoust. Speech Signal Process*. Adaptive re-quantization for high dynamic range video compression (Vancouver, 2014), pp. 7367â€“7371.

## Acknowledgements

This work was supported by JSPS KAKENHI Grant Number 26289117.

## Author information

### Authors and Affiliations

### Corresponding author

## Additional information

### Competing interests

The authors declare that they have no competing interests.

## Rights and permissions

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0), which permits use, duplication, adaptation, distribution, and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## About this article

### Cite this article

Iwahashi, M., Yoshida, T., Mokhtar, N.B. *et al.* Bit-depth scalable lossless coding for high dynamic range images.
*EURASIP J. Adv. Signal Process. * **2015**, 22 (2015). https://doi.org/10.1186/s13634-015-0209-y

Received:

Accepted:

Published:

DOI: https://doi.org/10.1186/s13634-015-0209-y