- About this Journal ·
- Abstracting and Indexing ·
- Aims and Scope ·
- Article Processing Charges ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Recently Accepted Articles ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Subscription Information ·
- Table of Contents
Computational Intelligence and Neuroscience
Volume 2012 (2012), Article ID 541890, 8 pages
Medical Image Compression Based on Vector Quantization with Variable Block Sizes in Wavelet Domain
1Software College, Northeastern University, Shenyang 110819, China
2Key Laboratory of Medical Image Computing, Ministry of Education, Shenyang 110819, China
3Department of Radiology, Chinese PLA General Hospital, Shenyang 110015, China
Received 7 April 2012; Revised 1 August 2012; Accepted 17 August 2012
Academic Editor: Yen-Wei Chen
Copyright © 2012 Huiyan Jiang et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
An optimized medical image compression algorithm based on wavelet transform and improved vector quantization is introduced. The goal of the proposed method is to maintain the diagnostic-related information of the medical image at a high compression ratio. Wavelet transformation was first applied to the image. For the lowest-frequency subband of wavelet coefficients, a lossless compression method was exploited; for each of the high-frequency subbands, an optimized vector quantization with variable block size was implemented. In the novel vector quantization method, local fractal dimension (LFD) was used to analyze the local complexity of each wavelet coefficients, subband. Then an optimal quadtree method was employed to partition each wavelet coefficients, subband into several sizes of subblocks. After that, a modified K-means approach which is based on energy function was used in the codebook training phase. At last, vector quantization coding was implemented in different types of sub-blocks. In order to verify the effectiveness of the proposed algorithm, JPEG, JPEG2000, and fractal coding approach were chosen as contrast algorithms. Experimental results show that the proposed method can improve the compression performance and can achieve a balance between the compression ratio and the image visual quality.
With the rapid development of modern medical industry, medical images play an important role in accurate diagnosis by physicians. However, the large amount of images put forward a high demand on the capacity of the storage devices. Besides, telemedicine is a development trend of medical industry, while narrow transmission bandwidth limits the development of this project. To solve the problems mentioned above, a large number of researches have been carried out into medical image compression.
Medical image compression approaches can simply be divided into two kinds: lossless compression and lossy compression. Lossless compression can reconstruct the original image completely identical. Lossy compression takes advantage of the human weak psychovisual effects to optimize compression results but loses certain image information . Lossless coding method like them Huffman coding , LZW , arithmetic coding , and some other improved methods  can code an image and decode it with perfect result. However, such methods can only obtain a low compression ratio around 1 to 4; a higher compression ratio is hard to obtain. Although physicians and scientists prefer to work with uncorrupted data, the modest compression offered by lossless coding is often insufficient for either transmission or storage purpose. In these cases, a lossy compression method that preserves the diagnostic information is needed. There are lots of lossy image-coding methods, such as predictive coding , discrete cosine transformation (DCT) coding , fractal-based coding , wavelet-based coding [9, 10], vector quantization (VQ) method [11, 12], and some other methods. Predictive coding approach can mostly reduce the relevance of pixels in time and space domain. This kind of method can get a good visual quality for decoded image, but its compression ratio is just ordinary. Wavelet-based methods are commonly used in image coding, which can analyze an image in different resolutions. DCT is easily implemented and widely used in image coding, and it can decode an image within short time, but the compression ratio is limited, or it may bring block effect to its decoded image. The fractal image coding possesses excellent visual quality and compression ratio. However, it has some limitations like exhaustive inherent coding time. There are some modified methods aiming at shortening the coding time of the fractal method, which can be found in . Artificial neural network (ANN)  method is a late-model image-coding method and is widely used, but the training of its samples is time consuming and the choice of the neural network model is vital in image coding. There are many kinds of image-coding algorithms relating to wavelet transform, like embedded zero-tree wavelet (EZW) , set partitioning in hierarchical trees (SPIHT) , and some other methods. Those methods have achieved great success in recent years. However, all of these methods could not provide a high compression ratio.
VQ is an efficient information source coding method. The principle of it is constructing a vector based on several scalar data group, so the vector quantization coding is superior to scalar quantization coding. LBG algorithm was named after its proposers Linde et al. and afterwards there were many other improved methods . This method can provide a high compression ratio and a simple decoding process. However, a serious problem in traditional VQ is edge degradation. To solve the problem, variable block-size image coding was introduced by Vaisey and Gersho : the technique obtained a satisfactory quality coding result at a high ratios. Variable block-size image coding is based on the traditional vector quantization. Rather than splitting the image into series of sub-blocks in uniform size like the traditional vector quantization algorithm, variable block-size coding segments the original image into several types of blocks. In the process, areas which present high complexity are divided into small blocks, while those of low complexity are divided into large blocks. The variable block coding method can achieve a high visual quality and a relatively high compression ratio. Related works on the vector quantization of variable block have been reported by Yamanaka , which performs the variable block coding in the wavelet domain. Besides, Sasazaki et al.  used local fractal dimension as a metric to evaluate the complexity of a local area of image.
This paper introduces a novel approach for medical image compression based on wavelet transformation and vector quantization, which could provide an efficient compression performance with good visual quality. In our scheme, as most energy of the original image concentrates in the lowest-frequency subband, we decompose the original image into one low frequency subimage and several high-frequency subimages using wavelet transformation The low-frequency subimage is manipulated with the Huffman coding as its information is very sensitive to human’s eyes. Information in high-pass octave bands is always the details or edges. According to the human visual system (HVS), the loss of this part will not be perceived. So, we process the high-frequency subimages with our proposed vector quantization approach.
2. Outline of Our Proposed Scheme
In our scheme, an original image is first decomposed into multiresolution subimages through the wavelet transform; then, coefficients in the low-pass octave bands are encoded by the Huffman coding method while coefficients in each of the high-pass octave bands are encoded by the proposed novel vector quantization with variable block. The diagram of the proposed algorithm is shown in Figure 1.
The Huffman coding method is a common method in the field of image compression, so the introduction of this part is ignored. The optimized vector quantization with variable block size includes two steps. The first step is dividing the subimage into series of sub-blocks. The smooth areas of the coefficient matrix are divided into sub-blocks with a relatively large size, while those containing many details are divided into small-size sub-blocks. The metric of complexity is based on the value of local fractal dimension (LFD). In order to classify the local fractal dimension into predetermined classes, a method of discriminant analysis is applied . After that, an optimized quadtree (QT) approach is exploited to split the subimage into different sizes of blocks. The second step is quantization step. In the procedure, every codebook is made up of several sub-books. Each of the sub-books is trained by a modified K-means method. Then each of the subimages is encoded and decoded by the obtained codebook.
3. Medical Image Compression Based on Our Proposed Algorithm
3.1. Dividing High-Frequency Sub-Bands Into Variable-Size Blocks
Fractal dimension (FD) is a statistical quantity that gives an indication of how completely a fractal object appears to fill space. The value of FD has a strong relevance with the human judgment of surface roughness. In this sense, FD is an excellent tool in the field of image processing. The fractal dimension measurement cannot be derived exactly but must be estimated. In this paper, the blanket method  is used to estimate the local fractal dimension of images. In the technique, the subimage composed by high-pass coefficients can be viewed as a hilly terrain surface whose height from the normal ground is proportional to the value of the coefficients . Then all points at distance from the surface on both sides generate a blanket of thickness 2ε. The covering blanket is defined by its upper surface and . The surface area of the blanket is calculated repeatedly. The initial surface of the blanket, and is set by the values of coefficients of the subimage. Then, the surfaces of different are defined by
where is the distance between the pixel and pixel . In this formula, the points (m,n) are taken to be the four immediate neighbors of the point . The volume of the blanket is calculated from
while the surface area is measured as
On the other side, the area of a fractal surface behaves according to where is a constant for a specific image and D denotes the fractal dimension of an object.
Therefore, the FD value can be estimated from the linear fit of against with the blanket’s scale range from 1 to , and the slope should be equal to 2D. As to the estimation of local fractal dimension, the window size of the local area is always , , , or larger.
After the local complexity analysis of the subimage, a LFD mapping image is obtained. In the LFD mapping image, the pixel value of each point is the local fractal dimension of the corresponding pixel in the original subimage. According to the local fractal dimension, the image is divided into sub-blocks of different sizes. Because all the LFD values of the subimage are being decimal in the range of , it is impossible to split the subimage into so many types of blocks as the number of local fractal dimension shows. So we must classify the LFD mapping image into a certain number of classes. In the procedure, discriminant analysis  is applied. This technique can select a threshold adaptively, which will be used to divide an image into object and background.
In this paper, an optimized quadtree method is performed to decompose the subimage into several sizes of blocks. In order to understand the optimized quadtree method, the quadtree algorithm is first explained as follows.
Quadtree is a tree data structure which was named by Finkel and Bentley in 1974 . In quadtree decomposition, a judgment is first made to see whether a block can be represented by a single large block or it must be divided into four sub-blocks . In this paper, the classification result of local fractal dimension is seen as the judgment in the process of quadtree decomposition. The quadtree technique recursively subdivide the image into four quadrants or regions until the priority of the current block is homogenous.
During the process of variable block division, what sizes of block a pixel will be contained is not only depending on the priority of itself, but also on the priority of its surrounding pixels. So we can draw a conclusion that adjacency relationship is very important to each pixel. As for the whole sub-band, if we can find a good adjacency relationship for all pixels, the proportion of different sizes of image blocks will be changed and the quality of decoded subimage will also be changed. The purpose of the optimized quadtree is to select an excellent initial position to split the subimage, which will improve the compression ratio or boost the image quality at the same bit ratio.
In conventional quadtree method, the image is first divided into many initial sizes of sub-blocks from the first row to the last, from the first column to the last column, then the initial sub-blocks will continue to split. In the proposed technique, the initial split position will change regularly and then the best initial split position is chosen to process the initial division of the image. The novel method consists of two steps: statistics step and selection step. The schematic diagram of the optimized quadtree method is shown in Figure 2.
Assume that the size of the initial sub-block is denoted as ; the size of original subimage is , where is number of rows and is number of columns of the subimage. In the proposed method, there are two ways to change the position. The first way is fixing the left side of the initial segment position at the first column, while changing the upper side from 1 to line. The second way is changing the left side of the initial segment position from 1 to column, while fixing the upper side at the first line. In this way, there are types of positions. To ensure the integrity of the original subimage, the subimage will be extended in a certain way when changing the position. For instance, if the initial position is changing at the row direction and the original line of the split location is the kth line, the upper part of the image will be extended by rows and the lower part of the image will be extended by rows. A similar process will be performed when the changing position is towards the column direction. The extended part is simply a copy of the first line or the last line. In this way, the size of the original subimage is expanded, so at the decode side, the decoded subimage should be shrunk in a corresponding way.
At each of the initial positions, variable block division is performed. And in this process, the numbers of different sizes of image blocks will be counted and the structural similarity (SSIM) between the division image and the LFD mapping image will be calculated. After that, the best initial position, which will lead to the largest summation of the structure similarity (SSIM) and the number of the smallest sub-blocks, will be chosen as the final initial split position to segment the subimage. The structure similarity will be introduced in detail in the following part. Structure similarity is a numerical in the interval of , while the number of the highest-priority sub-blocks is approximate to . So the structure similarity should be multiplied by 105 before the operation mentioned above. The way to choose the best initial split position is defined by
Here, is summation of the structure similarity and number of the smallest-size sub-blocks. is the number of the highest-priority sub-blocks in the th initial split position.
The SSIM  is an objective image quality metric, which plays a variety of roles in image processing. It can be used to adjust image quality; in addition, it can be used to optimize algorithms and parameters settings of an image processing system. It is exploited to optimize algorithm in this paper.
The SSIM separates the task of similarity measurement into three comparisons: luminance, contrast and structure. The SSIM between two images is defined by
where α>0, β>0, and γ>0 are parameters used to adjust the relative importance of the three components. The formula indicates the luminance comparison of the two images. indicates the contrast comparison of the two images. indicates the structure comparison of the two images.
In order to simplify the expression, we set , which means that the luminance, contrast and structure comparisons of two different images will plays the same important role on the similarity measurement. The result of the specific form of SSIM is defined as follows: where , is the mean intensity of the image and : respectively, is the covariance between the image and y; and are constants, which are used to avoid instability when is very close to zero.
3.2. Generating a Codebook with Several Subcodebooks
K-means algorithm is an useful cluster algorithm, which divides data points in an I-dimensional space into clusters. Each cluster is parameterized by a vector , which indicates the center of each cluster. To start the K-means algorithm, the sets of are initialized in some way. Then, the algorithm will come into an iterative two-step phase: assignment and update step. In the assignment step, each data point is assigned to the nearest mean, and in the update step, the means are adjusted to match the sample means of the data points. When the algorithm reaches the predetermined maximum iterating time or the incremental error is below the predetermined threshold, the iteration is over.
One disadvantage of the K-means method is that it is very easy to fall into a local optimal result. The performance of it depends on the initial clusters seriously. So, a good initial codebook can efficiently reduce the iteration times in the process of training codebook and greatly improve the quality of the decoded image.
A common used method to initialize codebook is the Forgy and Random Partition . It randomly chooses observations from the data set and uses these data as the initial means while the Random Partition method first randomly assigns a cluster to each observation and then carries out an update step, thus computing the initial means to be the centroid of the cluster’s randomly assigned points. The Forgy method tends to spread the initial means out, while Random Partition places all of them close to the center of the data set. According to Hamerly and Elkan , the Random Partition method is generally preferable.
In this paper, we introduce a new method to set initial code vectors of the codebook, which is based on the energy of each sub-block. In the proposed method, we first calculate the energy of each sub-block. The energy function is defined as where is the number of pixels in the kth sub-block and is the gray level of the pixel . Then the energy of all of the sub-blocks is ordered, and the predetermined numbers of code vectors are taken out in equal interval. In the novel method, the image information is taken into account at the process of selecting the initial codebook.
4. Results and Discussions
To validate the performance of the proposed medical image compression algorithm, 30-pair liver CT digital imaging and communications in medicine (DICOM) images and brain CT DICOM images from a 64 row CT machine in a domestic large hospital were tested. The resolution of all the images is . In the process of wavelet transform, the biorthogonal wavelet basis of bior4.4 is chosen to transform the medical images. The results through different wavelet basis do not vary obviously. To ensure that most of the image energy is not lost, two-level wavelet decomposition is executed in the experiment.
After that, the LFD value of each high-frequency subband will be classified into three categories by the discriminant analysis approach, and then each sub-band is divided into , , and sub-blocks. In order to prove the effectiveness of proposed codebook training method, we will construct two kinds of codebooks for every sub-band. One kind of codebook is generated by K-means which is based on the random initial codebook, while the other one is obtained from the energy function initial codebook. Therefore, there are six sub-codebooks for one subimage, which are generated from the , , and sub-blocks of the image, respectively. In the subsequent part of the paper, the codebook constructed by the random initial codebook is called random codebook, and the codebook constructed by the energy function initial codebook is called energy codebook.
Liver CT images and brain CT images are used to test the proposed method. Figure 3 shows the reconstructed images of the different codebooks. Figures 3(a) and 3(d) are original images, Figures 3(b) and 3(e) are decoded images encoded by the energy codebook, and Figures 3(c) and 3(f) are decoded images encoded by the random codebook. The calculation of compression ratio should take both of the lossless part and lossy part into account. The compression ratio of lossless part is 1.5097, and the lossy part is 15.4451, so the real compression ratio is 9.7943. As for the head image, the compression ratio of lossless part is 1.3458, and that of the lossy part is 15.3250, the real compression ratio is 9.5363.
As shown in Figure 3, we can see that the qualities of two images decoded with different codebooks are almost the same when the compression ratio is fixed. However, the contour of the abdominal of the energy codebook is clearer than the random codebook. Besides, the SSIM value of the decoded image of energy codebook and the original image is higher than that of random codebook by 0.02. As to the head image, the fidelity of the two decoded images is lower than that of liver images, but it will not cause diagnosis failure. The contrast of the reconstructed image of the energy codebook is superior to that of the random codebook, and the SSIM between the energy decoded image and the original image is higher than that of random decoded image. The average SSIM values of 30 liver images and 30 head images decoded by the two kinds of codebook at different compression ratio are illustrated in Figures 4 and 5.
As shown in Figures 4 and 5, at low compression ratio, the performance of the energy codebook is similar to that of the random codebook. However, the performance of the energy codebook is obviously superior to the random codebook at high compression ratio.
In order to verify the effectiveness of our proposed algorithm, we compare our algorithm with several recent and conventional compression methods, such as DCT, Fisher’s fractal coding, JPEG, and JPEG2000. The corresponding contrast results are shown in Figure 6(a) for an original liver image; 6(b), 6(c), 6(d), 6(e), 6(f) are, respectively, the compression results of the DCT, JPEG, JPEG2000, Fisher’s fractal coding and our proposed algorithm at a compression ratio of 25.
As shown in Figure 6, when the compression ratio is up to 25, liver image compressed by all the above algorithms exist distortion phenomenon. However, the texture feature of the de-compressed image with our proposed algorithms is better than those in images with other methods.
We take peak signal-to-noise ratio (PSNR), mean squared error (MSE), the running time, and normalized cross-correlation (NCC) as four evaluation indexes to compare our proposed algorithm with the contrast methods. When the compression ratio is fixed to 25, the value of the above evaluation index is shown in Table 1.
As shown in Table 1, the PSNR and NCC values of our proposed algorithm are higher than the other four contrast methods, while the running time and MSE values of it’s lower than the other contrast methods.
In this paper, we propose an optimized medical image compression algorithm based on wavelet transform and vector quantization with variable block size. We, respectively, manipulate the low-frequency components and high-frequency components with the Huffman coding and improved VQ by the aids of wavelet transformation. Although the implement of the proposed algorithm is more complex than some traditional medical image compression algorithms, it can compress an image with good visual quality with high compression ratio. Besides, in contrast with some traditional and current medical image compression algorithm, the proposed algorithm owns better performance through the evaluation index of PSNR, running time, MSE, and NCC.
This research is supported by the National Nature Science Foundation of China (no. 61272176, no. 60973071) and the Fundamental Research Funds for the Central Universities (no. 110718001).
- T. H. Oh, H. S. Lim, and S. Y. Pang, “Medical image processing: from lossless to lossy compression,” in Proceedings of the IEEE Region 10 Conference (TENCON '05), pp. 1–6, November 2005.
- D. A. Huffman, “A method for the construction of minimum-redundancy codes,” Proceedings of the IRE, vol. 40, no. 9, pp. 1098–1101, 1952.
- T. A. Welch, “A technique for high performance data compression,” Computer, vol. 17, no. 6, pp. 8–19, 1984.
- G. G. Langdon and J. Rissanen, “Compression of black-white images with arithmetic coding,” IEEE Transactions on Communications Systems, vol. 29, no. 6, pp. 858–867, 1981.
- Y. W. Nijim, S. D. Stearns, and W. B. Mikhael, “Differentiation applied to lossless compression of medical images,” IEEE Transactions on Medical Imaging, vol. 15, no. 4, pp. 555–559, 1996.
- X. Wu and N. Memon, “Context-based, adaptive, lossless image coding,” IEEE Transactions on Communications, vol. 45, no. 4, pp. 437–444, 1997.
- D. Chikouche, R. Benzid, and M. Bentoumi, “Application of the DCT and arithmetic coding to medical image compression,” in Proceedings of the 3rd International Conference on Information and Communication Technologies: from Theory to Applications (ICTTA '08), pp. 1–5, April 2008.
- K. P. Wong, “Fractal image coding for emission tomographic image compression,” in Proceedings of the IEEE Nuclear Science Symposium Conference Record, vol. 3, pp. 1376–1379, November 2001.
- G. Tu, D. Liu, and C. Zhang, “A new compression algorithm for medical images using wavelet transform,” in Proceedings of the IEEE Networking, Sensing and Control (ICNSC '05), pp. 84–89, March 2005.
- D. B. H. Tay, “Integer wavelet transform for medical image compression,” in Proceedings of the 7th Australian and New Zealand Intelligent Information Systems Conference (ANZIIS '01), pp. 357–360, November 2001.
- A. Al-Fayadh, A. J. Hussain, P. Lisboa, D. Al-Jumeily, and M. Al-Jumaily, “A hybrid image compression method and its application to medical images,” in Proceedings of the 2nd International Conference on Developments in eSystems Engineering (DeSE '09), pp. 107–112, December 2009.
- K. B. Kim, S. Kim, and G. H. Kim, “Vector quantizer of medical image using wavelet transform and enhanced SOM algorithm,” Neural Computing and Applications, vol. 15, no. 3-4, pp. 245–251, 2006.
- N. M. H. Tayarani, A. P. Bennett, M. Beheshti, et al., “A novel initialization for quantum evolutionary algorithms based on spatial correlation in images for fractal image compression,” in Proceedings of the Soft Computing in Industrial Applications, pp. 317–325, 2011.
- D. Zümray, “Compression of medical images by using artificial neural networks,” in Proceedings of the Intelligent Computing, vol. 4113 of Lecture Notes in Computer Science, pp. 337–344, 2006.
- J. M. Shapiro, “Embedded image coding using zerotrees of wavelet coefficients,” IEEE Transactions on Signal Processing, vol. 41, no. 12, pp. 3445–3462, 1993.
- A. Said and W. A. Pearlman, “Image compression using the spatial-orientation tree,” in Proceedings of the IEEE International Symposium on Circuits and Systems, pp. 279–282, May 1993.
- Y. Linde, A. Buzo, and R. M. Gray, “An algorithm for vector quantizer design,” IEEE Transactions on Communications Systems, vol. 28, no. 1, pp. 84–95, 1980.
- J. Vaisey and A. Gersho, “Image compression with variable block size segmentation,” IEEE Transactions on Signal Processing, vol. 40, no. 8, pp. 2040–2060, 1992.
- O. Yamanaka, T. Yamaguchi, K. Sasazaki, J. Maeda, and Y. Suzuki, “Image compression using wavelet transform and vector quantization with variable block size,” in Proceedings of the IEEE Conference on Soft Computing on Industrial Applications (SMCia '08), pp. 359–364, June 2008.
- K. Sasazaki, S. Saga, J. Maeda, and Y. Suzuki, “Vector quantization of images with variable block size,” Applied Soft Computing Journal, vol. 8, no. 1, pp. 634–645, 2008.
- N. Otsu, “A threshold selection method from gray-level histograms,” IEEE Transactions on Systems, Man, and Cybernetics, vol. 9, no. 1, pp. 62–66, 1979.
- N. Sarkar and B. B. Chauduri, “Efficient differential box-counting approach to compute fractal dimension of image,” IEEE Transactions on Systems, Man and Cybernetics, vol. 24, no. 1, pp. 115–120, 1994.
- S. Peleg, J. Naor, R. Hartley, and D. Avnir, “Multiple resolution texture analysis and classification,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 6, no. 4, pp. 518–523, 1984.
- B. B. Mandelbrot, The Fractal Geometry of Nature, Library of Congress, 1983.
- R. A. Finkel and J. L. Bentley, “Quad trees a data structure for retrieval on composite keys,” Acta Informatica, vol. 4, no. 1, pp. 1–9, 1974.
- F. Keissarian, “A new quad-tree segmented image compression scheme using histogram analysis and pattern matching,” in Proceedings of the 2nd International Conference on Computer and Automation Engineering (ICCAE '10), pp. 694–698, February 2010.
- Z. Wang, A. C. Bovik, H. R. Sheikh, and E. P. Simoncelli, “Image quality assessment: from error visibility to structural similarity,” IEEE Transactions on Image Processing, vol. 13, no. 4, pp. 600–612, 2004.
- D. MacKay, “An example inference task: clustering,” in Information Theory, Inference and Learning Algorithms, pp. 284–292, Cambridge University Press, 2003.
- G. Hamerly and C. Elkan, “Alternatives to the k-means algorithm that find better clusterings,” in Proceedings of the 11th International Conference on Information and Knowledge Management (CIKM '02), pp. 600–607, November 2002.