1 /*-------------------------------------------------------------------------
3 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
4 l'Image). All rights reserved. See Doc/License.txt or
5 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
7 This software is distributed WITHOUT ANY WARRANTY; without even
8 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 PURPOSE. See the above copyright notices for more information.
11 -------------------------------------------------------------------------*/
13 #ifndef clitkSplitImageGenericFilter_H
14 #define clitkSplitImageGenericFilter_H
17 -------------------------------------------------------------------
18 * @file clitkSplitImageGenericFilter.h
19 * @author David Sarrut <David.Sarrut@creatis.insa-lyon.fr>
21 -------------------------------------------------------------------*/
24 #include "clitkCommon.h"
25 #include "clitkImageCommon.h"
26 #include "clitkImageToImageGenericFilter.h"
30 #include "itkImageIOBase.h"
31 #include "itkImageRegionIterator.h"
32 #include "itkImageRegionConstIterator.h"
36 //--------------------------------------------------------------------
37 class SplitImageGenericFilter : public clitk::ImageToImageGenericFilter {
42 SplitImageGenericFilter ();
45 typedef SplitImageGenericFilter Self;
46 typedef ImageToImageGenericFilter Superclass;
47 typedef itk::SmartPointer<Self> Pointer;
48 typedef itk::SmartPointer<const Self> ConstPointer;
54 void SetSplitDimension (int dim) { mSplitDimension = dim; }
55 void SetVerbose (const bool v) { m_Verbose = v; }
63 //--------------------------------------------------------------------
64 template<unsigned int Dim> void UpdateWithDim(std::string PixelType, int Components);
65 template<unsigned int Dim, class PixelType> void UpdateWithDimAndPixelType();
66 //--------------------------------------------------------------------
68 }; // end class SplitImageGenericFilter
69 //--------------------------------------------------------------------
72 //--------------------------------------------------------------------
74 #endif //#define clitkSplitImageGenericFilter_H