ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkLevelSetDomainPartitionImage.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 #ifndef itkLevelSetDomainPartitionImage_h
19 #define itkLevelSetDomainPartitionImage_h
20 
23 
24 namespace itk
25 {
31 template< typename TImage >
32 class ITK_TEMPLATE_EXPORT LevelSetDomainPartitionImage : public LevelSetDomainPartitionBase< TImage >
33 {
34 public:
35  ITK_DISALLOW_COPY_AND_ASSIGN(LevelSetDomainPartitionImage);
36 
41 
42  static constexpr unsigned int ImageDimension = TImage::ImageDimension;
43 
45  itkNewMacro(Self);
46 
48 
49  using ImageType = TImage;
50  using ImagePointer = typename ImageType::Pointer;
51  using ImageConstPointer = typename ImageType::ConstPointer;
52  using PixelType = typename ImageType::PixelType;
54  using SizeType = typename ImageType::SizeType;
56  using SpacingType = typename ImageType::SpacingType;
57  using IndexType = typename ImageType::IndexType;
59  using PointType = typename ImageType::PointType;
60 
61  using IdentifierListType = typename Superclass::IdentifierListType;
62 
74 
75  using LevelSetDomainRegionVectorType = std::vector< RegionType >;
76 
79  itkSetConstObjectMacro( Image, ImageType );
80  itkGetConstObjectMacro(Image, ImageType );
82 
84  itkGetModifiableObjectMacro(ListDomain, ListImageType );
85 
86  void SetLevelSetDomainRegionVector( const LevelSetDomainRegionVectorType& domain );
87  const LevelSetDomainRegionVectorType& GetLevelSetDomainRegionVector() const;
88 
91  void PopulateListDomain() override;
92 
93 protected:
94  LevelSetDomainPartitionImage() = default;
95  ~LevelSetDomainPartitionImage() override = default;
96 
99  void AllocateListDomain() override;
100 
104 };
105 } //end namespace itk
106 
107 #ifndef ITK_MANUAL_INSTANTIATION
108 #include "itkLevelSetDomainPartitionImage.hxx"
109 #endif
110 
111 #endif
typename SizeType::SizeValueType SizeValueType
LevelSetDomainRegionVectorType m_LevelSetDomainRegionVector
typename ImageType::SpacingType SpacingType
Light weight base class for most itk classes.
typename ImageType::ConstPointer ImageConstPointer
typename ListImageType::ConstPointer ListImageConstPointer
typename ListImageType::SizeType ListSizeType
unsigned long SizeValueType
Definition: itkIntTypes.h:83
typename ListIndexType::IndexValueType ListIndexValueType
typename ListImageType::IndexType ListIndexType
typename ListSizeType::SizeValueType ListSizeValueType
typename IndexType::IndexValueType IndexValueType
Helper class used to partition domain and efficiently compute overlap.
A multi-dimensional iterator templated over image type that walks pixels within a region and is speci...
signed long IndexValueType
Definition: itkIntTypes.h:90
typename Superclass::SpacingType SpacingType
Definition: itkImage.h:143
typename ListImageType::Pointer ListImagePointer
typename Superclass::IdentifierListType IdentifierListType
std::vector< RegionType > LevelSetDomainRegionVectorType
Helper class used to partition domain and efficiently compute overlap.
typename ListImageType::RegionType ListRegionType
typename ListImageType::SpacingType ListSpacingType
typename ListImageType::PointType ListPointType
Templated n-dimensional image class.
Definition: itkImage.h:75