New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
itk_convert MINC to NRRD metadata issues #11
Comments
The issue appears to be at https://github.com/BIC-MNI/EZminc/blob/ITK4/tools/itk_convert.cpp#L131-L134 where the casting is failing and the resulting converion is to "0". Determinined by: std::cerr << itk::ExposeMetaData<double_vecto>( dict, "acquisition:bvalues",bvalues) <<std::endl;
std::cerr << itk::ExposeMetaData<double_vector>( dict, "acquisition:direction_x",direction_x) <<std::endl;
std::cerr << itk::ExposeMetaData<double_vector>( dict, "acquisition:direction_y",direction_y) <<std::endl;
std::cerr << itk::ExposeMetaData<double_vector>( dict, "acquisition:direction_z",direction_z) <<std::endl; Results in
Taking a look at the metadata with --show-meta
Not sure yet where that comes from. I think this indicates that the MINCIO isn't converting properly? |
two more examples (on BIC) |
in .nrrd file , the acquisition:bvalues is empty, but in minc: |
Yup, sorry, I got that, the issue is that the code isn't properly converting/casting the minc-based metadata to a double_vector |
Probably in https://github.com/BIC-MNI/EZminc/blob/ITK4/tools/itk_convert.cpp#L32 |
Fixed:
|
Fixed by #12 |
Tracking BIC-MNI/minc-toolkit-v2#70
The text was updated successfully, but these errors were encountered: