ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkLevelSetImage.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 itkLevelSetImage_h
20 #define itkLevelSetImage_h
21 
22 #include "itkLevelSetBase.h"
23 #include "itkObjectFactory.h"
24 #include "itkIndex.h"
25 #include "itkImageBase.h"
26 
27 namespace itk
28 {
38 template< typename TInput, unsigned int VDimension, typename TOutput >
39 class ITK_TEMPLATE_EXPORT LevelSetImage :
40  public LevelSetBase< TInput, VDimension, TOutput, ImageBase< VDimension > >
41 {
42 public:
43  ITK_DISALLOW_COPY_AND_ASSIGN(LevelSetImage);
44 
46 
51 
53  itkTypeMacro ( LevelSetImage, LevelSetBase );
54 
55  static constexpr unsigned int Dimension = Superclass::Dimension;
56 
57  using InputType = typename Superclass::InputType;
58  using OutputType = typename Superclass::OutputType;
59  using OutputRealType = typename Superclass::OutputRealType;
60  using GradientType = typename Superclass::GradientType;
61  using HessianType = typename Superclass::HessianType;
62  using LevelSetDataType = typename Superclass::LevelSetDataType;
65 
66  /* Set/Get the domain offset from input domain */
67  itkSetMacro( DomainOffset, OffsetType );
68  itkGetConstMacro( DomainOffset, OffsetType );
69 
70 protected:
71  LevelSetImage();
72 
73  ~LevelSetImage() override = default;
74 
78 
79  virtual bool IsInsideDomain( const InputType& iP ) const = 0;
80 
81 private:
82 
83 };
84 
85 } // end namespace itk
86 
87 #ifndef ITK_MANUAL_INSTANTIATION
88 #include "itkLevelSetImage.hxx"
89 #endif
90 
91 #endif // itkLevelSetImage_h
A templated class holding a M x N size Matrix.
Definition: itkMatrix.h:49
Represent a n-dimensional index in a n-dimensional image.
Definition: itkIndex.h:66
Abstract base class for the representation of a level-set function.
Abstract class for a level-set function on one Image.
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image...
Definition: itkOffset.h:67
ScalingType m_NeighborhoodScales
Base class for templated image classes.
Definition: itkImageBase.h:105
OffsetType m_DomainOffset
typename ImageBaseType::OffsetValueType OffsetValueType
Base class for most ITK classes.
Definition: itkObject.h:60
A templated class holding a n-Dimensional covariant vector.
signed long OffsetValueType
Definition: itkIntTypes.h:94
Base class for all data objects in ITK.