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:
38 public clitk::ImageToImageGenericFilter<SplitImageGenericFilter> {
43 SplitImageGenericFilter ();
46 typedef SplitImageGenericFilter Self;
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; }
57 //--------------------------------------------------------------------
58 // Main function called each time the filter is updated
59 template<class InputImageType>
60 void UpdateWithInputImageType();
63 template<unsigned int Dim> void InitializeImageType();
67 }; // end class SplitImageGenericFilter
68 //--------------------------------------------------------------------
71 //--------------------------------------------------------------------
73 #endif //#define clitkSplitImageGenericFilter_H