X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkImageConvert.cxx;h=3a9beaf4a25406dbfd0d5ece95bf5b04d7a8db59;hb=677f9f9f55d5f4d2667013cacd01c9d80b2259f2;hp=00944972943223063bf35658c0f5c767850ef591;hpb=1e034c70105f0926939acaaa27ddb46e904ae8bf;p=clitk.git diff --git a/tools/clitkImageConvert.cxx b/tools/clitkImageConvert.cxx index 0094497..3a9beaf 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 /** @@ -40,14 +40,25 @@ int main(int argc, char * argv[]) // Get list of filenames std::vector l; - for(unsigned int i=0; iSetInputFilenames(l); filter->SetIOVerbose(args_info.verbose_flag); - filter->SetOutputFilename(args_info.output_arg); + filter->SetOutputFilename(output); + filter->SetVV(args_info.vv_flag); + 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;