From 7507f297dd35465fc4cf93d27429a736a54e55f2 Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Mon, 21 Oct 2024 17:33:56 +0200 Subject: [PATCH] #3525 compress files in itk Images Write box --- packages/itk/src/bbitkImageRegion.cxx | 3 +-- packages/itk/src/bbitkImageWriter.cxx | 3 ++- packages/itk/src/bbitkImageWriter.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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_ -- 2.46.2