Skip to content
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 (from EZminc) ignores space units #38

Open
mcvaneede opened this issue Jan 15, 2016 · 4 comments
Open

itk_convert (from EZminc) ignores space units #38

mcvaneede opened this issue Jan 15, 2016 · 4 comments

Comments

@mcvaneede
Copy link

This is not truly specific to the minc-toolkit, but issues for EZminc have been disabled, and I'd like to keep a record just in case.

When you run itk_convert on an nrrd file to convert it to MINC, it assumes that the space directions (which contain the resolution) are set in mm. There's a attribute in the nrrd header that specifies the space units which for instance can be set to inch. In that case, the resolution for the output MINC file will be incorrect.

@vfonov
Copy link
Member

vfonov commented Jan 15, 2016

Does ITK interpret these flags correctly?

@mcvaneede
Copy link
Author

I'm not sure, don't actually work with ITK all that often. What's the best way to check?

@vfonov
Copy link
Member

vfonov commented Jan 15, 2016

open in ITK-SNAP?
itk_convert doesn't know much about file formats - it reads and writes whatever ITK can read and write.

@mcvaneede
Copy link
Author

Ah, no, itksnap also ignores the space units. In that case it's just good to keep in mind that you might have to run minc_modify_header on the MINC output when the space units of the nrrd file are not given in mm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants