From: tbaudier Date: Wed, 13 Feb 2019 08:45:53 +0000 (+0100) Subject: Change tab to spaces X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c6cfe978c3144fea4d6e3432d6f2fbd802956bd0;p=clitk.git Change tab to spaces Indent correctly --- diff --git a/tools/clitkMergeSequence.ggo b/tools/clitkMergeSequence.ggo index 179c03a..d23d6e7 100644 --- a/tools/clitkMergeSequence.ggo +++ b/tools/clitkMergeSequence.ggo @@ -2,11 +2,11 @@ #Author: Jef Vandemeulebroucke #Date : Tue 15 June 16.35 -package "clitk" -version "Read a series a nD images (unnamed inputs) and merge them to a (n+1)D image" +package "clitkMergeSequence" +version "Read a series of nD images (unnamed inputs) and merge them to a (n+1)D image" -option "config" - "Config file" string no -option "spacing" s "Spacing for the new dimension" double no default="1" -option "output" o "Output VF filename" string yes -option "verbose" v "Verbose" flag off +option "config" - "Config file" string no +option "spacing" s "Spacing for the new dimension" double no default="1" +option "output" o "Output filename" string yes +option "verbose" v "Verbose" flag off diff --git a/tools/clitkMergeSequenceGenericFilter.cxx b/tools/clitkMergeSequenceGenericFilter.cxx index 382749f..90f65a5 100644 --- a/tools/clitkMergeSequenceGenericFilter.cxx +++ b/tools/clitkMergeSequenceGenericFilter.cxx @@ -34,16 +34,15 @@ namespace clitk { //Get the image Dimension and PixelType int Dimension, Components; std::string PixelType; - + clitk::ReadImageDimensionAndPixelType(m_InputNames[0], Dimension, PixelType, Components); if(Dimension==2) UpdateWithDim<2>(PixelType, Components); else if(Dimension==3) UpdateWithDim<3>(PixelType, Components); - else - { - std::cout<<"Error, Only for 2 and 3 Dimensions!!!"< Pointer; typedef itk::SmartPointer ConstPointer; - + /** Method for creation through the object factory. */ itkNewMacro(Self); @@ -64,7 +64,7 @@ namespace clitk double m_Spacing; std::string m_OutputName; bool m_Verbose; - + }; diff --git a/tools/clitkMergeSequenceGenericFilter.txx b/tools/clitkMergeSequenceGenericFilter.txx index 9eac701..300c821 100644 --- a/tools/clitkMergeSequenceGenericFilter.txx +++ b/tools/clitkMergeSequenceGenericFilter.txx @@ -72,14 +72,14 @@ namespace clitk //Define the input and output image type typedef itk::Image InputImageType; typedef itk::Image OutputImageType; - + //Read the input image series typedef itk::ImageSeriesReader ImageReaderType; typename ImageReaderType::Pointer reader= ImageReaderType::New(); reader->SetFileNames(m_InputNames); reader->Update(); typename OutputImageType::Pointer image =reader->GetOutput(); - + //Set the spacing typename OutputImageType::SpacingType spacing=image->GetSpacing(); spacing[Dimension]=m_Spacing;