ITK  5.0.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:
53  ITK_DISALLOW_COPY_AND_ASSIGN(StandardDeviationPerComponentSampleFilter);
54 
60  using SampleType = TSample;
61 
64  itkNewMacro(Self);
66 
68  using MeasurementVectorSizeType = typename TSample::MeasurementVectorSizeType;
69 
71  using MeasurementVectorType = typename TSample::MeasurementVectorType;
73 
75  using Superclass::SetInput;
76  void SetInput(const SampleType *sample);
77 
78  const SampleType * GetInput() const;
79 
83 
85 
87  const MeasurementVectorRealType GetStandardDeviationPerComponent() const;
88 
89  const MeasurementVectorRealDecoratedType * GetStandardDeviationPerComponentOutput() const;
90 
92  const MeasurementVectorRealType GetMeanPerComponent() const;
93 
94  const MeasurementVectorRealDecoratedType * GetMeanPerComponentOutput() const;
95 
96 protected:
98  ~StandardDeviationPerComponentSampleFilter() override = default;
99  void PrintSelf(std::ostream & os, Indent indent) const override;
100 
103 
105  using Superclass::MakeOutput;
106  DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override;
107 
108  void GenerateData() 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.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
Define numeric traits for std::vector.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
class ITK_FORWARD_EXPORT ProcessObject
Definition: itkDataObject.h:40
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...
Control indentation during Print() invocation.
Definition: itkIndent.h:49
SmartPointer< Self > Pointer
typename NumericTraits< MeasurementVectorType >::RealType MeasurementVectorRealType