<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JCC</journal-id><journal-title-group><journal-title>Journal of Computer and Communications</journal-title></journal-title-group><issn pub-type="epub">2327-5219</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jcc.2016.43006</article-id><article-id pub-id-type="publisher-id">JCC-64111</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  Analysis of Wavelet Compression and Seam Carving Using the Hausdorf Distance
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>S.</surname><given-names>Fernando</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>R.</surname><given-names>Wijesiriwardana</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>ReliSen, Bentonville, AR, USA</addr-line></aff><pub-date pub-type="epub"><day>02</day><month>03</month><year>2016</year></pub-date><volume>04</volume><issue>03</issue><fpage>35</fpage><lpage>45</lpage><history><date date-type="received"><day>30</day>	<month>November</month>	<year>2015</year></date><date date-type="rev-recd"><day>accepted</day>	<month>26</month>	<year>February</year>	</date><date date-type="accepted"><day>2</day>	<month>March</month>	<year>2016</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
   In this paper image quality of two types of compression methods, wavelet based and seam carving based are investigated. A metric is introduced to compare the image quality under wavelet and seam carving schemes. Meyer, Coiflet 2 and Jpeg2000 wavelet based methods are used as the wavelet based methods. Hausdorf distance based metric (HDM) is proposed and used for the comparison of the two compression methods instead of model based matching techniques and correspondence-based matching techniques, because there is no pairing of points in the two sets being compared. In addition entropy based metric (EM) or peak signal to noise ration based metric (PSNRM) cannot be used to compare the two schemes as the seam carving tends to deform the objects. The wavelet compressed images with different compression percentages were analyzed with HDM and EM and it was observed that HDM follows the EM/PSNRM for wavelet based compression methods. Then HDM is used to compare the wavelet and seam carved images for different compression percentages. The initial results showed that HDM is better metric for comparing wavelet based and seam carved images. 
 
</p></abstract><kwd-group><kwd>Wavelet Compression</kwd><kwd> Seam Carving</kwd><kwd> Haudorf Transformation</kwd><kwd> Jpeg 2000</kwd><kwd> Metric</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The rapid growth of wireless communication systems has increased the demand for robust multimedia transmission with better quality, coverage, and more power and bandwidth efficiency. The restriction of the wireless communication channels like limited bandwidth increases the demand for more reliable and better quality multimedia communication systems, specifically to develop transmission techniques that do not consume more bandwidth while achieving better received image quality. One way of sending high-quality images through band limited wire/wireless communication channels can be achieved by applying the proper compression technique depending on the transmission capacity, type of the image and the download time of the file as the independent variables [<xref ref-type="bibr" rid="scirp.64111-ref1">1</xref>]-[<xref ref-type="bibr" rid="scirp.64111-ref3">3</xref>]. The proper compression technique can be identified as the selected method of compression and the respective compression percentage according to a metric.</p><p>The evaluation of lossy techniques is extreme difficult when describing the type and amount of degradation in reconstructed images. Due to the problems related with the subjective measures of image quality, there are lots of research has been done in order to develop a reliable quantitative measure.</p><p>The most commonly used metric for measuring compression is based on image quality which can be defined as signal to noise ratio (PSNR) or mean squared error (MSE) [<xref ref-type="bibr" rid="scirp.64111-ref18">18</xref>]. However, they often fail when evaluating the image quality with different compression techniques. Even more importantly, the metrics do not measure object shape or boundary variations such as edges due to the compression techniques.</p><p>There are prominent reviews of image quality metrics have been done during the last few decades. The research done by, Ahumada [<xref ref-type="bibr" rid="scirp.64111-ref4">4</xref>] provides a concise summary of perceptual metrics applied to image quality research. Jayant et al. [<xref ref-type="bibr" rid="scirp.64111-ref5">5</xref>] describe how perceptual characteristics have been applied to signal compression. The research work by Daly [<xref ref-type="bibr" rid="scirp.64111-ref6">6</xref>] provides a number of visual factors which should be integrated in a perceptual metric in order to evaluate image quality. According to Eskicioglu [<xref ref-type="bibr" rid="scirp.64111-ref7">7</xref>] have proved a number of quality metrics. The research done by S. Fernando and R. Wijesiriwardana [<xref ref-type="bibr" rid="scirp.64111-ref8">8</xref>] has showed how entropy can be used as a metric [EM] to evaluate loss of information due to compression techniques such as wavelet based methods and seam carving. However due to the image geometric complexities EM methods found to be difficult to use in seam carved method [<xref ref-type="bibr" rid="scirp.64111-ref8">8</xref>].</p><p>In this research the authors have introduced the Hausdorf distance metric [<xref ref-type="bibr" rid="scirp.64111-ref9">9</xref>] to assess the change of images due to compression techniques such as wavelet based method and seam carving by computing the amount of resemblance of shape of the objects.</p><p>Wavelet based methods and seam carving were used as compression schemes. Where Meyer, Coiflet2 [<xref ref-type="bibr" rid="scirp.64111-ref10">10</xref>], [<xref ref-type="bibr" rid="scirp.64111-ref11">11</xref>], and JPEG2000 [<xref ref-type="bibr" rid="scirp.64111-ref12">12</xref>] wavelets based compression methods were experimented together with an energy based seam carving method [<xref ref-type="bibr" rid="scirp.64111-ref13">13</xref>].</p><p>In order to select a proper method out of the methods used a metric is required and EM based metrics have been researched for the wavelet transformation based methods [<xref ref-type="bibr" rid="scirp.64111-ref14">14</xref>]-[<xref ref-type="bibr" rid="scirp.64111-ref17">17</xref>]. However when comparing seam carving method and wavelet methods a new metric is required as EM based metrics is not ideal for measuring the quality of the seam carved image as pixel coherence is preserved and only the shapes are distorted in a seam carved image. Moreover model based or correspondence based matching techniques cannot be used as the number of points being different on compressed images. Therefore we used Hausdorf distance based metric (HDM) [<xref ref-type="bibr" rid="scirp.64111-ref9">9</xref>] to compare the compressed images.</p><p>First part of this research we compare the wavelet based compression methods with EM and HDM and It was found out that they are comparable. Hence HDM can be used as a valid metric to measure the image distortion in wavelet based compressed images.</p><p>The second part of the research we used HDM to compare energy based seam carved images with different compression percentages and it was found that HDM is a good metric to compare the image distortion in seam carved images.</p><p>The third part of the research we have compared the Meyer, Coiflet 2, JPEG2000 and seam carved images based on HDM. The theory, method and the results are discussed in the following chapters.</p></sec><sec id="s2"><title>2. Wavelet Based Image Compression</title><p>The rapid advancement in wavelet technology has led to advanced standards for image compression which is based on discrete wavelet transform (DWT). It has brought a new surge of interest in wavelets and also towards advancement and faster computational algorithms for storing and transmission of images</p><p>In this research two families of wavelets namely, Meyer and Coiflet 2 wavelets and JPEG2000 are used for the compression. The Equations (1) and (2) shows the Meyer scale and wavelet functions and JPEG2000 is based on defined two wavelet transformations namely CDF9/7 and CDF(5/3). Each layer of JPEG2000 adds coded information to improve the quality of the image [<xref ref-type="bibr" rid="scirp.64111-ref12">12</xref>].</p><disp-formula id="scirp.64111-formula46"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/64111x4.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.64111-formula47"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/64111x5.png"  xlink:type="simple"/></disp-formula><sec id="s2_1"><title>2.1. Seam Carving</title><p>Seam carving is a technique targeting image compression and resizing based on detection of seams from the energy function of the image. The method aims at finding seams of minimum energy and manipulating the image by carving out these seams [<xref ref-type="bibr" rid="scirp.64111-ref13">13</xref>].</p><p>Effective resizing of images not only use geometric constraints, but consider the image content as well. Conventional image resizing consists of cropping or evenly down sampling that lead to loss of important features or distortion. Seam carving method enables us to remove pixels from uninteresting parts of the image while preserving important content. The cumulative energy function is defined by Equation (3).</p><disp-formula id="scirp.64111-formula48"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/64111x6.png"  xlink:type="simple"/></disp-formula><p>And the backtracing in x direction can be represented mathematically as shown in Equation (4).</p><disp-formula id="scirp.64111-formula49"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/64111x7.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.64111-formula50"><graphic  xlink:href="http://html.scirp.org/file/64111x8.png"  xlink:type="simple"/></disp-formula></sec><sec id="s2_2"><title>2.2. PSNR Based Metric</title><p>PSNR is used as a general metric to measure the quality of restoration of lossy or lossless compression of images. The signal denotes the original data, and the noise represents the error introduced by compression. However, a higher PSNR generally indicates that the reconstruction is of higher quality, in some cases it may not be true. The PSNR is defined as,</p><disp-formula id="scirp.64111-formula51"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/64111x9.png"  xlink:type="simple"/></disp-formula><p>where,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/64111x10.png" xlink:type="simple"/></inline-formula>.</p><p>The, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/64111x11.png" xlink:type="simple"/></inline-formula>is the maximum possible pixel value of the image. I, J denotes the original and compressed images respectively.</p></sec><sec id="s2_3"><title>2.3. Entropy Based Metric</title><p>The entropy can be used as a statistical measure of uncertainty to characterize the texture of an image [<xref ref-type="bibr" rid="scirp.64111-ref11">11</xref>]. If a random variable X takes on values in a set</p><disp-formula id="scirp.64111-formula52"><graphic  xlink:href="http://html.scirp.org/file/64111x12.png"  xlink:type="simple"/></disp-formula><p>and is defined by a probability distribution<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/64111x13.png" xlink:type="simple"/></inline-formula>, then the entropy of the random variable can be written as,</p><disp-formula id="scirp.64111-formula53"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/64111x14.png"  xlink:type="simple"/></disp-formula></sec><sec id="s2_4"><title>2.4. Hausdorf Distance Based Metric</title><p>Hausdorf distance is a metric between two point sets [<xref ref-type="bibr" rid="scirp.64111-ref9">9</xref>]. Since this is applied to digital images the dimensions of the two point sets were restricted to two dimensions.</p><p>Let <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/64111x15.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/64111x16.png" xlink:type="simple"/></inline-formula> denote two finite point sets. Then the Hausdorf distance is defined as,</p><disp-formula id="scirp.64111-formula54"><graphic  xlink:href="http://html.scirp.org/file/64111x17.png"  xlink:type="simple"/></disp-formula><p>where,</p><disp-formula id="scirp.64111-formula55"><graphic  xlink:href="http://html.scirp.org/file/64111x18.png"  xlink:type="simple"/></disp-formula><p>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/64111x19.png" xlink:type="simple"/></inline-formula> is some underlying norm on the points of A and B.</p><p>The function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/64111x20.png" xlink:type="simple"/></inline-formula> is called the directed Hausdorf distance from A to B.</p><p>The Hausdorf distance <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/64111x21.png" xlink:type="simple"/></inline-formula> is the maximum of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/64111x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/64111x22.png" xlink:type="simple"/></inline-formula> and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/64111x21.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/64111x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/64111x23.png" xlink:type="simple"/></inline-formula>. Thus it measures the degree of mismatch between the two sets by measuring the distance of the point of that is farthest from any point of and vice versa.</p></sec></sec><sec id="s3"><title>3. Analysis</title><p>Different types of images are selected for the testing. The images are selected so that they will cover the common types of photographic images. The compression percentages of 35%, 50%, 70% and 90% are used for each type of image respectively and the entropy and Hausdorf distance were calculated by using MatLab™ built in functions. <xref ref-type="fig" rid="fig1">Figure 1</xref> shows the 7 images used.</p><sec id="s3_1"><title>3.1. EM and HDM Results of Wavelets Based Compressed Images</title><p>The <xref ref-type="fig" rid="fig2">Figure 2</xref> shows the plot of EM vs. the HDM at different percentage compression ratios. All three methods of wavelet transformations were used for the analysis.</p><p>At 35%, r value of 0.98 and p value of less than 5% are observed. At 70%, r value of 0.98 and p value of less than 5% is observed. At 90% r value of 0.7 and a p value less than 5% is observed. Between the EM and HDM values a linear relationship is observed at 35% to 90% percentage compressions. Also at higher compression percentages above 90% less r lower than 0.7 were observed.</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Seven images used for testing</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/64111x24.png"/></fig><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> EM vs HDM wavelet compression results</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/64111x25.png"/></fig></sec><sec id="s3_2"><title>3.2. EM and HDM Results of Seam Carving Based Compressed Images</title><p>The EM vs. HDM data of the seam carved images are shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>. Poor linear relationship is observed between EM and HDM. This is expected as EM has limitations for the seam carved images.</p></sec><sec id="s3_3"><title>3.3. HDM on Meyer and Coiflet 2 Wavelet Compression Schemes</title><p><xref ref-type="fig" rid="fig4">Figure 4</xref> shows the HDM on Meyer wavelet compressed images. The X axis is the Image number and the Y axis is the HD value.</p><p>It was observed that change of the HD values is significant after 70% of compression. For all 7 images increasing HD values are observed with the compression percentage.</p><p><xref ref-type="fig" rid="fig5">Figure 5</xref> shows the HDM on Coiflet 2 wavelet compressed images. The X axis is the Image number and the Y axis is the HD value. It was observed that that change of the HD values are significant after 70% of compression similar to the Meyer wavelet compressed images. For all 7 images tested increasing HD values are observed with the compression percentage.</p><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> EM vs HDM seam carving based compression</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/64111x26.png"/></fig><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> HDM of Meyer wavelet compressed images</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/64111x27.png"/></fig><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> HDM of Coiflet 2 wavelet compressed images</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/64111x28.png"/></fig><p>The tabulated data are show in <xref ref-type="table" rid="table1">Table 1</xref>. Similar graph profiles were observed with the Coiflet 2. <xref ref-type="fig" rid="fig6">Figure 6</xref> shows the Coiflet 2 vs. Meyer HD values. We have observed a linear relationship with an average slop of 1 and r value of 0.98 at a less than 5% p value. The r and slope values are given in <xref ref-type="table" rid="table2">Table 2</xref>.</p><p>Regression results of HD values of Meyer and Coiflet 2 based compressed images at different compression percentages.</p></sec><sec id="s3_4"><title>3.4. HDM on JPEG 2000 Compressed and Seam Carved Images</title><p><xref ref-type="fig" rid="fig7">Figure 7</xref> shows the HDM on the JPEG2000 compressed images. Unlike the Meyer and Coiflet 2 methods. For all 7 images increasing HD values with the compression percentages are observed.</p><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> HDM of Coiflet 2 vs Meyer wavelets compressed images</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/64111x29.png"/></fig><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> HDM of JPEG 2000 compressed images</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/64111x30.png"/></fig><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> HD values of seven images (Meyer and Coiflet 2 wavelets) with compression %</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Meyer</th><th align="center" valign="middle" >1</th><th align="center" valign="middle" >2</th><th align="center" valign="middle" >3</th><th align="center" valign="middle" >4</th><th align="center" valign="middle" >5</th><th align="center" valign="middle" >6</th><th align="center" valign="middle" >7</th></tr></thead><tr><td align="center" valign="middle" >%/Image</td><td align="center" valign="middle" >I1</td><td align="center" valign="middle" >I2</td><td align="center" valign="middle" >I3</td><td align="center" valign="middle" >I4</td><td align="center" valign="middle" >Veg</td><td align="center" valign="middle" >ARC</td><td align="center" valign="middle" >Lena</td></tr><tr><td align="center" valign="middle" >90</td><td align="center" valign="middle" >26.5100</td><td align="center" valign="middle" >48.0288</td><td align="center" valign="middle" >39.0115</td><td align="center" valign="middle" >36.8217</td><td align="center" valign="middle" >29.2913</td><td align="center" valign="middle" >24.4681</td><td align="center" valign="middle" >33.3597</td></tr><tr><td align="center" valign="middle" >70</td><td align="center" valign="middle" >20.5646</td><td align="center" valign="middle" >19.4164</td><td align="center" valign="middle" >35.7021</td><td align="center" valign="middle" >26.4261</td><td align="center" valign="middle" >24.6625</td><td align="center" valign="middle" >10.7999</td><td align="center" valign="middle" >19.5647</td></tr><tr><td align="center" valign="middle" >35</td><td align="center" valign="middle" >20.1920</td><td align="center" valign="middle" >18.4900</td><td align="center" valign="middle" >35.3676</td><td align="center" valign="middle" >25.6988</td><td align="center" valign="middle" >23.4181</td><td align="center" valign="middle" >10.4833</td><td align="center" valign="middle" >19.2474</td></tr><tr><td align="center" valign="middle" >Coiflet 2</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >5</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >7</td></tr><tr><td align="center" valign="middle" >%/Image</td><td align="center" valign="middle" >I1</td><td align="center" valign="middle" >I2</td><td align="center" valign="middle" >I3</td><td align="center" valign="middle" >I4</td><td align="center" valign="middle" >Veg</td><td align="center" valign="middle" >ARC</td><td align="center" valign="middle" >Lena</td></tr><tr><td align="center" valign="middle" >90</td><td align="center" valign="middle" >26.6915</td><td align="center" valign="middle" >47.9993</td><td align="center" valign="middle" >39.0464</td><td align="center" valign="middle" >36.8609</td><td align="center" valign="middle" >33.2415</td><td align="center" valign="middle" >21.9770</td><td align="center" valign="middle" >35.1994</td></tr><tr><td align="center" valign="middle" >70</td><td align="center" valign="middle" >20.7846</td><td align="center" valign="middle" >18.9458</td><td align="center" valign="middle" >36.2383</td><td align="center" valign="middle" >24.7841</td><td align="center" valign="middle" >23.7192</td><td align="center" valign="middle" >10.6456</td><td align="center" valign="middle" >19.8867</td></tr><tr><td align="center" valign="middle" >35</td><td align="center" valign="middle" >20.0454</td><td align="center" valign="middle" >18.3209</td><td align="center" valign="middle" >35.6226</td><td align="center" valign="middle" >24.7692</td><td align="center" valign="middle" >23.3485</td><td align="center" valign="middle" >9.9282</td><td align="center" valign="middle" >19.4559</td></tr></tbody></table></table-wrap><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Regression results</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Compression</th><th align="center" valign="middle" >r</th><th align="center" valign="middle" >Slope</th></tr></thead><tr><td align="center" valign="middle" >90%</td><td align="center" valign="middle" >0.97</td><td align="center" valign="middle" >1.009</td></tr><tr><td align="center" valign="middle" >70%</td><td align="center" valign="middle" >0.99</td><td align="center" valign="middle" >1.007</td></tr><tr><td align="center" valign="middle" >35%</td><td align="center" valign="middle" >0.99</td><td align="center" valign="middle" >1.022</td></tr></tbody></table></table-wrap><p><xref ref-type="fig" rid="fig8">Figure 8</xref> shows the HDM on the seam carved compressed images. For all seven images an increasing HD values with the compression percentages are observed.</p><p>The HD data of the JPEG2000 and seam carving schemes are shown in the <xref ref-type="table" rid="table3">Table 3</xref>.</p><p><xref ref-type="fig" rid="fig9">Figure 9</xref> shows seam caved HD values vs. JPEG2000 compressed HD values. It is observed that they both having proportional relationship for all images tested except few. However it was also observed that the nature of proportionality is depend on the image type and the compression percentage (<xref ref-type="fig" rid="fig9">Figure 9</xref>).</p></sec></sec><sec id="s4"><title>4. Discussion</title><p>The initial experimental data showed HDM can be used as a metric in different compression schemes specially to measure the quality of the seam carved images. However more testing is required with different image types to justify HDM as a Metric for comparing different compression schemes.</p><p>In addition seam carved images showed better image quality in identifying objects over 70% compression</p><fig id="fig8"  position="float"><label><xref ref-type="fig" rid="fig8">Figure 8</xref></label><caption><title> HDM of seam carved images</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/64111x31.png"/></fig><fig id="fig9"  position="float"><label><xref ref-type="fig" rid="fig9">Figure 9</xref></label><caption><title> HDM of seam carved vs JPEG 2000 compressed</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/64111x32.png"/></fig><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> HD values of seven images (seam carved and JPEG 2000) with compression %</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >JPEG2000</th><th align="center" valign="middle" >1</th><th align="center" valign="middle" >2</th><th align="center" valign="middle" >3</th><th align="center" valign="middle" >4</th><th align="center" valign="middle" >5</th><th align="center" valign="middle" >6</th><th align="center" valign="middle" >7</th></tr></thead><tr><td align="center" valign="middle" >%/Image</td><td align="center" valign="middle" >I1</td><td align="center" valign="middle" >I2</td><td align="center" valign="middle" >I3</td><td align="center" valign="middle" >I4</td><td align="center" valign="middle" >Veg</td><td align="center" valign="middle" >ARC</td><td align="center" valign="middle" >Lena</td></tr><tr><td align="center" valign="middle" >90</td><td align="center" valign="middle" >28.6612</td><td align="center" valign="middle" >27.5430</td><td align="center" valign="middle" >59.1172</td><td align="center" valign="middle" >37.2640</td><td align="center" valign="middle" >28.1909</td><td align="center" valign="middle" >7.8966</td><td align="center" valign="middle" >28.3545</td></tr><tr><td align="center" valign="middle" >70</td><td align="center" valign="middle" >22.6684</td><td align="center" valign="middle" >26.2677</td><td align="center" valign="middle" >53.0732</td><td align="center" valign="middle" >31.7846</td><td align="center" valign="middle" >28.0308</td><td align="center" valign="middle" >12.7279</td><td align="center" valign="middle" >25.2784</td></tr><tr><td align="center" valign="middle" >35</td><td align="center" valign="middle" >18.9420</td><td align="center" valign="middle" >19.6696</td><td align="center" valign="middle" >34.8550</td><td align="center" valign="middle" >24.5547</td><td align="center" valign="middle" >22.5037</td><td align="center" valign="middle" >9.3246</td><td align="center" valign="middle" >20.5279</td></tr><tr><td align="center" valign="middle" >Seam</td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >5</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >7</td></tr><tr><td align="center" valign="middle" >%/Image</td><td align="center" valign="middle" >I1</td><td align="center" valign="middle" >I2</td><td align="center" valign="middle" >I3</td><td align="center" valign="middle" >I4</td><td align="center" valign="middle" >Veg</td><td align="center" valign="middle" >ARC</td><td align="center" valign="middle" >Lena</td></tr><tr><td align="center" valign="middle" >90</td><td align="center" valign="middle" >42.4345</td><td align="center" valign="middle" >40.2480</td><td align="center" valign="middle" >59.9495</td><td align="center" valign="middle" >37.1812</td><td align="center" valign="middle" >30.3892</td><td align="center" valign="middle" >19.7472</td><td align="center" valign="middle" >27.4945</td></tr><tr><td align="center" valign="middle" >70</td><td align="center" valign="middle" >32.8792</td><td align="center" valign="middle" >34.8564</td><td align="center" valign="middle" >56.7495</td><td align="center" valign="middle" >33.1015</td><td align="center" valign="middle" >25.1887</td><td align="center" valign="middle" >16.4422</td><td align="center" valign="middle" >25.4391</td></tr><tr><td align="center" valign="middle" >35</td><td align="center" valign="middle" >27.4615</td><td align="center" valign="middle" >32.0450</td><td align="center" valign="middle" >50.9405</td><td align="center" valign="middle" >29.6577</td><td align="center" valign="middle" >18.4954</td><td align="center" valign="middle" >12.6534</td><td align="center" valign="middle" >22.4391</td></tr></tbody></table></table-wrap><p>percentages with respect to Meyer and Coiflet 2 wavelet based compression schemes. Moreover with images having textual data seam carved images preserved the information better than the Meyer or the Coiflet 2 schemes images at the same compression percentage (<xref ref-type="fig" rid="fig1">Figure 1</xref>0). The images with large curved objects were severely distorted under the seam carved scheme (<xref ref-type="fig" rid="fig1">Figure 1</xref>1) above 90% compression.</p><p>Comparing 90% compression of seam carving and JPEG2000, the JPEG2000 shows the entire image while seam carving has removed low energy plane areas while preserving high energy geometrical details (<xref ref-type="fig" rid="fig1">Figure 1</xref>2).</p><p>The following table shows how the HDM varies based on two compression techniques.</p><fig id="fig10"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>0</label><caption><title> Comparison of seam carved and Mayer wallet compressed image I<sub>2</sub></title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/64111x33.png"/></fig><fig id="fig11"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>1</label><caption><title> Comparison of seam carved and Mayer wallet compressed image I<sub>3</sub></title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/64111x34.png"/></fig><fig id="fig12"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>2</label><caption><title> Comparison of seam carved and JPEG2000 compressed image I<sub>4</sub></title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/64111x35.png"/></fig><p>In JPEG2000 at 90% the detail features which shows the geometry or shape of the buildings has considerably been removed while seam carving preserves the detail geometry and the hue of the high energy objects. <xref ref-type="table" rid="table4">Table 4</xref> shows that there is not much difference (0.21%) in HDM for seam carving while JPEG2000 shows a considerable change (17.24%) of HDM from 70% to 90%. <xref ref-type="table" rid="table5">Table 5</xref> also has similar results. Which is a good indication of HDM being a better metric than that of PSNRM that depend on the hue and the noise.</p><p>However images with comparatively close energies of the seams, the comparison of seam carved and JPEG2000 is reversed. In <xref ref-type="fig" rid="fig1">Figure 1</xref>3, seam carving has removed seams from the objects thereby changing the geometry or shape of the object. However, the JPEG2000 removes detail geometry and hue contrast from the image while preserving overall image features.</p><p><xref ref-type="table" rid="table6">Table 6</xref> shows this shape or geometrical difference with HDM while the PSNRM is unable to measure this variation as PSNR is increased in seam carved image and decreased in JPEG2000 image without any coherence with the geometrical variation of the two images. In addition even though the HDM has increased in under the both schemes, the effect of lower HDM variation (25% in JPEG2000 compressed and 30% in seam carved) is an indication of better preservation of geometry in the JPEG2000 compressed images for images with lower seam energies.</p><p><xref ref-type="fig" rid="fig1">Figure 1</xref>4 shows the compression of images using seam carving at 70% and 90%. Here we can observe that when compression increases the seams from sky area has been removed dominantly. This affects the image geometry in a minimum level and thus the HDM values does not show considerable change. However, the</p><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> HDM and PSNR of I<sub>4</sub></title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Compression</th><th align="center" valign="middle"  colspan="2"  >Seam Carving</th><th align="center" valign="middle"  colspan="2"  >JPEG2000</th></tr></thead><tr><td align="center" valign="middle" >HDM</td><td align="center" valign="middle" >PSNR</td><td align="center" valign="middle" >HDM</td><td align="center" valign="middle" >PSNR</td></tr><tr><td align="center" valign="middle" >90%</td><td align="center" valign="middle" >37.1812</td><td align="center" valign="middle" >6.4422</td><td align="center" valign="middle" >37.2640</td><td align="center" valign="middle" >25.5595</td></tr><tr><td align="center" valign="middle" >70%</td><td align="center" valign="middle" >37.1015</td><td align="center" valign="middle" >12.5210</td><td align="center" valign="middle" >31.7846</td><td align="center" valign="middle" >29.5958</td></tr></tbody></table></table-wrap><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> HDM and PSNR of seam carved Veg and I<sub>4</sub></title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Compression</th><th align="center" valign="middle"  colspan="2"  >veg</th><th align="center" valign="middle"  colspan="2"  >I<sub>4</sub></th></tr></thead><tr><td align="center" valign="middle" >HDM</td><td align="center" valign="middle" >PSNR</td><td align="center" valign="middle" >HDM</td><td align="center" valign="middle" >PSNR</td></tr><tr><td align="center" valign="middle" >90%</td><td align="center" valign="middle" >30.3892</td><td align="center" valign="middle" >9.9555</td><td align="center" valign="middle" >37.1812</td><td align="center" valign="middle" >6.4422</td></tr><tr><td align="center" valign="middle" >70%</td><td align="center" valign="middle" >29.1887</td><td align="center" valign="middle" >10.3333</td><td align="center" valign="middle" >37.1015</td><td align="center" valign="middle" >12.521</td></tr></tbody></table></table-wrap><table-wrap id="table6" ><label><xref ref-type="table" rid="table6">Table 6</xref></label><caption><title> HDM and PSNR of I<sub>1</sub></title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Compression</th><th align="center" valign="middle"  colspan="2"  >Seam Carving</th><th align="center" valign="middle"  colspan="2"  >JPEG2000</th></tr></thead><tr><td align="center" valign="middle" >HDM</td><td align="center" valign="middle" >PSNR</td><td align="center" valign="middle" >HDM</td><td align="center" valign="middle" >PSNR</td></tr><tr><td align="center" valign="middle" >90%</td><td align="center" valign="middle" >42.435</td><td align="center" valign="middle" >14.377</td><td align="center" valign="middle" >28.7</td><td align="center" valign="middle" >23.811</td></tr><tr><td align="center" valign="middle" >70%</td><td align="center" valign="middle" >32.879</td><td align="center" valign="middle" >13.848</td><td align="center" valign="middle" >22.7</td><td align="center" valign="middle" >28.6135</td></tr></tbody></table></table-wrap><fig-group id="fig13"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>3</label><caption><title> Comparison of seam carved and JPEG 2000 compressed image I<sub>1</sub>.</title></caption><fig id ="fig13_1"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/64111x36.png"/></fig><fig id ="fig13_2"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/64111x37.png"/></fig></fig-group><p>PSNR shows a higher difference and can be seen from the <xref ref-type="table" rid="table4">Table 4</xref>.</p><p>Also in <xref ref-type="table" rid="table7">Table 7</xref> and <xref ref-type="table" rid="table8">Table 8</xref> it can be clearly seen that the PSNRM is not a good metric with the percentage compression as the variation of the values are inconsistence from image to image. This is another indication that HDM is a better metric than the PSNRM at higher compression percentages.</p><p>In <xref ref-type="fig" rid="fig1">Figure 1</xref>5, the images I<sub>1</sub> and I<sub>2</sub> has less variation in energy seams. Therefore when compressing at 70% and 90% seams containing geometrical features (mainly edges representing the object shape) has removed. Thus resulting a considerable change in shape. Both JPEG2000 and seam carving method can preserve the textual data.</p><p>Further we observed that the I2 PSNR and I1 PSNR are inconsistent and HDM maintained its consistency.</p><fig-group id="fig14"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>4</label><caption><title> Comparison of seam carved and JPEG 2000 compressed images arc, I<sub>3</sub>, Veg.</title></caption><fig id ="fig14_1"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/64111x38.png"/></fig></fig-group><fig-group id="fig15"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>5</label><caption><title> Comparison of seam carved and JPEG 2000 compressed images I<sub>1</sub>, I<sub>2</sub>.</title></caption><fig id ="fig15_1"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/64111x39.png"/></fig></fig-group><table-wrap id="table7" ><label><xref ref-type="table" rid="table7">Table 7</xref></label><caption><title> HDM and PSNR of seam carved Arc and Train</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Compression</th><th align="center" valign="middle"  colspan="2"  >Arc</th><th align="center" valign="middle"  colspan="2"  >Train</th></tr></thead><tr><td align="center" valign="middle" >HDM</td><td align="center" valign="middle" >PSNR</td><td align="center" valign="middle" >HDM</td><td align="center" valign="middle" >PSNR</td></tr><tr><td align="center" valign="middle" >90%</td><td align="center" valign="middle" >19.7472</td><td align="center" valign="middle" >6.2862</td><td align="center" valign="middle" >59.9495</td><td align="center" valign="middle" >10.2722</td></tr><tr><td align="center" valign="middle" >70%</td><td align="center" valign="middle" >19.4422</td><td align="center" valign="middle" >8.6968</td><td align="center" valign="middle" >59.7495</td><td align="center" valign="middle" >9.4208</td></tr></tbody></table></table-wrap><table-wrap id="table8" ><label><xref ref-type="table" rid="table8">Table 8</xref></label><caption><title> HDM and PSNR of seam carved I<sub>1</sub>, I<sub>2</sub></title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Compression</th><th align="center" valign="middle"  colspan="2"  >I<sub>1</sub></th><th align="center" valign="middle"  colspan="2"  >I<sub>2</sub></th></tr></thead><tr><td align="center" valign="middle" >HDM</td><td align="center" valign="middle" >PSNR</td><td align="center" valign="middle" >HDM</td><td align="center" valign="middle" >PSNR</td></tr><tr><td align="center" valign="middle" >90%</td><td align="center" valign="middle" >42.4345</td><td align="center" valign="middle" >14.3768</td><td align="center" valign="middle" >40.2480</td><td align="center" valign="middle" >9.6638</td></tr><tr><td align="center" valign="middle" >70%</td><td align="center" valign="middle" >32.8792</td><td align="center" valign="middle" >13.8482</td><td align="center" valign="middle" >34.8564</td><td align="center" valign="middle" >9.7073</td></tr></tbody></table></table-wrap><p>Based on these results we can conclude that the HDM is a better metric for representing geometrical or shape changes due to image compression techniques at compression percentages above 70%.</p></sec><sec id="s5"><title>Cite this paper</title><p>S. Fernando,R. Wijesiriwardana, (2016) Analysis of Wavelet Compression and Seam Carving Using the Hausdorf Distance. Journal of Computer and Communications,04,35-45. doi: 10.4236/jcc.2016.43006</p></sec></body><back><ref-list><title>References</title><ref id="scirp.64111-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Taylor, C. and Dey, S. (2001) Adaptive Image Compression for Wireless Multimedia Communication. ICC.</mixed-citation></ref><ref id="scirp.64111-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Lee, D.-G. and Dey, S. (2002) Adaptive and Energy Efficient Wavelet Image Compression for Mobile Multimedia Data Services. ICC.</mixed-citation></ref><ref id="scirp.64111-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Li, Z.N. and Drew, M.S. (2005) Fundamentals of Multimedia. Pearson Education, New Jersey.</mixed-citation></ref><ref id="scirp.64111-ref4"><label>4</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Ahumada</surname><given-names> A.J. </given-names></name>,<etal>et al</etal>. (<year>1993</year>)<article-title>Computational Image Quality Metrics: A Review</article-title><source> SID Digest of Technical Papers</source><volume> 24</volume>,<fpage> 305</fpage>-<lpage>308</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.64111-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Jayant, N., Johnston, J. and Safranek, R. (1993) Signal Compression Based on Models of Human Perception. Proc. IEEE, 81, 1385-1421. http://dx.doi.org/10.1109/5.241504</mixed-citation></ref><ref id="scirp.64111-ref6"><label>6</label><mixed-citation publication-type="book" xlink:type="simple">Daly, S. (1993) The Visible Differences Predictor: An Algorithm for the Assessment of Image Fidelity. In: Watson, A.B., Ed., Digital Images and Human Vision, MIT Press, Cambridge, MA, 179-206.</mixed-citation></ref><ref id="scirp.64111-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Eskicioglu, A.M. and Fisher, P.S. (1993) A Survey of Quality Measures for Grey Scale Image Compression. In: Proc. NASA Space Earth Science Data Compression Workshop, 49-61.</mixed-citation></ref><ref id="scirp.64111-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Fernando, S. and Wijesiriwardana, R. (2014) Selection of Wavelet Compression or Seam Carving Technique Based on Image Type. In: Proc. of Int. Conf. on Indu and Inf. Systems.</mixed-citation></ref><ref id="scirp.64111-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Huttenlocher, D.P., Klanderman, G.A. and Rucklidge, W.J. (1993) Comparing Images Using Hausdorf Distance. IEEE Transactions on Pattern Recognition and Machine Intelligence, 15, No. 9.</mixed-citation></ref><ref id="scirp.64111-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Goswami, J.C., Noble, B. and Chan, A.K. (1999) Fundamentals of Wavelets. John Wiley, New York.</mixed-citation></ref><ref id="scirp.64111-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Gonzales, R.C., et al. (2009) Digital Image Processing Using MATLAB. 2nd Edition, Pearson Education.</mixed-citation></ref><ref id="scirp.64111-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Skodras, A., Christopoulos, C. and Ebrahimi, T. (2001) The JPEG 2000 Still Image Compression Standard. IEEE Signal Processing Magazine. http://dx.doi.org/10.1109/79.952804</mixed-citation></ref><ref id="scirp.64111-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Avidan, S. and Shamir, A. (2007) ACM Transactions on Graphics (TOG). Proceedings of ACM SIGGRAPH.</mixed-citation></ref><ref id="scirp.64111-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Kabir, M. (2013) Image Compression Using Lifting Based Wavelet Transform Coupled with SPIHT Algorithm. In: Proceedings of the Int. Conf. on Informatics, Electronics and Vision. http://dx.doi.org/10.1109/iciev.2013.6572638</mixed-citation></ref><ref id="scirp.64111-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Mallet, S.G. (1989) A Theory for Multiresolution Signal Decomposition: The Wavelet Representation. IEEE Trans. Pattern Annal. Machine Intell, 11, 674-693. http://dx.doi.org/10.1109/34.192463</mixed-citation></ref><ref id="scirp.64111-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Chandler, D.M. and Hemami, S. (2002) Additivity Models for Suprathreshold Distortion in Quantized Wavelet Coded Images. Human Vision and Electronic Imaging Conference, San Jose, CA, USA, SPIE Vol. 4662, May, 105-118.  
http://dx.doi.org/10.1117/12.469507</mixed-citation></ref><ref id="scirp.64111-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Kumari, S. and Vijay, R. (2012) Image Quality Estimation by Entropy and Redundancy Calculation for Various Wavelet Families. International Journal of Computer Information Systems and Industrial Management Applications, 4, 27-34.</mixed-citation></ref><ref id="scirp.64111-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Moivre, A. (2010) Image Quality Metrics: PSNR vs SSIM. Proceedings of the International Conference on Pattern Recognition.</mixed-citation></ref></ref-list></back></article>