Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
Common
ImageSamplers
itkImageRandomSamplerBase.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
15
#ifndef __ImageRandomSamplerBase_h
16
#define __ImageRandomSamplerBase_h
17
18
#include "
itkImageSamplerBase.h
"
19
20
namespace
itk
21
{
22
32
template
<
class
TInputImage >
33
class
ImageRandomSamplerBase
:
34
public
ImageSamplerBase
< TInputImage >
35
{
36
public
:
37
39
typedef
ImageRandomSamplerBase
Self
;
40
typedef
ImageSamplerBase< TInputImage >
Superclass
;
41
typedef
SmartPointer<Self>
Pointer
;
42
typedef
SmartPointer<const Self>
ConstPointer
;
43
45
itkNewMacro(
Self
);
46
48
itkTypeMacro(
ImageRandomSamplerBase
,
ImageSamplerBase
);
49
51
typedef
typename
Superclass::DataObjectPointer
DataObjectPointer
;
52
typedef
typename
Superclass::OutputVectorContainerType
OutputVectorContainerType
;
53
typedef
typename
Superclass::OutputVectorContainerPointer
OutputVectorContainerPointer
;
54
typedef
typename
Superclass::InputImageType
InputImageType
;
55
typedef
typename
Superclass::InputImagePointer
InputImagePointer
;
56
typedef
typename
Superclass::InputImageConstPointer
InputImageConstPointer
;
57
typedef
typename
Superclass::InputImageRegionType
InputImageRegionType
;
58
typedef
typename
Superclass::InputImagePixelType
InputImagePixelType
;
59
typedef
typename
Superclass::ImageSampleType
ImageSampleType
;
60
typedef
typename
Superclass::ImageSampleContainerType
ImageSampleContainerType
;
61
typedef
typename
Superclass::MaskType
MaskType
;
62
64
itkStaticConstMacro
( InputImageDimension,
unsigned
int
,
65
Superclass::InputImageDimension );
66
68
itkSetClampMacro( NumberOfSamples,
unsigned
long
, 1,
NumericTraits<unsigned long>::max
() );
69
71
itkGetConstMacro( NumberOfSamples,
unsigned
long
);
72
73
protected
:
74
76
ImageRandomSamplerBase
()
77
{
78
this->
m_NumberOfSamples
= 100;
79
};
80
82
virtual
~ImageRandomSamplerBase
() {};
83
85
void
PrintSelf
( std::ostream& os, Indent indent )
const
86
{
87
Superclass::PrintSelf
( os, indent );
88
os << indent <<
"NumberOfSamples: "
<< this->
m_NumberOfSamples
<< std::endl;
89
};
90
91
unsigned
long
m_NumberOfSamples
;
92
93
private
:
94
96
ImageRandomSamplerBase
(
const
Self
& );
// purposely not implemented
98
void
operator=
(
const
Self
& );
// purposely not implemented
99
100
};
// end class ImageRandomSamplerBase
101
102
103
}
// end namespace itk
104
105
#endif // end #ifndef __ImageRandomSamplerBase_h
106
Generated on 21-03-2014 for elastix by
1.8.1.2