ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkStandardDeviationPerComponentSampleFilter.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 __itkStandardDeviationPerComponentSampleFilter_h
19 #define __itkStandardDeviationPerComponentSampleFilter_h
20 
21 #include "itkProcessObject.h"
22 
23 #include "itkVariableSizeMatrix.h"
26 
27 namespace itk
28 {
29 namespace Statistics
30 {
48 template< class TSample >
50  public ProcessObject
51 {
52 public:
58  typedef TSample SampleType;
59 
62  itkNewMacro(Self);
64 
66  typedef typename TSample::MeasurementVectorSizeType MeasurementVectorSizeType;
67 
69  typedef typename TSample::MeasurementVectorType MeasurementVectorType;
71 
73  using Superclass::SetInput;
74  void SetInput(const SampleType *sample);
75 
76  const SampleType * GetInput() const;
77 
81 
83 
85  const MeasurementVectorRealType GetStandardDeviationPerComponent() const;
86 
87  const MeasurementVectorRealDecoratedType * GetStandardDeviationPerComponentOutput() const;
88 
90  const MeasurementVectorRealType GetMeanPerComponent() const;
91 
92  const MeasurementVectorRealDecoratedType * GetMeanPerComponentOutput() const;
93 
94 protected:
95  StandardDeviationPerComponentSampleFilter(const Self &); //purposely not
96  // implemented
97  void operator=(const Self &); //purposely not
98  // implemented
99 
102  void PrintSelf(std::ostream & os, Indent indent) const;
103 
106 
108  using Superclass::MakeOutput;
109  virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx);
110 
111  void GenerateData();
112 
113  MeasurementVectorSizeType GetMeasurementVectorSize() const;
114 
115 private:
116 }; // end of class
117 } // end of namespace Statistics
118 } // end of namespace itk
119 
120 #ifndef ITK_MANUAL_INSTANTIATION
121 #include "itkStandardDeviationPerComponentSampleFilter.hxx"
122 #endif
123 
124 #endif
125