View full-text article in PMC Sensors (Basel). 2023 Jan 26;23(3):1368. doi: 10.3390/s23031368 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2023 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 2: Basic soft thresholding operator (Version 1) Input: X˜1,⋯,X˜F,σ 1:X1←0,⋯,XF←0, W1←0,⋯,WF←0 2:for f=1,⋯,Fdo 3: for i=1,⋯,W−N do 4: for j=1,⋯,H−N do 5: R←getblock(X˜f,i,j,N) 6: {B1,v1,⋯,BF,vF}←HME(i,j,R,X˜1,⋯,X˜F) 7: {[B^1;⋯;B^F],γ}←wiener([B1;⋯;BF],σ) 8: for n=1,⋯,F do 9: {S,E}←insert(B^n,vn) 10: Xn←Xn+γS 11: Wn←Wn+γE 12: end for 13: end for 14: end for 15:end for 16:for f=1,⋯,Fdo 17: X^f←Xf/Wf 18:end for