Thanks for sharing this tool! works very well and fast, but i'm experiencing some problems:
I'm trying to filter a 3D MRI volume of size 227x227x147. Depending on the value of 'rho' I use I get a variable number of slices in the third dimension that are all 'NaN'. The bigger rho, the more NaN slices are in the output image volume. For every value of T used the number of NaN-slices accumulates, so that after several timesteps the whole image volume consists of NaNs.
What could be the reason for the NaNs in the output?
My original image is single and normalized to a range of 0 to 1 and does not contain any NaNs.
thx, Elmar
To solve the mex compilation error :
on OSX, add the following as line 3 of diffusion_scheme_3D_novel_getUpdate.c :
#include "string.h"
and re-run the mex script
Compliments for this excellent code
I experience the same problem as Anthony Kilburg:
diffusion_scheme_3D_novel_getUpdate.c:126: warning: incompatible implicit declaration of built-in function 'memcpy'
Probably due to OS X or my compiler? (gcc-4.2)
Google 'says' I have to include <String.h>, but this does not seems to solve it.
Dirk,
Thanks for sharing, your profession in matlab is very impressive. the package is really nonlinear anisotropic diffusion, not only coherence diffusion, so I strongly suggest changing the name. I found a problem in functions2D/EigenVectors2D.m the eigenvectors v1 v2 corresponds to mu2 and mu1, please check it, it can be a serious bug.
Comment only