NOISECOMP - Function for denoising an image Copyright
% NOISECOMP - Function for denoising an image % % function cleanimage = noisecomp(image, k, nscale, mult, norient, softness) % % Parameters: % k - No of standard deviations of noise to reject 2-3 % nscale - No of filter scales to use (5-7) - the more scales used % the more low frequencies are covered % mult - multiplying factor between scales (2.5-3) % norient - No of orientations to use (6) % softness - degree of soft thresholding (0-hard 1-soft) % % For maximum processing speed the input image should have a size that % is a power of 2. % % The convolutions are done via the FFT. Many of the parameters relate % to the specification of the filters in the frequency plane. % The parameters are set within the file rather than being specified as % arguments because they rarely need to be changed - nor are they very % critical. % % Reference: % Peter Kovesi, "Phase Preserving Denoising of Images". % The Australian Pattern Recognition Society Conference: DICTA'99. % December 1999. Perth WA. pp 212-217 % http://www.cs.uwa.edu.au/pub/robvis/papers/pk/denoise.ps.gz. % % Copyright (c) 1998-2000 Peter Kovesi % School of Computer Science & Software Engineering % The University of Western Australia % http://www.csse.uwa.edu.au/ % % Permission is hereby granted, free of charge, to any person obtaining a copy % of this software and associated documentation files (the "Software"), to deal % in the Software without restriction, subject to the following conditions: % % The above copyright notice and this permission notice shall be included in % all copies or substantial portions of the Software. % % The Software is provided "as is", without warranty of any kind. % September 1998 - original version % May 1999 - % May 2000 - modified to allow arbitrary size images