X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkVFResample.cxx;h=4e14f8792cec27fd2de7f0e4d3efb4518a4942a6;hb=d24dbd466ba6aac0ed3e85f590ee1b933eb141d4;hp=7eaf09934ed0f8835791e242ea49983b0646e70d;hpb=0083c3fb2c66812489631c7551709d121de51625;p=clitk.git diff --git a/tools/clitkVFResample.cxx b/tools/clitkVFResample.cxx index 7eaf099..4e14f87 100644 --- a/tools/clitkVFResample.cxx +++ b/tools/clitkVFResample.cxx @@ -1,22 +1,34 @@ +/*========================================================================= + 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 CLITKVFRESAMPLE_CXX #define CLITKVFRESAMPLE_CXX -/** - ------------------------------------------------= - * @file clitkImageResample.cxx - * @author David Sarrut - * @date 23 Feb 2008 08:37:53 - ------------------------------------------------=*/ // clitk -#include "clitkImageResample_ggo.h" +#include "clitkVFResample_ggo.h" #include "clitkIO.h" #include "clitkVFResampleGenericFilter.h" //-------------------------------------------------------------------- -int main(int argc, char * argv[]) { +int main(int argc, char * argv[]) +{ // Init command line - GGO(clitkImageResample, args_info); + GGO(clitkVFResample, args_info); CLITK_INIT; // Read input image header to check image dimension @@ -66,10 +78,10 @@ int main(int argc, char * argv[]) { exit(0); } for(unsigned int i=0; i sigma; sigma.resize(args_info.gauss_given); @@ -111,12 +121,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 //--------------------------------------------------------------------