ITK  4.9.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 
74  void SetInput(const SampleType *sample);
75 
76  const SampleType * GetInput() const;
77 
81 
83 
86 
88 
91 
93 
94 protected:
95  StandardDeviationPerComponentSampleFilter(const Self &) ITK_DELETE_FUNCTION;
96  void operator=(const Self &) ITK_DELETE_FUNCTION;
97 
100  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
101 
104 
106  using Superclass::MakeOutput;
107  virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) ITK_OVERRIDE;
108 
109  virtual void GenerateData() ITK_OVERRIDE;
110 
112 
113 private:
114 }; // end of class
115 } // end of namespace Statistics
116 } // end of namespace itk
117 
118 #ifndef ITK_MANUAL_INSTANTIATION
119 #include "itkStandardDeviationPerComponentSampleFilter.hxx"
120 #endif
121 
122 #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...
const MeasurementVectorRealType GetMeanPerComponent() const
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
Make a DataObject of the correct type to used as the specified output.
MeasurementVectorSizeType GetMeasurementVectorSize() const
Calculates the covariance matrix of the target sample data.
const MeasurementVectorRealType GetStandardDeviationPerComponent() const
Decorates any &quot;simple&quot; data type (data types without smart pointers) with a DataObject API...
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
virtual void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
SimpleDataObjectDecorator< MeasurementVectorRealType > MeasurementVectorRealDecoratedType
const MeasurementVectorRealDecoratedType * GetStandardDeviationPerComponentOutput() const
Control indentation during Print() invocation.
Definition: itkIndent.h:49
const MeasurementVectorRealDecoratedType * GetMeanPerComponentOutput() const
Base class for all data objects in ITK.