users > [solved] uncompressed detached header reformatx output file
Showing 1-4 of 4 posts
Display:
Results per page:
Jun 27, 2018  06:06 AM | Hugo Trentesaux
[solved] uncompressed detached header reformatx output file
Is there a way to deactivate compression when running reformatx with a detached header nrrd file as output ('*.nhdr') ?

When I run `cmtk reformatx -o output.nhdr --floating floatingStack.nhdr fixedStack.nhdr affine.xform` it gives me as output a *.nhdr text file plus a *.tar.gz compressed binary file. I would like a *.nhdr with a *.raw or *.bin non-compressed binary file.
Jun 27, 2018  06:06 AM | Greg Jefferis
RE: uncompressed detached header reformatx output file
Torsten is best for this, but I think you can set an environment variable CMTK_WRITE_UNCOMPRESSED, something like:
CMTK_WRITE_UNCOMPRESSED=TRUE cmtk reformatx -o output.nhdr --floating floatingStack.nhdr fixedStack.nhdr affine.xform

Best,

Greg.
Jun 27, 2018  07:06 AM | Hugo Trentesaux
RE: uncompressed detached header reformatx output file
Thanks for your quick answer !
Jun 27, 2018  07:06 AM | Hugo Trentesaux
RE: uncompressed detached header reformatx output file
That was in the user manual !! My bad.
It is written:
export CMTK_WRITE_UNCOMPRESSED=1
As always, the final answer is "read the doc"...