Skip to main content
. 2023 Mar 6;10(3):333. doi: 10.3390/bioengineering10030333
Algorithm 3: Proposed Image Compression
1: Apply the improved embedding to the medical image.
2: Perform the extraction operation.
3: Apply the hard threshold using
            yhardt=xt when absxt>T 
            yhardt=0,    when absxtT 
4: Perform the soft threshold using
            ysoftt=xtT when absxt>T 
            ysoftt=0,    when absxtT 
5: Find the entropy encoding h(s).
            hs=j=1qpsilog psi 
6: Determine the Shannon entropy M(C(b))).
7: Apply the wavelets based multi resolution analysis.
8: Define the Haar transform
Ik,  n=[k2n, k+12n]
9: Perform the dilation using
            x=2kzk+2xhk
10: Apply the wavelet operation using
            φx=2kzgk+2xgk
11: Perform filtering operations using orthogonal quadrature.
            hi=j=uj.hj+2i
            gi=j=uj.gj+2i
12: Apply the filters using bi-orthogonal quadrature.
13: Decompose the image using wavelets and apply the color conversion.
            YCbCr=0.30.60.10.20.30.50.50.40.1RGB
14: Find RGB using
            RGB=10.11.310.30.511.80.1YCbCr
15: Apply the lossless compression through
            YrVrUr=2G+R+B/4RGBG
            GRBr=YrVr+Ur/4G+VrG+Ur