depth map compression via compressed sensing.pdf

4
DEPTH MAP COMPRESSION VIA COMPRESSED SENSING Michel Sarkis and Klaus Diepold Institute for Data Processing, Technische Universit¨ at M ¨ unchen Arcisstr. 21, 80290 Munich, Germany [email protected], [email protected] ABSTRACT We propose in this paper a new scheme based on compressed sensing to compress a depth map. We first subsample the entity in the fre- quency domain to take advantage of its compressibility. We then derive a reconstruction scheme to recover the original map from the subsamples using a non-linear conjugate gradient minimization scheme. We preserve the discontinuities of the depth map at the edges and ensure its smoothness elsewhere by incorporating the To- tal Variation constraint in the minimization. The results we obtained on various test depth maps show that the proposed method leads to lower error rate at high compression ratio when compared to stan- dard image compression techniques like JPEG and JPEG 2000. Index TermsConjugate gradient methods, image coding, im- age representation, stereo vision 1. INTRODUCTION Depth from stereo is one of the most developed research areas in computer vision. Its aim is to determine an accurate representation of a scene in 3D by computing a disparity (depth) map of the cor- responding stereo image. In order to estimate this entity, matching costs among the pixels of the two images is first computed. An en- ergy function is then optimized at which the minimum is the sought depth map. An excellent survey about this topic is found in [1] while up-to-date stereo algorithms can be found at [2]. Once a disparity map is available, it can be used for several pur- poses, e.g. 3D scene reconstruction, image based rendering (IBR) and 3DTV. The important issue is to have an accurate estimate of the depth map of the scene in order to minimize the errors in the appli- cation where it is employed. This is why developing accurate stereo algorithms remain till the moment a hot topic of research, see [2]. Irrespective of the algorithm used to compute it, a disparity map has to be efficiently compressed to either save the hardware storage requirement or before transmitting it over a network as in telepres- ence applications or in 3DTV. The compression scheme should be designed in a way to simultaneously save the required resources and preserve the quality of the original uncompressed map. A typical way to compress these entities is to use standard image or video compression techniques like JPEG 2000 or MPEG-4. Such schemes process the images in such a way to maintain the visual quality of the result; therefore, they lead to a high amount of error in the recon- structed values of the depth map, see [3–5] for more details. Motivated by this limitation, we propose in this work an al- gorithm for depth map compression based on compressed sens- ing (CS) [6,7]. We first subsample the disparity map in the frequency This research is sponsored by the German Research Foundation (DFG) as a part of the SFB 453 project, High-Fidelity Telepresence and Teleaction. domain to obtain incoherent measurements. We then formulate a L1-norm conjugate gradient minimization scheme to reconstruct the depth map for the measurements. To ensure the smoothness of the recovered disparity map and preserve the discontinuities at the edges, we incorporate the Total Variation (TV) constraint in the op- timization. The results we obtain on several disparity images show that the CS-based scheme leads to an improvement in the quality when compared to other techniques, even at high compression ratio. The rest of this paper is organized as follows. We give a brief survey on depth map compression techniques in Section 2. We de- rive in Section 3 the proposed CS based technique for disparity map compression. We test the proposed scheme and compare it to other compression methods in Section 4. Finally, we draw some conclu- sions and elaborate on some future work in Section 5. 2. RELATED WORK Depth map compression is an important problem in computer vision. The standard way of tackling it is by applying standard image and video compression techniques like JPEG, JPEG 2000 and MPEG-4. These techniques suffer, however, from several disadvantages if a high compression ratio is desired. JPEG and MPEG-4 lead to block- ing artifacts while JPEG 2000 has the effect of blurring the edges or the depth discontinuities [3–5]. This is because these schemes compress a depth image while maintaining the visual quality of the output. This concept is not efficient for the depth maps since the en- tity is a piecewise smooth surface, i.e. it has discontinuities along the edges of the image while it is smooth otherwise [1]. Applying such concepts might not be harmful when visualizing the depth image but leads to a lot of artifacts and errors in 3D reconstruction and IBR. These limitations motivated the research to develop more so- phisticated depth map compression schemes. In [3], JPEG 2000 was modified to accommodate for region of interest coding and reshaping the dynamic range of the depth map. In [4, 8], coding methods based on adaptive meshing of the depth image were derived. In [9], a depth map was hierarchically decomposed into four regions depending on the locations of the edges. These regions were then merged and fed to an AVC encoder. A context modeling method was derived in [10] to compress the images. A combination of quadtree subdivisions and platelet encoding was developed in [5]. Other methods that can also be applied for depth map compression are based on the combi- nation of non-uniform sampling and adaptive meshing of images as in [11, 12] for they take the content of the map into account. 3. PROPOSED SCHEME Compressed or compressive sensing (CS) is the art of reconstructing a signal from some random measurements that directly condense the 737 978-1-4244-5654-3/09/$26.00 ©2009 IEEE ICIP 2009

Upload: danielphilip

Post on 28-Apr-2015

29 views

Category:

Documents


1 download

DESCRIPTION

DEPTH MAP COMPRESSION VIA COMPRESSED SENSING, JPEG, MPEG

TRANSCRIPT

Page 1: DEPTH MAP COMPRESSION VIA COMPRESSED SENSING.pdf

DEPTH MAP COMPRESSION VIA COMPRESSED SENSING

Michel Sarkis and Klaus Diepold

Institute for Data Processing, Technische Universitat MunchenArcisstr. 21, 80290 Munich, Germany

[email protected], [email protected]

ABSTRACT

We propose in this paper a new scheme based on compressed sensingto compress a depth map. We first subsample the entity in the fre-quency domain to take advantage of its compressibility. We thenderive a reconstruction scheme to recover the original map fromthe subsamples using a non-linear conjugate gradient minimizationscheme. We preserve the discontinuities of the depth map at theedges and ensure its smoothness elsewhere by incorporating the To-tal Variation constraint in the minimization. The results we obtainedon various test depth maps show that the proposed method leads tolower error rate at high compression ratio when compared to stan-dard image compression techniques like JPEG and JPEG 2000.

Index Terms— Conjugate gradient methods, image coding, im-age representation, stereo vision

1. INTRODUCTION

Depth from stereo is one of the most developed research areas incomputer vision. Its aim is to determine an accurate representationof a scene in 3D by computing a disparity (depth) map of the cor-responding stereo image. In order to estimate this entity, matchingcosts among the pixels of the two images is first computed. An en-ergy function is then optimized at which the minimum is the soughtdepth map. An excellent survey about this topic is found in [1] whileup-to-date stereo algorithms can be found at [2].

Once a disparity map is available, it can be used for several pur-poses, e.g. 3D scene reconstruction, image based rendering (IBR)and 3DTV. The important issue is to have an accurate estimate of thedepth map of the scene in order to minimize the errors in the appli-cation where it is employed. This is why developing accurate stereoalgorithms remain till the moment a hot topic of research, see [2].

Irrespective of the algorithm used to compute it, a disparity maphas to be efficiently compressed to either save the hardware storagerequirement or before transmitting it over a network as in telepres-ence applications or in 3DTV. The compression scheme should bedesigned in a way to simultaneously save the required resources andpreserve the quality of the original uncompressed map. A typicalway to compress these entities is to use standard image or videocompression techniques like JPEG 2000 or MPEG-4. Such schemesprocess the images in such a way to maintain the visual quality ofthe result; therefore, they lead to a high amount of error in the recon-structed values of the depth map, see [3–5] for more details.

Motivated by this limitation, we propose in this work an al-gorithm for depth map compression based on compressed sens-ing (CS) [6,7]. We first subsample the disparity map in the frequency

This research is sponsored by the German Research Foundation (DFG)as a part of the SFB 453 project, High-Fidelity Telepresence and Teleaction.

domain to obtain incoherent measurements. We then formulate aL1-norm conjugate gradient minimization scheme to reconstructthe depth map for the measurements. To ensure the smoothness ofthe recovered disparity map and preserve the discontinuities at theedges, we incorporate the Total Variation (TV) constraint in the op-timization. The results we obtain on several disparity images showthat the CS-based scheme leads to an improvement in the qualitywhen compared to other techniques, even at high compression ratio.

The rest of this paper is organized as follows. We give a briefsurvey on depth map compression techniques in Section 2. We de-rive in Section 3 the proposed CS based technique for disparity mapcompression. We test the proposed scheme and compare it to othercompression methods in Section 4. Finally, we draw some conclu-sions and elaborate on some future work in Section 5.

2. RELATED WORK

Depth map compression is an important problem in computer vision.The standard way of tackling it is by applying standard image andvideo compression techniques like JPEG, JPEG 2000 and MPEG-4.These techniques suffer, however, from several disadvantages if ahigh compression ratio is desired. JPEG and MPEG-4 lead to block-ing artifacts while JPEG 2000 has the effect of blurring the edgesor the depth discontinuities [3–5]. This is because these schemescompress a depth image while maintaining the visual quality of theoutput. This concept is not efficient for the depth maps since the en-tity is a piecewise smooth surface, i.e. it has discontinuities along theedges of the image while it is smooth otherwise [1]. Applying suchconcepts might not be harmful when visualizing the depth image butleads to a lot of artifacts and errors in 3D reconstruction and IBR.

These limitations motivated the research to develop more so-phisticated depth map compression schemes. In [3], JPEG 2000 wasmodified to accommodate for region of interest coding and reshapingthe dynamic range of the depth map. In [4,8], coding methods basedon adaptive meshing of the depth image were derived. In [9], a depthmap was hierarchically decomposed into four regions depending onthe locations of the edges. These regions were then merged and fedto an AVC encoder. A context modeling method was derived in [10]to compress the images. A combination of quadtree subdivisionsand platelet encoding was developed in [5]. Other methods that canalso be applied for depth map compression are based on the combi-nation of non-uniform sampling and adaptive meshing of images asin [11, 12] for they take the content of the map into account.

3. PROPOSED SCHEME

Compressed or compressive sensing (CS) is the art of reconstructinga signal from some random measurements that directly condense the

737978-1-4244-5654-3/09/$26.00 ©2009 IEEE ICIP 2009

Page 2: DEPTH MAP COMPRESSION VIA COMPRESSED SENSING.pdf

original signal into a compressed representation. The measurementsacquired are condensed in the sense that they are very low in num-ber which makes further compression not necessary. CS differs fromthe traditional data acquisition schemes since it does not follow thesample then compress framework. The bottleneck here lies in themethodology that should be used to reconstruct the original signalfrom the measurements. CS is relatively a new field of research. Itwas firstly introduced by Donoho and Candes et al. in [6, 7]. Af-ter that, the domain of its applications grew very fast, see [13–15]for some examples. Some good introductory tutorials about CS arepresented in [16,17] while the latest developments are found in [18].

3.1. Problem Formulation

In general, a depth image X ∈ RW×H can be assumed to be com-

pressible or K−sparse along its frequency (Fourier) domain. let x ∈R

N×1 be the vectorized version of the depth map, i.e. N = W ×H ,and let Ψ ∈ R

N×N be the basis matrix of the Fourier transform.The vector x can be written as

x = Ψs, (1)

where s represents the weighting coefficient vector. The goal of ourCS based compression scheme is to reconstruct the original depthmap x from a measurement vector y ∈ R

M×1 where M ≪ N .This problem can be expressed as

y = Φx = ΦΨs, (2)

where Φ ∈ RM×N is the measurement matrix. The matrix Φ in

our problem is a random subsampling matrix of the Fourier trans-form basis Ψ. In order to compress the depth map, we will representit by the sparse subsampling matrix Φ and the corresponding mea-surement vector y. Therefore, the first part of our algorithm, i.e.the compressor, is to design a subsampling matrix Φ which can ef-ficiently compress the original depth map x into the measurementvector y without deteriorating it.

The second part of our algorithm, i.e. the decompressor, is torecover back the original depth map x or equivalently the coefficientvector s in the Fourier basis Ψ from the measurements y based onthe theory of compressed sensing. formulating (2) using a L1-normoptimization problem such as

s = argmins

‖s‖1 such that ΦΨs = y, (3)

where ‖ · ‖1 is the L1-norm. This equation can also be written as

argmins

(‖ΦΨs− y‖2 + λ · ‖s‖1) . (4)

The right addend of the summation encourages the sparsity of thesolution while the left one ensures its consistency with y [6, 7]. Thescalar λ weighs the contribution the right term in the minimization.

However, the properties of the depth map must be addition-ally taken into account in the minimization of (4). In other words,it is necessary to incorporate the smoothness of the depth map.To do that, we will apply the total variation (TV) constraint. TVwas first introduced in [19] for noise removal algorithms and hasbeen successfully applied in estimating the depth maps of stereosequences [20]. This constraint consists of computing the finitedifferences of the disparity map to measure the overall amount ofvariation in the image. The TV constraint ensures the smoothnessof the depth map and preserves the discontinuities at the edges atthe same time. This is why TV is widely used in image reconstruc-tion problems, see [19–21]. Including this constraint in (4) will

encourage the first order derivative to be also sparse. Taking TV intoaccount, the cost function in (4) becomes

argmins

(‖ΦΨs− y‖2 + λ · ‖s‖1 + γ · TV (ΦΨs)) , (5)

where γ regularizes the weight of TV in the minimization.What is left to be done is to design a suitable subsampling ma-

trix Φ, i.e. the compressor, to compress the original depth map anda depth map reconstruction algorithm from the compressed signal,i.e. the decompressor, that optimizes (5).

3.2. Designing the Subsampling Matrix

In a general CS problem, the subsampling matrix is chosen as a ran-dom matrix. This is done to ensure that the sampling of the signalacts like incoherent aliasing interference. In other words, the randomsubsampling will enable us to recognize the important coefficients ofthe sparsifying transform since they remain stronger than the inter-ference caused by the sampling process itself. This will allow us todesign a non-linear optimization scheme to recover back the originalsignal only from the significant coefficients.

Thus, it is important in our algorithm to choose a subsamplingmatrix Φ that ensures the above property. To do that, we will applythe Cartesian grid sampling technique of [22]. The method starts bydefining a sampling grid equal to the image resolution. The probabil-ity density function of the grid is then computed and the subsamplingis performed by randomly drawing indices for the density functiondepending on desired compression ratio. This process is repeated apredefined number of times. Each time, the incoherence is measuredvia the corresponding point spread function. The sought samplingpattern is then chosen as the one that leads to the best incoherentinterference of the Fourier transform.

Once found, the sampling matrix Φ can be used for any depthmap of the specified resolution. This means that it can be presetat the compressor and the decompressor and does not need to berecomputed for another depth map of the same size.

3.3. Depth Map Reconstruction with Conjugate Gradient

To recover the original depth map from the measurements in the CSsense, it is necessary to formulate a non-linear L1-norm convex op-timization scheme [6, 7]. We will apply here the Fletcher-Reevesnon-linear conjugate gradient iterative scheme. The conjugate gra-dient method computes at each iteration a direction vector pk for thefollowing update equation

sk+1 = sk + αkpk. (6)

The constant k is the iteration number while αk is the line searchparameter. This minimization scheme does not require any of theolder directions than pk since the latter is conjugate to each one ofthem. The new direction of the minimization pk+1 is computed frompk and the residual error of the iteration. Let fk be the value of theargument in (5) at the kth iteration and ∇fk be the correspondinggradient. The new optimization direction is given by

pk+1 = −∇fk+1 +∇fT

k+1∇fk+1

∇fTk ∇fk

pk. (7)

These two equations are then iterated until convergence is achieved.To ensure that the algorithm does not diverge, the line search param-eter αk must be computed by making it satisfy the strong Wolfe con-ditions. For more information about the conjugate gradient scheme,the interested reader may refer to [23] for more details.

738

Page 3: DEPTH MAP COMPRESSION VIA COMPRESSED SENSING.pdf

4. RESULTS AND DISCUSSION

We will perform some tests that consist of evaluating the perfor-mance of the proposed CS based compression scheme. We will useas a test data set the ground truth depth maps of the Middlebury testbench [1, 2]. We will compare our scheme with the JPEG and theJPEG 2000 image compression standards. In all the performed tests,the weights λ and γ of (5) are set to 0.02 and 0.01 respectively.

We will be using two quality measures in the comparisons. Thefirst one is the percentage of the bad disparity values in the depth mapwhile the second is the Peak Signal to Noise Ratio (PSNR). Thesewill be measured while varying the compression ratio at which theground truth disparity image is compressed. The output of this ex-periment on the Tsukuba, Cones, Dolls and Art ground truth depthmaps is shown in Fig. 1. An interesting phenomenon that can be seenhere is that the PSNR is not a good metric to measure the qualityof compressed depth maps. The PSNR values obtained from JPEGor JPEG 2000 can be higher than the values obtained with the CSscheme while having higher percentage of error in the depth recon-struction. This can be justified by the well known fact that JPEG andJPEG 2000 are designed to optimize the output for the visual qualityof the depth map, i.e. they take into account the human visual psy-chological model. This leads to a better visualization of the depthmap at the risk of obtaining higher error rate of the depth values. Asa result, one can conclude from Fig. 1 that PSNR is not a good rep-resentative of the quality of a depth map since it can be low even ifthe corresponding amount of bad depth values is high.

To show the effect of the depth errors visually, we present inFig. 2 the synthesized right view of the Middlebury images using theoriginal left view and various compressed depth maps. The compres-sion ratio is set to 10. We also provide the output with the groundtruth depth map of Middlebury. Note that the occluded regions areleft in black since they cannot be observed from the left image. Whatwe can see from the images is that the compression using CS has theleast visual effects in the synthesized right images. Moreover, CShas the closest output to that of the ground truth depth maps. Thiscan be clearly seen at the edges of the reconstructed views in Fig. 2.

In all the obtained results, the proposed CS based compressionscheme has shown a better performance for the optimization takesthe properties of the depth map into account and does not optimizeto only maintain the visual quality of the depth map as the others do.To what concerns the speed, the scheme requires 4.6 s on Tsukuba,10.4 s on Cones and 12.7 s on Art. These results were measuredusing a 2 GHz 64-bit AMD Opteron which consists of 4 CPUs. Thetechnique was implemented using the C++ programming language.

5. CONCLUSION AND OUTLOOK

We proposed in this paper a new depth map compression techniquebased on compressed sensing. The method first subsamples thedepth map in the frequency domain by choosing a subsampling ma-trix that ensures the incoherence of the measurements. A non-linearconjugate gradient scheme is then derived to recover the originaldepth map from the subsampled version. The proposed compressionscheme was able to give better results than the standard JPEG andJPEG 2000 image compression algorithms. This is due for the CSbased technique does not consider the visual quality in the optimiza-tion process. Instead, it takes the properties of the depth map intoaccount by incorporating the TV constraint.

Looking into the future, we want to integrate a suitable codingmethod with our scheme to obtain higher compression ratio whilepreserving the quality of the resulting depth map.

6. REFERENCES

[1] D. Scharstein and R. Szeliski, “A taxonomy and evaluationof dense two-frame stereo correspondence algorithms,” Int. J.Computer Vision, vol. 47, no. 1, pp. 7–42, Apr. 2002.

[2] Middlebury College, “Middlebury stereo evaluation,” http://vision.middlebury.edu/stereo/eval.

[3] R. Krishnamurthy, B. B. Chai, H. Tao, and S. Sethuraman,“Compression and transmission of depth maps for image-basedrendering,” in IEEE Int. Conf. Image Processing, Oct. 2001.

[4] B. B. Chai, S. Sethuraman, H. S. Sawhney, and P. Hatrack,“Depth map compression for real-time view-based rendering,”Pattern Recognition L., vol. 25, no. 7, pp. 755–766, May 2004.

[5] Y. Morvan, H. N. de With, and D. Farin, “Depth-image rep-resentation employing meshes for intermediate-view renderingand coding,” in SPIE Conf. Electronic Imaging: StereoscopicDisplays and Applications, Jan. 2006, pp. 93–100.

[6] D. L. Donoho, “Compressed sensing,” IEEE T. InformationTheory, vol. 52, no. 4, pp. 1289–1306, Apr. 2006.

[7] E. J. Candes, J. Romberg, and T. Tao, “Robust uncertaintyprinciples: Exact signal reconstruction from highly incompletefrequency information,” IEEE T. Information Theory, vol. 52,no. 2, pp. 489–509, Feb. 2006.

[8] D. Farin, R. Peerlings, and H. N. de With, “Depth-image rep-resentation employing meshes for intermediate-view renderingand coding,” in 3DTV Conf., May. 2007, pp. 1–4.

[9] S.-Y. Kim and Y.-S. Ho, “Mesh-based depth coding for 3Dvideo using hierarchical decomposition of depth maps,” inIEEE Int. Conf. Image Processing, Oct. 2007.

[10] P. Bao, D. Gourlay, and Y. Li, “Context based depth imagecompression for distributed virtual environment,” in IEEE Int.Conf. Cyberworlds, Dec. 2003.

[11] L. Demaret, N. Dyn, and A. Iske, “Image compression bylinear splines over adaptive triangulations,” Signal ProcessingJ., vol. 86, no. 7, pp. 1604–1616, Jul. 2006.

[12] M. Sarkis and K. Diepold, “Content adaptive mesh represen-tation of images using binary space partitions,” IEEE T. ImageProcessing, vol. 18, no. 5, pp. 1069–1079, May 2009.

[13] K. Egiazarian, A. Foi, and V. Katkovnik, “Compressed sensingimage reconstruction via recursive spatially adaptive filtering,”in IEEE Int. Conf. Image Processing, Sep. 2007.

[14] J.Y. Park and M.B. Wakin, “A multiscale framework for com-pressive sensing of video,” in Picture Coding Symp., May2009.

[15] P. Nagesh and B. Li, “Compressive imaging of color images,”in IEEE Int. Conf. Acoustic, Speech and Signal Processing,Mar. 2009.

[16] R. Baraniuk, “Compressive sensing,” IEEE Signal ProcessingMag., vol. 24, no. 4, pp. 118–121, Jul. 2007.

[17] E. J. Candes and M. Wakin, “An introduction to compressivesensing,” IEEE Signal Processing Mag., vol. 25, no. 2, pp.21–30, Mar. 2008.

[18] Rice University, “Compressive sensing resources,” http://www.dsp.ece.rice.edu/cs.

[19] L. I. Rudin, S. Osher, and E. Fatemi, “Nonlinear total variationbased noise removal algorithms,” Physica D, vol. 60, no. 1–4,pp. 259–268, Nov. 1992.

739

Page 4: DEPTH MAP COMPRESSION VIA COMPRESSED SENSING.pdf

(a) Tsukuba (b) Cones (c) Dolls (d) Art

Fig. 1. Comparison of the compression algorithms on the Middlebury depth images. Upper row: Percentage of wrong disparity values versusthe compression ratio. Lower row: PSNR versus the compression ratio.

(a) Ground Truth (Uncompressed) (b) Compressed with JPEG (c) Compressed with JPEG 2000 (d) Compressed with CS

Fig. 2. The resulting right frame synthesized using the original left frame of the Middlebury stereo images and various depth maps. From uptill down: Tsukuba, Cones and Art. The compression ratio is set to 10.

[20] N. Slesareva, A. Bruhn, and J. Weickert, “Optic flow goessrtereo: A variational method for estimating discontinuity-preserving dense disparity maps,” in DAGM Symp. PatternRecognition, Aug. 2005.

[21] V. Caselles, A. Chambolle, and M. Novaga, “The discontinuityset of solutions of the TV denoising problem and some exten-sions,” Multiscale Modeling and Simulation, vol. 6, no. 3, pp.

879–894, Mar. 2007.

[22] M. Lustig, D. Donoho, and J. M. Pauly, “Sparse MRI: The ap-plication of compressed sensing for rapid MR imaging,” Mag.Reson. Med., vol. 58, no. 6, pp. 1182–1195, Dec. 2007.

[23] J. Nocedal and S. J. Wright, Numerical Optimization, Springer,2nd edition, Apr. 2000.

740