ITK  5.0.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:
34  ITK_DISALLOW_COPY_AND_ASSIGN(BinaryImageToLevelSetImageAdaptorBase);
35 
39  using Superclass = Object;
40 
43 
44  using InputImageType = TInputImage;
45  using InputImagePixelType = typename InputImageType::PixelType;
47  using InputImagePointer = typename InputImageType::Pointer;
50 
51  static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
52 
53  using LevelSetType = TLevelSet;
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 
77  ~BinaryImageToLevelSetImageAdaptorBase() override = default;
78 
81 };
82 }
83 
84 #endif // itkBinaryImageToLevelSetImageAdaptorBase_h
Light weight base class for most itk classes.
Define numeric traits for std::vector.
Derived class for the shi representation of level-set function.
~BinaryImageToLevelSetImageAdaptorBase() override=default
Base class for most ITK classes.
Definition: itkObject.h:60