ITK  4.6.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 >
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 
61 
73 
74  typedef std::vector< RegionType > LevelSetDomainRegionVectorType;
75 
78  itkSetConstObjectMacro( Image, ImageType );
79  itkGetConstObjectMacro(Image, ImageType );
81 
83  itkGetModifiableObjectMacro(ListDomain, ListImageType );
84 
87 
90  virtual void PopulateListDomain();
91 
92 protected:
95 
98  void AllocateListDomain();
99 
103 
104 private:
105  LevelSetDomainPartitionImage(const Self &); //purposely not implemented
106  void operator=(const Self &); //purposely not implemented
107 };
108 } //end namespace itk
109 
110 #ifndef ITK_MANUAL_INSTANTIATION
111 #include "itkLevelSetDomainPartitionImage.hxx"
112 #endif
113 
114 #endif
LevelSetDomainRegionVectorType m_LevelSetDomainRegionVector
Superclass::RegionType RegionType
Definition: itkImage.h:140
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
const LevelSetDomainRegionVectorType & GetLevelSetDomainRegionVector() const
Image< IdentifierListType, ImageDimension > ListImageType
unsigned long SizeValueType
Definition: itkIntTypes.h:143
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::IndexType IndexType
Definition: itkImage.h:122
Superclass::IdentifierListType IdentifierListType
Helper class used to partition domain and efficiently compute overlap.
ListIndexType::IndexValueType ListIndexValueType
ImageRegionIteratorWithIndex< ListImageType > ListIteratorType
void SetLevelSetDomainRegionVector(const LevelSetDomainRegionVectorType &domain)
Templated n-dimensional image class.
Definition: itkImage.h:75