BIC-MNI / libminc

libminc is the core library and API of the MINC toolkit
Other
19 stars 29 forks source link

ITK and libminc internal compression? #69

Closed gdevenyi closed 8 years ago

gdevenyi commented 8 years ago

I've found that using the ITK MINC tools (such as using ANTs built with MINC support) produce far larger files than using native MINC tools. Presumably this is because of compression, as if I use mincconvert to compress the files, they get very small.

Is there a way to convince the ITK tools to use MINC's internal compression?

gdevenyi commented 8 years ago

Just following up here, wondering if this support exists?

vfonov commented 8 years ago

It does: https://github.com/BIC-MNI/EZminc/blob/ITK4/tools/itk_resample.cpp#L497 also , to store floating point values into shorts or bytes with slice normalization: https://github.com/BIC-MNI/EZminc/blob/ITK4/tools/itk_resample.cpp#L505

gdevenyi commented 8 years ago

Thanks for the help here, I've implemented compression in ANTs image writer bits here https://github.com/stnava/ANTs/pull/305