X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkImageResample.cxx;h=a8545007bb5a91b8a0612e7e05a741ebb94d575d;hb=c1f9a7a372572718c10f3f1086692c3d507b41b5;hp=5e4f08f02bdf16bc9ad19ccdac81c7b4518721da;hpb=931a42358442f4ee4f314613c991c838d4b4e3b7;p=clitk.git diff --git a/tools/clitkImageResample.cxx b/tools/clitkImageResample.cxx index 5e4f08f..a854500 100644 --- a/tools/clitkImageResample.cxx +++ b/tools/clitkImageResample.cxx @@ -1,24 +1,22 @@ -/*------------------------------------------------------------------------- - -Program: clitk -Module: $RCSfile: clitkImageResample.cxx,v $ -Language: C++ -Date: $Date: 2010/01/06 13:31:57 $ -Version: $Revision: 1.1 $ - -Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de -l'Image). All rights reserved. See Doc/License.txt or -http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. - -This software is distributed WITHOUT ANY WARRANTY; without even -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -PURPOSE. See the above copyright notices for more information. - --------------------------------------------------------------------------*/ +/*========================================================================= + 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://oncora1.lyon.fnclcc.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 CLITKIMAGERESAMPLE_CXX #define CLITKIMAGERESAMPLE_CXX - /** ------------------------------------------------= * @file clitkImageResample.cxx @@ -32,7 +30,8 @@ PURPOSE. See the above copyright notices for more information. #include "clitkImageResampleGenericFilter.h" //-------------------------------------------------------------------- -int main(int argc, char * argv[]) { +int main(int argc, char * argv[]) +{ // Init command line GGO(clitkImageResample, args_info); @@ -85,10 +84,10 @@ int main(int argc, char * argv[]) { exit(0); } for(unsigned int i=0; i sigma; sigma.resize(args_info.gauss_given); @@ -130,12 +127,11 @@ int main(int argc, char * argv[]) { if (args_info.gauss_given) { if (args_info.gauss_given != dim) { if (args_info.gauss_given == 1) { - sigma.resize(dim); - for(unsigned int i=0; iSetGaussianSigma(sigma); filter->SetOutputFilename(args_info.output_arg); - - // Go ! + + // Go ! filter->Update(); - // this is the end my friend + // this is the end my friend return 0; }// end main //--------------------------------------------------------------------