Hi, Jose, I have 2 questions on the kernel.
1). Is it gaussian kernel which is mentioned in the paper of Buades. As far as i know, the one in your code is not gaussian.
2). why you take these two steps ?
average = average + wmax*input2(i1,j1);
sweight = sweight + wmax;
I cannot find any ground in the original paper, but it does make my algorithm oscillate less. could you give me some idea, why you make them ?
I have a little error here [m n]=size(input); in NLmeansfilter.m:
??? Input argument 'input' is undefined.
Error in ==> C:\Documents and Settings\Iulia\Desktop\matlab\NLmeansfilter.m
On line 19 ==> [m n]=size(input);
I need help...Thanks!
22 Sep 2008
You are right Bi Yiming.
Sorry about that.
01 Sep 2008
i think it should be
31 Jul 2008
d = sum(sum(kernel.*(W1-W2).*(W1-W2)));
This line throws an error.
"Error using ==> times
Integers can only be combined with integers of the same class, or scalar doubles."
How do we rectify that?
31 Jul 2008
You have to use sigma, not 10*sigma
being signa the image noise standard deviation
14 Jul 2008
How to set the sigma for the algorithm.I chose 10*noisesigma, the result is very bad.
28 Nov 2007
Reza Farrahi Moghaddam
Only, please change the word "radio" to "size" (in the definitions of "t" and "f")
13 Aug 2007
16 Jul 2007
The original code was not optimized to easily understand the filter caracteristics. Now, I have already vectorized it to speed up the filter. New version is much faster but if you plan to use it rutinarily I suggest you to mex it.