Open access peer-reviewed chapter

Application to Medical Image Processing

Written By

Anthony Y. Aidoo, Gloria A. Botchway and Matilda A.S.A. Wilson

Reviewed: 22 January 2022 Published: 28 February 2022

DOI: 10.5772/intechopen.102819

From the Edited Volume

Recent Advances in Wavelet Transforms and Their Applications

Edited by Francisco Bulnes

Chapter metrics overview

284 Chapter Downloads

View Full Metrics

Abstract

Medical images are often corrupted by white noise, blurring and contrast defects. Consequently, important medical information may be degraded or completely masked. Advanced medical diagnostics and pathological analysis utilize information obtained from medical images. Consequently, the best techniques must be applied to capture, compress, store, retrieve and share these images. Recently, the wavelet transform technique has been applied to enhance and compress medical images. This review focuses on the trends of wavelet-based medical image processing techniques. A summary of the application of wavelets to enhance and compress medical images such as magnetic resonance imaging (MRI), computerized tomography (CT), positron emission tomography (PET), single photon emission computed tomography (SPECT), and X-ray is provided. Morphological techniques such as closing, thinning and pruning are combined with wavelets methods to extract the features from the medical images.

Keywords

1. Introduction

The goal of this chapter is to provide a review of the applications of wavelets to medical imaging. The focus will be on medical image denoising and compression. Advanced medical diagnostics utilize information obtained from technologies such as magnetic resonance imaging (MRI), computerized tomography (CT), positron emission tomography (PET), single photon emission computed tomography (SPECT), and X-ray [1, 2]. However, such images are corrupted by white noise, blurring and contrast defects. Consequently, important medical information may be degraded or completely masked. Recently, wavelet-based techniques have been applied to achieve superior image denoising and economical image compression.

1.1 Wavelet properties in medical imaging: multiresolution analysis

A multiresolution analysis is a decomposition of the Hilbert space H=L2R into a chain of closed subspaces Vj,jZ which form a sequence of successive approximation subspaces of H such that the following hold:

  1. VjVj+1 for all jZ

  2. j=Vj is dense in L2R and j=Vj=0.

  3. fxVjf2xVj+1 for all jZ

  4. fxVjfxkVj for all j,kZ

  5. Each subspace Vj is spanned by integer translates of a single function fx. That is, for any fL2R and any kZ;fxV0,fxkV0. All subspaces are therefore scaled versions of the central space V0.

  6. (6) There exists a function ψx, belonging to V0, such that the sequence ψxkkZ forms a Riesz basis or unconditional basis for V0. Using the result that an orthonormal basis can always be generated out of a given Riesz basis, Riesz basis can be replaced by orthonormal basis.

1.2 Wavelet properties in medical imaging: wavelet bases

One of the special qualities of wavelets which is exploited in medical image analysis is the ability to construct L2 bases which are simply dilations and translations of a single compactly supported function given by ψj,k=2j/2ψx/2jk where j,kZ. This enables any image function f to be represented by:

f=jZkZcj,kψj,kE1
Advertisement

2. Undecimated wavelet transform

Conventional methods for medical image enhancement have very limited versatility in application and their use could lead to the loss of important medical image features of interest. This could be highly fatal in medical imaging applications [3]. The undecimated discrete wavelet transform (UDWT) method is a wavelet transform algorithm without the downsampling operations, resulting in both the original signal and the approximation and detailed coefficients having same length at each level of decomposition. The basic algorithm of the conventional UDWT is that it applies the transform at each point of the image and saves the detailed coefficients and uses the approximation coefficients for the next level. The size of the coefficients array does not diminish from level to level. This decomposition operation is further iterated up to a higher level. Various denoising methods using the DWT provide robust computational methods in denoising digital medical images. The only issue with the DWT is that it is shift variant. This disadvantage can may be ameriorated by using the UDWT to achieve shift invariance.

Advertisement

3. Image enhancement: wavelets and medical image denoising

Medical images are usually corrupted by noise inherrent in the processes of acquisition, trasmission, and retrieval [4, 5]. In particular, medical images such as those obtained from MRI or X-rays are often complicated by random noise that occurs during the image acquisition stage [6]. Wavelet-based techniques overcome most of these limitations. The objective of enhancement is to remove the effects of signal degradation caused by the signal processing. Noise may be removed by smoothing the signal by subjecting it to a low-pass filter. Sharpening to remove blur is used to identify more detailed features by applying a high-pass filter.

3.1 Wavelets methods

With its inherrent properties of multiresolution structure, application of wavelets to medical images converts the noisy image in the time domain into the wavelet transform domain. Subsequently, essential image detail information is compressed into large coefficients that are retained at different resolution scales. The small coefficients represent the noise in the image as well as any redundant information. In medical image analysis, the boundary line between “large” and “small” coefficients is crucial since it determines whether the noise is significantly removed in addition to crucial detail being preserved.

3.2 Hybrid methods for medical image denoising

Spatial filters have the tendency of blurring images since the technique smoothens data in order to remove niose [7]. Tackling this problem by relying on wavelet transform alone sometimes does not satisfactorily address the image enhancement problem since wavelet tranform methods are plagued by oscillations, shift variance, aliasing and lack of directionality. Three methods that are combined with wavelets significantly eliminate the problems listed above the medical image enhancement outcomes considered here.

3.2.1 Total variation denoising

Total variation (TV) regularization is a deterministic method that minimizes the effect of discontinuities in image processing [8]. The TV technique is endowed with the power of preserving and even enhancing the edges. The use of TV for image denoising assumes that the observed image is made up of the sum of a piecewise smooth image and guassian noise.

A real valued function fx, representing a signal is sampled using the partition P=<x0<x1<<xnnN of the interval x0x. The TV Tf of f over the interval is defined by:

Tfx=supinfxifxi1:<x0<x1<<xnnNE2

If limxTfx is finite, then f is of bounded variation. The TV of an L1 function f of several variables, in an open subset Ω of Rn, is defined as by:

Tfx=supΩfxdivϕxdx:ϕxCc1(ΩRn)ϕLΩ1E3

If f is a differentiable function defined on a bounded open domain ΩRn this reduces to:

Tfx=ΩfxdxE4

Definition 3.1The total variation of an image is defined by the duality: foruLloc1the total variation is given byTf=supdivϕdx:ϕCcΩRNϕx1xΩ.

This hybrid approach used here represents a noisy image in a simplified form by Eq. (1). The reconstruction of ux reduces to the optimization problem of minimizing the function

Eu=λ2uzL2Ω2+RuE5

(see for example [9]). Here, the parameter λ>0 and Ru is the regularization functional defined on the domain Ω. The disadvantage of this method is that despite removing noise adequately, it removes essential details from the image [8]. Since the efficiency of the method is controlled by the choice of the regularization functional, this is usually costly in medical imaging. The use of the TV of the image function below ameliorates this problem.

Ru=Tzu=ΩΔudxE6

It leads to sharper reconstruction of the original image by both removing the imbedded noise and better preservation of its edges [10, 11]. TV minimization scheme takes the geometric information of the original images into account, and this helps to preserve and sharpen the edges significantly [11].

3.2.2 The wavelet-total variation method

Proposition 1[12] LetK=pL2Ω:ΩpxuxdxTzuuL2Ω. IfTzis considered as a functional over the Hilbert spaceL2Ω, we haveTzu=pK:Ωpxuxdx=Tzu.

Proof 1IfpKandΩpxuxdx=TzuthenpTzu. Clearly for anyvL2Ωwe haveTzv=suppKΩpxuxdx.TzvΩpxvxdx=Tzu+Ωvxuxpxdx. Conversely, ifpTzu, then for anyt>0andvRN, withTztu=tTzusinceTzis positively one-homogeneous, we have:tTv=TzvTzu+Ωpxtvxuxdx. Dividing bytand lettingtleads toTzvΩpxvxdx. HencepK. On the other hand, lettingt0givesTzuΩpxuxdx.

The wavelet TV scheme represents the components of the function by orthogonal wavelet basis. The wavelet coefficients are then selected to achieve the goals of denoising and enhancement (Table 1). Figure 1 shows the results on the chest radiograph images.

MethodSensitivitySpecificityAccuracyPSNR
TV79.0%80.0%91.7%30.97%
TV and UDWT82.5%93.3%97.0%42.80%

Table 1.

TV vs TV and UDWT.

Figure 1.

(Column 1) Original chest images with nodules, (column 2) wavelet decomposition of images in column 1, (column 3) reconstructed images from the decomposed images.

The Python 2.7 code is given below."""A code to implement a wavelet denoising and morphological enhancement"""#import math#import numpy as npimport cv2import mat  ot as plt import pywtkernel=cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(11,11))img1=cv2.imread('JPCLN001.jpg') coeff1=pywt.wavedec2(img1, 'bior1.3')coeff11=pywt.waverec2(coeff1,'db2')erosion1=cv2.erode(coeff11,kernel,iterations=2)opening1=cv2.dil te(erosion1,kernel,iterations=3)oinv1=1-opening1fig 1=plt.figure()fig 1.suptitle('Original, Decomposed and Reconstructed CR Images with Nodules')plt.subplot(331),plt.imshow(img1),plt.title('a'),plt.xticks([]),plt.yt icks([])plt.subplot(332),plt.imshow(coeff1[0]),plt.title('d'),plt.xticks([]),p lt.yticks([])plt.subplot 333),plt.imshow(coeff11),plt.title('g'),plt.xticks([]),plt .yticks([])fig 1.savefig('1CR i ages with nodules, decomposed and reconstructed.png')fig 3=plt.figure()fig 3.suptitle('Decomposed nodule images eroded, opened and inversed')plt.subplot(331),plt.imshow(erosion1),plt.title('a'),plt.xticks([]),pl t.yticks([])plt.subplot(332),plt.imshow(opening1),plt.title('d'),plt.xticks([]),pl t.yticks([])plt.subpl t(333),plt.imshow(oinv1),plt.title('g'),plt.xticks([]),plt.yticks([])fig 3.savefig('1Decomposed nodule images eroded, opened and inversed.png')

3.2.3 Mathematical morphology

Mathematical morphology (MM) is a technique for extracting image components of interest Dilation and erosion are the two basic operations in mathematical mophology as well as thinning, opening, closing, and prunning. Wavelets combined with MM has recently been used to improve chest radiographs [13].

Definition 3.2Erosion and Dilation: LetEbe the Euclidean space, letA:E2be an image andB:201be a structuring element. The translation of a setCby a pointz=z1z2, denoted byCzis defined asCz=aa=c+z,cA. The erosion ofAbyB, denoted byAB, is expressed as

AB=zBzA,E7

ie. The set of all pixel locations z in the image plane where Bz is contained in A.

Definition 3.3The dilation ofAbyBis denoted byABand is expressed as

AB=zB̂zA,E8

whereB̂=ww=b, forbBis the reflection ofB.

This indicates the set of all pixel locations z in the image plane where the intersection of B̂ with A is not empty [14].

Erosion shrinks an image or a region A by a template or a structuring element B. Dilation expands an image or a region A by a template or a structuring element B. The dilation process consists of obtaining the reflection of B about its origin and then shifting this reflection by some displacement x.

Other effects can be obtained by applying erosion and dilation in a loop. Closing and opening are two examples of basic erosion and dilation combinations.

3.3 Opening and closing

Definition 3.4The opening ofAbyB, denoted byAB, is simply erosion ofAbyB, followed by dilation of the result byB, that is,

AB=ABB.E9

Visually, opening smoothens contours, breaks narrow isthmuses and eliminates small islands.

Definition 3.5The closing ofAbyB, denoted byAB, is a dilation followed by an erosion and is given as

AB=ABB.E10

Closing smoothens the contours, fills narrow gulfs and eliminates small holes. It is based on these operations that other operations are derived.

3.4 Thinning and pruning

The thinning operation is related to the hit-or-miss transform and it can be expressed in terms of it. The thinning operation is derived by translating the origin of the structuring element to each possible pixel position in the image and comparing it with the underlying image pixels at each such position. Pruning is a post-processing technique that follows thinning. It removes parasitic components known as spurs which are unwanted branches, from the thinned image. There are specific structuring elements used for pruning.

Combined with MM wavelets can be used to decompose a fingerprint image in order to extract the areas with details. The results of this approach is shown in Figures 2 and 3.

Figure 2.

Wavelet analysis and synthesis of image: (a) original image, (b) decomposed image, (c) reconstructed image.

Figure 3.

Morphological operations applied to fingerprint images: (a) original image, (b) binary closing of image, (c) thinned image, (d) prunned image.

Algorithm 1

Denoising the fingerprint image

1. Load fingerprint image.

2. Convert the greyscale fingerprint image into a binary image.

3. Decompose image using wavelets into detailed and approximated parts.

4. Reconstruct the fingerprint image using the detailed parts of the decomposed image and set the approximated part to zero.

Algorithm 2

Processing the image for feature extraction

1. Load denoised image.

2. Perform a binary closing on the image to close all insignificant holes in the image.

3. Thin image.

4. Prune the result to remove spurs and spikes.

5. Extract features.

3.4.1 Wavelet K-SVD approach

The wavelet tranform technique (for image denoising) has several advantages such as sparsity, multiresolution structure, and similarity with human vision. Recently, it has been combined with K-Singular Valued Decomposition (K-SVD) algorithm, and an adaptive learning over the wavelet decomposition of a noisy medical image has resulted [15].

Advertisement

4. Wavelet based compression methods for storing medical images

In medical image compression, a mathematical transform is applied to the digital data. This is intended to compress the data for efficient storage, transmission, and retrieval. Compression involves coding and image approximation and helps to reduce the quantity of information, improve the transmission rate and reduce the size of the equipment and storage space required. Data compression requires the choice of a transform such that as many of the transformed data as possible vanish. The ability to localize basis functions in wavelet applications make them suitable for compression. In addition to this property of wavelets, a wavelet decomposition of an image capitalizes on its multiresolution structure, a recursive method to compute the wavelet transform of an image [16]. The three components of the wavelet tranform based image are image decomposition, quantization, and decompression.

4.1 Hybrid methods for medical image compression

The DWT combined with vector quantization methods have recently be shown to achieve superior results in medical image compression than wavelet alone technique. For example, Ammah and Owusu [17] proposed an efficient medical hybrid image decompression technique for ultrasound and MRI images. The method consists of first preprocessing the image by noise removal. This is follwed by filtering the image using the DWT with hard thresholding. The image is subsequently vector quantized and then Huffman encoded. The inverse operations are then applied to obtain the decompressed image.

The metrics used to evaluate the efficiency of the compression methods are the compression ratio (CR) and the peak signal to noise ratio (PSNR) given by:

CR=IxyIxyE11

and

PSNR=20log10255RMSEE12

where the RMSE is the root mean squared error.

Using a new class of spline wavelet filters, more effective data compression techniques have been devised to compress massive quantities of medical image data leading to a more economical storage process and enhanced medical image quality when retrieved. Combined with other methods, the inherrent properties of wavelets such as sparsity and multiresolution structure produce superior medical image data compresssion results than the competition. CRs for three most used methods are is shown in Table 2.

MethodDWT (Haar) [17]DWT (dB) [17]DWT and MM
CR7.40%21.86%21.90%

Table 2.

Compression ratios.

Advertisement

5. Conclusion

Modern radiology techniques are essential in advanced medical diagnostics and pathological analysis [18]. Applications of the wavelet tranform for medical imaging techniques and current advances in research in this direction has been highlighted in this chapter. This includes the combination of the standard wavelet techniques with TV, MM and other methods.

Advertisement

Acknowledgments

Author Anthony Y. Aidoo acknowledges the support from the CSU-AAUP Faculty Research Fund 2021-22.

Advertisement

Classifications

2020 AMS Subject Classification: 68U10, 94A12, 28A99, 92C55, 65R10, 44A99.

References

  1. 1. Georgieva V, Petrov P, Zlatareva D. Medical image processing based on multidimensional wavelet transforms—Advantages and trends. AIP Conference Proceedings. 2021;2333:1-7
  2. 2. Ferroukhi M, Ouahabi A, Attari M, Habchi Y, Taleb-Ahmed A. Medical video coding based on 2nd-generation wavelets: Performance evaluation. Electronics. 2019;8:1-18. DOI: 10.3390/electronics8010088
  3. 3. Unaldi N, Temel S, Demerci S. Undecimated wavelet transform based contrast enhancement. International Journal of Computer, Electrical, Automation, Control and Information Engineering. 2013;7:1215-1218
  4. 4. Patil R, Bhosale S. Medical image denoising using wavelet transform and singular value decomposition. WEENTECH Proceedings in Energy. 2019;6(2):1-8
  5. 5. Chervyakov N, Lyakhov P, Nagornov N. Analysis of the quantization noise in discrete wavelet transform filters for 3D medical imaging. Applied Sciences. 2020;10(4):1223. DOI: 10.3390/app10041223
  6. 6. Quahabi A. Image denoising using wavelets: Application in medical imaging. Advances in Heuristic Signal Processing and Applications. Berlin, Heidelberg: Springer; 2013. pp. 287-313. DOI: 10.1007/978-3-642-37880-5-13
  7. 7. Raj P, Venkateswarlu T. Denoising medical images using dual tree complex wavelet transform. Procedia Technology. 2012;4:238-244. DOI: 10.1016/j.protcy.2012.05.036
  8. 8. Estrela VV, Megalhaes HA, Saotome O. Total variation applications in computer vision. In: Handbook of Research on Emerging Perspectives in Intelligent Pattern Recognition, Analysis, and Image Processing. Hershey, Pennsylvania: IGI Global; 2016. pp. 41-64
  9. 9. Wilson M, Hafron JB, Acquah AY, Aidoo. A total variation-undecimated wavelet approach to chest radiograph image enhancement. TELKOMNIKA. 2019;17(4):2116-2124
  10. 10. Vese L. A study in the bounded variation space of denoising-deblurring variational problem. Applied Mathematics and Optimization. 2001;44(2):131-161. DOI: 10.1007/s00245-001-0017-7
  11. 11. Starck J-L, Elad M, Donoho D. Redundant multiscale transforms and their applications for morphological component analysis. Advances in Imaging and Electron Physics. 2004;132
  12. 12. Chambolle A, Caselles V, Novaga M, Cremers D, Pock T. An introduction to total variation for image analysis. Theoretical Foundations and Numerical Methods for Sparse Recovery. 2010;9:263-340. DOI: 10.1515/9783110226157.263
  13. 13. Aidoo AY, Wilson M, Botchway GA. Chest radiograph image enhancement with wavelet. TELKOMNIKA. 2019;17(5):2587-2594. DOI: 10.12928/TELKOMNIKA.v17i5.11964
  14. 14. Bansal R, Sehgal P, Bedi P. Effective morphological extraction of true fingerprint minutiae based on the hit or miss transform. International Journal of Biometrics and Bioinformatics. 2020;4(2):71. DOI: 10.1.1.170.3632
  15. 15. Bnou K, Raghay S, Hakim A. A wavelet denoising approach based on unsupervised learning model. EURASIP Journal on Advances in Signal Processing. 2020;36:1-26
  16. 16. Schomer DF, Elekes AA, Hazle J, Huffman JC, Thompson SK, Chui CK, et al. Introduction to wavelet-based compression of medical images. Imaging and Therapeutic Technology. 1998;18(2):469-481
  17. 17. Ammah PNT, Owusu E. Robust medical image compression based on wavelet transform and vector quantization. Informatics in Medicine Unlocked. 2019;15:1-11
  18. 18. Khan SA, Khan A, Song O, Nazir M. Medical imaging fusion techniques: A survey benchmark analysis, open challenges and recommendations. Journal of Medical Imaging and Health Informatics. 2020;10(11):2523-2531. DOI: 10.1166/jmihi.2020.3222

Written By

Anthony Y. Aidoo, Gloria A. Botchway and Matilda A.S.A. Wilson

Reviewed: 22 January 2022 Published: 28 February 2022