Skip to main content
. 2026 Feb 15;26(4):1277. doi: 10.3390/s26041277
Algorithm 2: Target-Preserving Sparse DWT (TPS-DWT)
Input: RD map XRM×N; wavelet basis ψ; decomposition level L;
Output: Enhanced RD map X^.
  •   1:

    perform L-level 2D Discrete Wavelet Transform:

  •   2:

    {AL,DLH,DLV,DLD,,D1H,D1V,D1D}DWT(X,ψ);

  •   3:

    for l = 1 to L do 

  •   4:

          for each coefficient c in {DlH,DlV,DlD} do

  •   5:

                 Compute soft threshold;

  •   6:

                 c sign (c)max(|c|λ,0);

  •   7:

             if M indicates target region at coefficient c then 

  •   8:

                   Keep original coefficient;

  •   9:

                          cc;

  •   10:

             end

  •   11:

             Update detail coefficient with c;

  •   12:

          end

  •   13:

    end 

  •   14:

    Reconstruct enhanced RD map:

  •   15:

    X^IDWT(AL,DLH,DLV,DLD,);

  •   16:

    return X^