ITK  5.3.0
Insight Toolkit
itkStandardDeviationPerComponentSampleFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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 {
49 template <typename TSample>
50 class ITK_TEMPLATE_EXPORT StandardDeviationPerComponentSampleFilter : public ProcessObject
51 {
52 public:
53  ITK_DISALLOW_COPY_AND_MOVE(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
77  SetInput(const SampleType * sample);
78 
79  const SampleType *
80  GetInput() const;
81 
85 
87 
90  GetStandardDeviationPerComponent() const;
91 
93  GetStandardDeviationPerComponentOutput() const;
94 
97  GetMeanPerComponent() const;
98 
100  GetMeanPerComponentOutput() const;
101 
102 protected:
104  ~StandardDeviationPerComponentSampleFilter() override = default;
105  void
106  PrintSelf(std::ostream & os, Indent indent) const override;
107 
110 
112  using Superclass::MakeOutput;
114  MakeOutput(DataObjectPointerArraySizeType index) override;
115 
116  void
117  GenerateData() override;
118 
120  GetMeasurementVectorSize() const;
121 
122 private:
123 }; // end of class
124 } // end of namespace Statistics
125 } // end of namespace itk
126 
127 #ifndef ITK_MANUAL_INSTANTIATION
128 # include "itkStandardDeviationPerComponentSampleFilter.hxx"
129 #endif
130 
131 #endif
itk::SimpleDataObjectDecorator
Decorates any "simple" data type (data types without smart pointers) with a DataObject API.
Definition: itkSimpleDataObjectDecorator.h:66
itkVariableSizeMatrix.h
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::ProcessObject::DataObjectPointerArraySizeType
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
Definition: itkProcessObject.h:193
itk::Statistics::StandardDeviationPerComponentSampleFilter::MeasurementVectorRealType
typename NumericTraits< MeasurementVectorType >::RealType MeasurementVectorRealType
Definition: itkStandardDeviationPerComponentSampleFilter.h:72
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itkProcessObject.h
itkNumericTraitsFixedArrayPixel.h
itk::Statistics::StandardDeviationPerComponentSampleFilter::SampleType
TSample SampleType
Definition: itkStandardDeviationPerComponentSampleFilter.h:60
itk::Statistics::StandardDeviationPerComponentSampleFilter::MeasurementVectorType
typename TSample::MeasurementVectorType MeasurementVectorType
Definition: itkStandardDeviationPerComponentSampleFilter.h:71
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::Statistics::StandardDeviationPerComponentSampleFilter::MeasurementVectorSizeType
typename TSample::MeasurementVectorSizeType MeasurementVectorSizeType
Definition: itkStandardDeviationPerComponentSampleFilter.h:68
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138
itk::ProcessObject
class ITK_FORWARD_EXPORT ProcessObject
Definition: itkDataObject.h:41
itk::Statistics::StandardDeviationPerComponentSampleFilter
Calculates the covariance matrix of the target sample data.
Definition: itkStandardDeviationPerComponentSampleFilter.h:50
itk::NumericTraits::RealType
double RealType
Definition: itkNumericTraits.h:84
itkSimpleDataObjectDecorator.h
itk::DataObject::Pointer
SmartPointer< Self > Pointer
Definition: itkDataObject.h:301