X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkImageExtractLine.cxx;h=bd7c97816e4a5e6fa1292b5832ce3af96bb16fc6;hb=c91bc7359270b60e51abdc42dddf0a35c11ea604;hp=4edc0133d6ee32d6da105deb582e929c3b472a89;hpb=eb2ea680811676c925bc37c6ddb2981f193fae8c;p=clitk.git diff --git a/tools/clitkImageExtractLine.cxx b/tools/clitkImageExtractLine.cxx index 4edc013..bd7c978 100644 --- a/tools/clitkImageExtractLine.cxx +++ b/tools/clitkImageExtractLine.cxx @@ -1,18 +1,22 @@ -/*------------------------------------------------------------------------- - - 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. - +/*========================================================================= + 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 above copyright notices for more information. - - -------------------------------------------------------------------------*/ + 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 CLITKIMAGEEXTRACTLINE_CXX #define CLITKIMAGEEXTRACTLINE_CXX - /** ------------------------------------------------- * @file clitkImageExtractLine.cxx @@ -24,10 +28,12 @@ #include "clitkImageExtractLine_ggo.h" #include "clitkIO.h" #include "clitkImageCommon.h" +#include "clitkCommon.h" #include //-------------------------------------------------------------------- -int main(int argc, char * argv[]) { +int main(int argc, char * argv[]) +{ // Init command line GGO(clitkImageExtractLine, args_info); @@ -37,7 +43,7 @@ int main(int argc, char * argv[]) { typedef float PixelType; const unsigned int Dimension=3; typedef itk::Image ImageType; - + // Check options if (args_info.firstIndex_given != Dimension) { std::cerr << "Please give " << Dimension << "values to --firstIndex option" << std::endl; @@ -59,7 +65,7 @@ int main(int argc, char * argv[]) { double length = 0.0; for(unsigned int i=0; i