ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkBinaryImageToLevelSetImageAdaptorBase.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 
19 #ifndef __itkBinaryImageToLevelSetImageAdaptorBase_h
20 #define __itkBinaryImageToLevelSetImageAdaptorBase_h
21 
22 #include "itkImage.h"
23 #include "itkObject.h"
24 
25 namespace itk
26 {
30 template< typename TInputImage, typename TLevelSet >
32 {
33 public:
37  typedef Object Superclass;
38 
41 
42  typedef TInputImage InputImageType;
43  typedef typename InputImageType::PixelType InputImagePixelType;
44  typedef typename InputImageType::IndexType InputImageIndexType;
45  typedef typename InputImageType::Pointer InputImagePointer;
46  typedef typename InputImageType::RegionType InputImageRegionType;
49 
50  itkStaticConstMacro ( ImageDimension, unsigned int,
51  InputImageType::ImageDimension );
52 
53  typedef TLevelSet LevelSetType;
55 
59  virtual void Initialize() = 0;
60 
62  itkGetModifiableObjectMacro(LevelSet, LevelSetType );
63 
65  itkSetObjectMacro( InputImage, InputImageType );
66  itkGetModifiableObjectMacro(InputImage, InputImageType );
68 
69 protected:
72  {
73  this->m_LevelSet = LevelSetType::New();
74  }
75 
78 
81 
82 private:
83  BinaryImageToLevelSetImageAdaptorBase( const Self& ); // purposely not implemented
84  void operator = ( const Self& ); // purposely not implemented
85 
86 };
87 }
88 
89 #endif // __itkBinaryImageToLevelSetImageAdaptorBase_h
Light weight base class for most itk classes.
Derived class for the shi representation of level-set function.
Define additional traits for native types such as int or float.
Base class for most ITK classes.
Definition: itkObject.h:57
NumericTraits< InputImagePixelType >::RealType InputPixelRealType