X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkImageConvert.cxx;h=297b63711f6c107f389ea487b9049221582a4b44;hb=9f95f4156c394d9181f5411a0db8ffbaef4bff44;hp=fe1df858086fff2a347eb99d16a004d53c3b5e41;hpb=0083c3fb2c66812489631c7551709d121de51625;p=clitk.git diff --git a/tools/clitkImageConvert.cxx b/tools/clitkImageConvert.cxx index fe1df85..297b637 100644 --- a/tools/clitkImageConvert.cxx +++ b/tools/clitkImageConvert.cxx @@ -1,3 +1,20 @@ +/*========================================================================= + Program: vv http://www.creatis.insa-lyon.fr/rio/vv + + Authors belong to: + - University of LYON http://www.universite-lyon.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 + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the copyright notices for more information. + + It is distributed under dual licence + + - 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 /** @@ -14,7 +31,8 @@ #include "clitkImageConvertGenericFilter.h" //-------------------------------------------------------------------= -int main(int argc, char * argv[]) { +int main(int argc, char * argv[]) +{ // init command line GGO(clitkImageConvert, args_info); @@ -31,19 +49,20 @@ int main(int argc, char * argv[]) { if (l.size() < 1) { std::cerr << "Error, you should give at least one --input option or one image filename on the commande line." << std::endl; exit(0); - } + } // Create filter clitk::ImageConvertGenericFilter::Pointer filter = clitk::ImageConvertGenericFilter::New(); 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(); + filter->Update(); - // this is the end my friend + // this is the end my friend return 0; } //-------------------------------------------------------------------=