ITK  5.4.0
Insight Toolkit
itkLevelSetImage.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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  * https://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 : public LevelSetBase<TInput, VDimension, TOutput, ImageBase<VDimension>>
40 {
41 public:
42  ITK_DISALLOW_COPY_AND_MOVE(LevelSetImage);
43 
45 
50 
52  itkOverrideGetNameOfClassMacro(LevelSetImage);
53 
54  static constexpr unsigned int Dimension = Superclass::Dimension;
55 
56  using typename Superclass::InputType;
57  using typename Superclass::OutputType;
58  using typename Superclass::OutputRealType;
59  using typename Superclass::GradientType;
60  using typename Superclass::HessianType;
61  using typename Superclass::LevelSetDataType;
64 
65  /* Set/Get the domain offset from input domain */
66  itkSetMacro(DomainOffset, OffsetType);
67  itkGetConstMacro(DomainOffset, OffsetType);
68 
69 protected:
70  LevelSetImage();
71 
72  ~LevelSetImage() override = default;
73 
74  using ScalingType = GradientType;
75  ScalingType m_NeighborhoodScales{};
76  OffsetType m_DomainOffset{};
77 
78  virtual bool
79  IsInsideDomain(const InputType & iP) const = 0;
80 
81 private:
82 };
83 
84 } // end namespace itk
85 
86 #ifndef ITK_MANUAL_INSTANTIATION
87 # include "itkLevelSetImage.hxx"
88 #endif
89 
90 #endif // itkLevelSetImage_h
itkLevelSetBase.h
itkObjectFactory.h
itk::LevelSetImage
Abstract class for a level-set function on one Image.
Definition: itkLevelSetImage.h:39
itk::ImageBase
Base class for templated image classes.
Definition: itkImageBase.h:114
itk::LevelSetBase
Abstract base class for the representation of a level-set function.
Definition: itkLevelSetBase.h:43
itk::SmartPointer< Self >
itk::LevelSetImage< Index< VDimension >, VDimension, int8_t >::ScalingType
GradientType ScalingType
Definition: itkLevelSetImage.h:74
itk::LevelSetImage< Index< VDimension >, VDimension, int8_t >::OffsetValueType
typename ImageBaseType::OffsetValueType OffsetValueType
Definition: itkLevelSetImage.h:63
itk::OffsetValueType
long OffsetValueType
Definition: itkIntTypes.h:94
itkIndex.h
itk::Offset
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image.
Definition: itkOffset.h:69
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:61
itk::LevelSetImage< Index< VDimension >, VDimension, int8_t >::OffsetType
typename ImageBaseType::OffsetType OffsetType
Definition: itkLevelSetImage.h:62
itk::GTest::TypedefsAndConstructors::Dimension2::Dimension
constexpr unsigned int Dimension
Definition: itkGTestTypedefsAndConstructors.h:44
itk::DataObject
Base class for all data objects in ITK.
Definition: itkDataObject.h:293
itkImageBase.h