TubeTK/Developers FAQ

From KitwarePublic
< TubeTK
Revision as of 14:53, 9 May 2010 by Aylward (talk | contribs) (Created page with ' = Use Compression = ITK, regretfully, doesn't write compressed images by default. You must add one line to your code, to write compressed images: typename ImageWriterTyp…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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