ITK  4.13.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 
40 
41  itkStaticConstMacro(ImageDimension, unsigned int, TImage::ImageDimension);
42 
44  itkNewMacro(Self);
45 
47 
48  typedef TImage ImageType;
49  typedef typename ImageType::Pointer ImagePointer;
50  typedef typename ImageType::ConstPointer ImageConstPointer;
51  typedef typename ImageType::PixelType PixelType;
52  typedef typename ImageType::RegionType RegionType;
53  typedef typename ImageType::SizeType SizeType;
55  typedef typename ImageType::SpacingType SpacingType;
56  typedef typename ImageType::IndexType IndexType;
58  typedef typename ImageType::PointType PointType;
59 
60  typedef typename Superclass::IdentifierListType IdentifierListType;
61 
73 
74  typedef std::vector< RegionType > LevelSetDomainRegionVectorType;
75 
78  itkSetConstObjectMacro( Image, ImageType );
79  itkGetConstObjectMacro(Image, ImageType );
81 
83  itkGetModifiableObjectMacro(ListDomain, ListImageType );
84 
85  void SetLevelSetDomainRegionVector( const LevelSetDomainRegionVectorType& domain );
86  const LevelSetDomainRegionVectorType& GetLevelSetDomainRegionVector() const;
87 
90  virtual void PopulateListDomain() ITK_OVERRIDE;
91 
92 protected:
94  virtual ~LevelSetDomainPartitionImage() ITK_OVERRIDE;
95 
98  void AllocateListDomain() ITK_OVERRIDE;
99 
101  ListImagePointer m_ListDomain;
102  LevelSetDomainRegionVectorType m_LevelSetDomainRegionVector;
103 
104 private:
105  ITK_DISALLOW_COPY_AND_ASSIGN(LevelSetDomainPartitionImage);
106 };
107 } //end namespace itk
108 
109 #ifndef ITK_MANUAL_INSTANTIATION
110 #include "itkLevelSetDomainPartitionImage.hxx"
111 #endif
112 
113 #endif
Superclass::RegionType RegionType
Definition: itkImage.h:137
Light weight base class for most itk classes.
itk::SizeValueType SizeValueType
Definition: itkSize.h:60
Represent the size (bounds) of a n-dimensional image.
Definition: itkSize.h:52
signed long IndexValueType
Definition: itkIntTypes.h:150
std::vector< RegionType > LevelSetDomainRegionVectorType
Image< IdentifierListType, ImageDimension > ListImageType
unsigned long SizeValueType
Definition: itkIntTypes.h:143
::itk::IndexValueType IndexValueType
Definition: itkIndex.h:80
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...
LevelSetDomainPartitionBase< TImage > Superclass
Superclass::IdentifierListType IdentifierListType
Helper class used to partition domain and efficiently compute overlap.
ListIndexType::IndexValueType ListIndexValueType
ImageRegionIteratorWithIndex< ListImageType > ListIteratorType
Templated n-dimensional image class.
Definition: itkImage.h:75