ITK
4.3.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Numerics
Statistics
include
itkMeanSampleFilter.h
Go to the documentation of this file.
1
/*=========================================================================
2
*
3
* Copyright Insight Software Consortium
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
#ifndef __itkMeanSampleFilter_h
19
#define __itkMeanSampleFilter_h
20
21
#include "
itkProcessObject.h
"
22
#include "
itkArray.h
"
23
#include "
itkSimpleDataObjectDecorator.h
"
24
25
namespace
itk
26
{
27
namespace
Statistics
28
{
47
template
<
class
TSample >
48
class
ITK_EXPORT
MeanSampleFilter
:
public
ProcessObject
49
{
50
public
:
52
typedef
MeanSampleFilter
Self
;
53
typedef
ProcessObject
Superclass
;
54
typedef
SmartPointer< Self >
Pointer
;
55
typedef
SmartPointer< const Self >
ConstPointer
;
56
typedef
TSample
SampleType
;
57
59
itkTypeMacro(
MeanSampleFilter
,
ProcessObject
);
60
itkNewMacro(
Self
);
62
64
typedef
unsigned
int
MeasurementVectorSizeType
;
65
typedef
typename
TSample::MeasurementVectorType
MeasurementVectorType
;
66
typedef
typename
TSample::MeasurementType
MeasurementType
;
67
typedef
typename
NumericTraits< MeasurementType >::RealType
MeasurementRealType
;
68
typedef
typename
NumericTraits< MeasurementVectorType >::RealType
MeasurementVectorRealType
;
69
71
using
Superclass::SetInput;
72
void
SetInput(
const
SampleType
*sample);
73
74
const
SampleType
* GetInput()
const
;
75
78
typedef
SimpleDataObjectDecorator< MeasurementVectorRealType >
MeasurementVectorDecoratedType
;
79
80
typedef
MeasurementVectorDecoratedType
OutputType
;
81
83
const
MeasurementVectorDecoratedType
* GetOutput()
const
;
84
85
const
MeasurementVectorRealType
GetMean()
const
;
86
87
MeasurementVectorSizeType
GetMeasurementVectorSize()
const
;
88
89
protected
:
90
MeanSampleFilter
();
91
virtual
~
MeanSampleFilter
();
92
void
PrintSelf(std::ostream & os,
Indent
indent)
const
;
93
95
typedef
DataObject::Pointer
DataObjectPointer
;
96
97
typedef
ProcessObject::DataObjectPointerArraySizeType
DataObjectPointerArraySizeType
;
98
using
Superclass::MakeOutput;
99
virtual
DataObjectPointer
MakeOutput(
DataObjectPointerArraySizeType
idx);
100
101
void
GenerateData();
102
103
private
:
104
MeanSampleFilter
(
const
Self
&);
//purposely not implemented
105
void
operator=(
const
Self
&);
//purposely not implemented
106
};
// end of class
107
}
// end of namespace Statistics
108
}
// end of namespace itk
109
110
#ifndef ITK_MANUAL_INSTANTIATION
111
#include "itkMeanSampleFilter.hxx"
112
#endif
113
114
#endif
115
Generated on Sun Dec 9 2012 01:18:50 for ITK by
1.8.2