From: eduardo.davila@creatis.insa-lyon.fr Date: Mon, 21 Oct 2024 15:33:56 +0000 (+0200) Subject: #3525 compress files in itk Images Write box X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7507f297dd35465fc4cf93d27429a736a54e55f2;p=bbtk.git #3525 compress files in itk Images Write box --- diff --git a/packages/itk/src/bbitkImageRegion.cxx b/packages/itk/src/bbitkImageRegion.cxx index 66277c9..5738cb3 100644 --- a/packages/itk/src/bbitkImageRegion.cxx +++ b/packages/itk/src/bbitkImageRegion.cxx @@ -112,7 +112,6 @@ namespace bbitk bbSetOutputOut ( itk::ImageRegion(I,S) ); } -} -// eo namespace +}// eo namespace #endif diff --git a/packages/itk/src/bbitkImageWriter.cxx b/packages/itk/src/bbitkImageWriter.cxx index f8d3b5c..dba1bc0 100644 --- a/packages/itk/src/bbitkImageWriter.cxx +++ b/packages/itk/src/bbitkImageWriter.cxx @@ -91,7 +91,8 @@ namespace bbitk typename itkWriterType::Pointer writer = itkWriterType::New(); writer->SetInput(bbGetInputIn().unsafe_get()); writer->SetFileName(bbGetInputFilename().c_str()); - + writer->SetUseCompression(true); + try { writer->Update(); } catch( std::exception & e ) { diff --git a/packages/itk/src/bbitkImageWriter.h b/packages/itk/src/bbitkImageWriter.h index f31dc87..31a3696 100644 --- a/packages/itk/src/bbitkImageWriter.h +++ b/packages/itk/src/bbitkImageWriter.h @@ -86,8 +86,8 @@ namespace bbitk //================================================================= -} -//namespace bbitk +}//namespace bbitk + #endif #endif // _USE_ITK_