Closed tashrifbillah closed 4 years ago
Hi @tashrifbillah. I guess it comes from the file nrrdCrop(temp, normalized, &newSize_Min[0], &newSize_Max[0])
in dwi_normalize.cc
The input variable - normalized -I guess the reason for that error. To be more specifically it comes from normalized ->axis[ai].size
property where ai is checked in the loop for (ai=0; ai<normalized ->dim; ai++)
. Since it goes through a lot of processing before it comes to the crop function I guess there is no quick solution. The one thing worth trying is to replace nrrdCrop to
nrrdSimpleCrop(temp, normalized,&newSize_Min[0])
or
nrrdSimpleCrop(temp, normalized,&newSize_Max[0])
Another option to try is to resize (permute axis) the input dMRI image in Slicer and then run it with an already resized image.
I will take a closer look in free time. Please, let me know if one of those methods works.
Closing due to inactivity.
Hi @rmukh , on top of your head, can you tell where the bound [0,10] is coming from? In other words, is there a way to solve the error?
Error: