TubeTK/Developers FAQ
From KitwarePublic
< TubeTK
Jump to navigationJump to search
Use Compression
ITK, regretfully, doesn't write compressed images by default. You must add one line to your code, to write compressed images:
typename ImageWriterType::Pointer writer = ImageWriterType::New(); writer->SetFileName( outputVolume.c_str() ); writer->SetInput( cropFilter.GetOutput() ); writer->SetUseCompression( true ); // ADD THIS LINE