Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
Common
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
34
#ifndef __itkImageMaskSpatialObject2_h
35
#define __itkImageMaskSpatialObject2_h
36
37
#include "
itkImageSpatialObject2.h
"
38
#include "itkImageSliceConstIteratorWithIndex.h"
39
40
namespace
itk
41
{
42
52
template
<
unsigned
int
TDimension = 3 >
53
class
ImageMaskSpatialObject2
54
:
public
ImageSpatialObject2
< TDimension, unsigned char >
55
{
56
57
public
:
58
59
typedef
ImageMaskSpatialObject2< TDimension >
Self
;
60
typedef
ImageSpatialObject2< TDimension >
Superclass
;
61
typedef
SmartPointer< Self >
Pointer
;
62
typedef
SmartPointer< const Self >
ConstPointer
;
63
64
typedef
typename
Superclass::ScalarType
ScalarType
;
65
typedef
typename
Superclass::PixelType
PixelType
;
66
typedef
typename
Superclass::ImageType
ImageType
;
67
typedef
typename
Superclass::ImagePointer
ImagePointer
;
68
typedef
typename
Superclass::IndexType
IndexType
;
69
typedef
typename
Superclass::SizeType
SizeType
;
70
typedef
typename
Superclass::RegionType
RegionType
;
71
typedef
typename
Superclass::TransformType
TransformType
;
72
typedef
typename
Superclass::PointType
PointType
;
73
typedef
typename
Superclass::BoundingBoxType
BoundingBoxType
;
74
75
typedef
itk::ImageSliceConstIteratorWithIndex< ImageType >
76
SliceIteratorType
;
77
79
itkNewMacro(
Self
);
80
82
itkTypeMacro(
ImageMaskSpatialObject2
,
ImageSpatialObject2
);
83
85
bool
IsInside
(
const
PointType
& point,
86
unsigned
int
depth,
char
*name)
const
;
87
91
virtual
bool
IsInside
(
const
PointType
& point)
const
;
92
99
RegionType
GetAxisAlignedBoundingBoxRegion
()
const
;
100
102
bool
ComputeLocalBoundingBox
()
const
;
103
107
void
ComputeLocalBoundingBoxIndexAndSize
(
108
IndexType
& index,
SizeType
& size )
const
;
109
110
protected
:
111
ImageMaskSpatialObject2
(
const
Self
&);
//purposely not implemented
112
void
operator=
(
const
Self
&);
//purposely not implemented
113
114
ImageMaskSpatialObject2
();
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.txx"
125
#endif
126
127
#endif //__itkImageMaskSpatialObject2_h
128
Generated on 27-06-2013 for elastix by
1.8.3.1