ITK  4.13.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< typename 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  ITK_DISALLOW_COPY_AND_ASSIGN(StandardDeviationPerComponentSampleFilter);
96 
98  virtual ~StandardDeviationPerComponentSampleFilter() ITK_OVERRIDE;
99  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
100 
103 
105  using Superclass::MakeOutput;
106  virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) ITK_OVERRIDE;
107 
108  virtual void GenerateData() ITK_OVERRIDE;
109 
110  MeasurementVectorSizeType GetMeasurementVectorSize() const;
111 
112 private:
113 }; // end of class
114 } // end of namespace Statistics
115 } // end of namespace itk
116 
117 #ifndef ITK_MANUAL_INSTANTIATION
118 #include "itkStandardDeviationPerComponentSampleFilter.hxx"
119 #endif
120 
121 #endif
Light weight base class for most itk classes.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Calculates the covariance matrix of the target sample data.
Decorates any &quot;simple&quot; data type (data types without smart pointers) with a DataObject API...
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
SimpleDataObjectDecorator< MeasurementVectorRealType > MeasurementVectorRealDecoratedType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for all data objects in ITK.