Home
|
Main Page
|
Modules
|
Namespace List
|
Class Hierarchy
|
Alphabetical List
|
Data Structures
|
File List
|
Namespace Members
|
Data Fields
|
Globals
|
Related Pages
src
Common
ImageSamplers
itkImageRandomSamplerSparseMask.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 __ImageRandomSamplerSparseMask_h
16
#define __ImageRandomSamplerSparseMask_h
17
18
#include "
itkImageRandomSamplerBase.h
"
19
#include "itkMersenneTwisterRandomVariateGenerator.h"
20
#include "
itkImageFullSampler.h
"
21
22
namespace
itk
23
{
24
35
template
<
class
TInputImage >
36
class
ImageRandomSamplerSparseMask
:
37
public
ImageRandomSamplerBase
< TInputImage >
38
{
39
public
:
40
42
typedef
ImageRandomSamplerSparseMask
Self
;
43
typedef
ImageRandomSamplerBase< TInputImage >
Superclass
;
44
typedef
SmartPointer<Self>
Pointer
;
45
typedef
SmartPointer<const Self>
ConstPointer
;
46
48
itkNewMacro(
Self
);
49
51
itkTypeMacro(
ImageRandomSamplerSparseMask
,
ImageRandomSamplerBase
);
52
54
typedef
typename
Superclass::DataObjectPointer
DataObjectPointer
;
55
typedef
typename
Superclass::OutputVectorContainerType
OutputVectorContainerType
;
56
typedef
typename
Superclass::OutputVectorContainerPointer
OutputVectorContainerPointer
;
57
typedef
typename
Superclass::InputImageType
InputImageType
;
58
typedef
typename
Superclass::InputImagePointer
InputImagePointer
;
59
typedef
typename
Superclass::InputImageConstPointer
InputImageConstPointer
;
60
typedef
typename
Superclass::InputImageRegionType
InputImageRegionType
;
61
typedef
typename
Superclass::InputImagePixelType
InputImagePixelType
;
62
typedef
typename
Superclass::ImageSampleType
ImageSampleType
;
63
typedef
typename
Superclass::ImageSampleContainerType
ImageSampleContainerType
;
64
typedef
typename
Superclass::MaskType
MaskType
;
65
67
itkStaticConstMacro
( InputImageDimension,
unsigned
int
,
68
Superclass::InputImageDimension );
69
71
typedef
typename
InputImageType::IndexType
InputImageIndexType
;
72
typedef
typename
InputImageType::PointType
InputImagePointType
;
73
75
typedef
itk::Statistics::MersenneTwisterRandomVariateGenerator
RandomGeneratorType
;
76
77
protected
:
78
79
typedef
itk::ImageFullSampler<InputImageType>
InternalFullSamplerType
;
80
82
ImageRandomSamplerSparseMask
();
84
virtual
~ImageRandomSamplerSparseMask
() {};
85
87
void
PrintSelf
( std::ostream& os, Indent indent )
const
;
88
90
virtual
void
GenerateData
(
void
);
91
92
typename
RandomGeneratorType::Pointer
m_RandomGenerator
;
93
typename
InternalFullSamplerType::Pointer
m_InternalFullSampler
;
94
95
private
:
96
98
ImageRandomSamplerSparseMask
(
const
Self
& );
// purposely not implemented
100
void
operator=
(
const
Self
& );
// purposely not implemented
101
102
103
};
// end class ImageRandomSamplerSparseMask
104
105
106
}
// end namespace itk
107
108
#ifndef ITK_MANUAL_INSTANTIATION
109
#include "itkImageRandomSamplerSparseMask.txx"
110
#endif
111
112
#endif // end #ifndef __ImageRandomSamplerSparseMask_h
113
Generated on 27-06-2013 for elastix by
1.8.3.1