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  * Copyright UMC Utrecht and contributors
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 
21 /*=========================================================================
22 
23  Program: Insight Segmentation & Registration Toolkit
24  Module: $RCSfile$
25  Language: C++
26  Date: $Date: 2008-05-28 10:45:42 +0200 (Wed, 28 May 2008) $
27  Version: $Revision: 1636 $
28 
29  Copyright (c) Insight Software Consortium. All rights reserved.
30  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
31 
32  This software is distributed WITHOUT ANY WARRANTY; without even
33  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
34  PURPOSE. See the above copyright notices for more information.
35 
36 =========================================================================*/
37 #ifndef __itkImageMaskSpatialObject2_h
38 #define __itkImageMaskSpatialObject2_h
39 
40 #include "itkImageSpatialObject2.h"
41 #include "itkImageSliceConstIteratorWithIndex.h"
42 
43 namespace itk
44 {
45 
55 template< unsigned int TDimension = 3 >
57  public ImageSpatialObject2< TDimension, unsigned char >
58 {
59 
60 public:
61 
65  typedef SmartPointer< const Self > ConstPointer;
66 
68  typedef typename Superclass::PixelType PixelType;
69  typedef typename Superclass::ImageType ImageType;
71  typedef typename Superclass::IndexType IndexType;
72  typedef typename Superclass::SizeType SizeType;
75  typedef typename Superclass::PointType PointType;
77 
78  typedef itk::ImageSliceConstIteratorWithIndex< ImageType >
80 
82  itkNewMacro( Self );
83 
86 
88  bool IsInside( const PointType & point,
89  unsigned int depth, char * name ) const;
90 
94  virtual bool IsInside( const PointType & point ) const;
95 
102  RegionType GetAxisAlignedBoundingBoxRegion() const;
103 
105  bool ComputeLocalBoundingBox() const;
106 
111  IndexType & index, SizeType & size ) const;
112 
113 protected:
114 
115  ImageMaskSpatialObject2( const Self & ); // purposely not implemented
116  void operator=( const Self & ); // purposely not implemented
117 
119  virtual ~ImageMaskSpatialObject2();
120 
121  void PrintSelf( std::ostream & os, Indent indent ) const;
122 
123 };
124 
125 } // end of namespace itk
126 
127 #ifndef ITK_MANUAL_INSTANTIATION
128 #include "itkImageMaskSpatialObject2.hxx"
129 #endif
130 
131 #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 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo