This is a joke, isn't it? While you obviously don't know preallocation you know how to suppress the MLINT warning. Sorry, but this submission is totally useless, it is a script, it clears your workspace, it uses a double loop where a simple one-liner would work. Please remove.
This is a joke, isn't it? While you obviously don't know preallocation you know how to suppress the MLINT warning. Sorry, but this submission is totally useless, it is a script, it clears your workspace, it uses a double loop where a simple one-liner would work. Please remove.
1
06 Sep 2010
Separate Kernel in 1D kernels
Decompose an arbitrary N dimensional filtering kernel into 1D kernels, for faster filtering
Hi Dirk-Jan. Your code is excellent to be used. However, there is a small bug here, if you use the test code below:
for i = 1:20
v = [1; 2; 1] ;
h = [-1 0 1] ;
s = v*h ;
[K,KN,err] = SeparateKernel( s ) ;
err
end
Please check it.
5
12 Aug 2010
Separate Kernel in 1D kernels
Decompose an arbitrary N dimensional filtering kernel into 1D kernels, for faster filtering