go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkImageMaskSpatialObject2.h
Go to the documentation of this file.
1 /*======================================================================
2 
3  This file is part of the elastix software.
4 
5  Copyright (c) University Medical Center Utrecht. All rights reserved.
6  See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7  details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 ======================================================================*/
14 
17 /*=========================================================================
18 
19  Program: Insight Segmentation & Registration Toolkit
20  Module: $RCSfile$
21  Language: C++
22  Date: $Date: 2008-05-28 10:45:42 +0200 (Wed, 28 May 2008) $
23  Version: $Revision: 1636 $
24 
25  Copyright (c) Insight Software Consortium. All rights reserved.
26  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
27 
28  This software is distributed WITHOUT ANY WARRANTY; without even
29  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
30  PURPOSE. See the above copyright notices for more information.
31 
32 =========================================================================*/
33 #ifndef __itkImageMaskSpatialObject2_h
34 #define __itkImageMaskSpatialObject2_h
35 
36 #include "itkImageSpatialObject2.h"
37 #include "itkImageSliceConstIteratorWithIndex.h"
38 
39 namespace itk
40 {
41 
51 template< unsigned int TDimension = 3 >
53  public ImageSpatialObject2< TDimension, unsigned char >
54 {
55 
56 public:
57 
60  typedef SmartPointer< Self > Pointer;
61  typedef SmartPointer< const Self > ConstPointer;
62 
64  typedef typename Superclass::PixelType PixelType;
65  typedef typename Superclass::ImageType ImageType;
67  typedef typename Superclass::IndexType IndexType;
68  typedef typename Superclass::SizeType SizeType;
71  typedef typename Superclass::PointType PointType;
73 
74  typedef itk::ImageSliceConstIteratorWithIndex< ImageType >
76 
78  itkNewMacro( Self );
79 
82 
84  bool IsInside( const PointType & point,
85  unsigned int depth, char * name ) const;
86 
90  virtual bool IsInside( const PointType & point ) const;
91 
99 
101  bool ComputeLocalBoundingBox() const;
102 
107  IndexType & index, SizeType & size ) const;
108 
109 protected:
110 
111  ImageMaskSpatialObject2( const Self & ); // purposely not implemented
112  void operator=( const Self & ); // purposely not implemented
113 
115  virtual ~ImageMaskSpatialObject2();
116 
117  void PrintSelf( std::ostream & os, Indent indent ) const;
118 
119 };
120 
121 } // end of namespace itk
122 
123 #ifndef ITK_MANUAL_INSTANTIATION
124 #include "itkImageMaskSpatialObject2.hxx"
125 #endif
126 
127 #endif //__itkImageMaskSpatialObject2_h
Superclass::PointType PointType
void ComputeLocalBoundingBoxIndexAndSize(IndexType &index, SizeType &size) const
ImageSpatialObject2< TDimension > Superclass
bool IsInside(const PointType &point, unsigned int depth, char *name) const
void PrintSelf(std::ostream &os, Indent indent) const
Implementation of an image mask as spatial object.
Superclass::BoundingBoxType BoundingBoxType
ImageType::IndexType IndexType
RegionType GetAxisAlignedBoundingBoxRegion() const
Implementation of an image as spatial object.
itk::ImageSliceConstIteratorWithIndex< ImageType > SliceIteratorType
Superclass::ImagePointer ImagePointer
Superclass::TransformType TransformType
Image< PixelType, TDimension > ImageType
Superclass::BoundingBoxType BoundingBoxType
Superclass::TransformType TransformType
ImageMaskSpatialObject2< TDimension > Self
ImageType::RegionType RegionType
void operator=(const Self &)
bool ComputeLocalBoundingBox() const
ImageType::ConstPointer ImagePointer
SmartPointer< const Self > ConstPointer


Generated on 27-04-2014 for elastix by doxygen 1.8.6 elastix logo