X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkImageConvert.cxx;h=64bcfe180a32a50f9f8759341e6e63d0d1b3efba;hb=738107919dc9a056d679e75be0760e3eeae3dd4a;hp=00944972943223063bf35658c0f5c767850ef591;hpb=1e034c70105f0926939acaaa27ddb46e904ae8bf;p=clitk.git diff --git a/tools/clitkImageConvert.cxx b/tools/clitkImageConvert.cxx index 0094497..64bcfe1 100644 --- a/tools/clitkImageConvert.cxx +++ b/tools/clitkImageConvert.cxx @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ #ifndef CLITKIMAGECONVERT_CXX #define CLITKIMAGECONVERT_CXX /** @@ -56,10 +56,11 @@ int main(int argc, char * argv[]) filter->SetInputFilenames(l); filter->SetIOVerbose(args_info.verbose_flag); filter->SetOutputFilename(args_info.output_arg); + filter->EnableWriteCompression(args_info.compression_flag); if (args_info.type_given) filter->SetOutputPixelType(args_info.type_arg); // Go ! - filter->Update(); + CLITK_TRY_CATCH_EXIT(filter->Update()); // this is the end my friend return 0;