Open gdevenyi opened 9 years ago
yes, mincblob doesn't work when vector dimensions is not the fastest varying. That's why I wrote grid_proc
Where can I find grid_proc, I don't see it in minc-toolkit-v2
oops, I forgot - it still in my private repository. You can also use CreateJacobianDeterminantImage - it's part of ANTs , so it is built togethether with antsRegistration and supports minc reading/writing.
Thanks, I was aware of CreateJacobianDeterminantImage I just wasn't sure that it had been tested against .mnc deformations.
In the meantime I've solved my problem with a mincreshape
Followup: mincblob (on a mincreshaped image) and CreateJacobianDeterminantImage do not produce the same results. At least visually using register, so for now I'll stick to reshape/mincblob
As soon as I have a example I can share I'll follow up
Followup, the difference is the ANTs produces jacobians that are "1 centered" while mincblob produces jacobians that are "0 centered"
so, minccalc -express 'A[0]-1' would solve this problem?
Yes, if I take the CreateJacobianDeterminantImage file and do minccalc -express 'A[0]-1'
I get the mincblob map, except for some values on the edges of the image. The in-brain differences are numerical error.
maybe the easiest will be to add an option to CreateJacobianDeterminantImage to subtract 1.0 ?
Well, from my perspective, when I'm using jacobians, I usually have to add 1 to get what I want, so the current default is okay with me.
If you intend to use CreateJacobianDeterminantImage as a drop-in replacement, it will need an option of course.
A deformation grid from mincANTS in 1.0.04:
A deformation grid from ANTS in 1.9.10:
On the new grid files, mincblob fails: