ITK  5.2.0
Insight Toolkit
itkSampleToSubsampleFilter.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 itkSampleToSubsampleFilter_h
19 #define itkSampleToSubsampleFilter_h
20 
21 #include "itkSubsample.h"
22 #include "itkProcessObject.h"
23 
24 namespace itk
25 {
26 namespace Statistics
27 {
45 template <typename TSample>
46 class ITK_TEMPLATE_EXPORT SampleToSubsampleFilter : public ProcessObject
47 {
48 public:
49  ITK_DISALLOW_COPY_AND_MOVE(SampleToSubsampleFilter);
50 
56 
59 
62  using SampleType = TSample;
63  using MeasurementVectorType = typename SampleType::MeasurementVectorType;
64  using MeasurementType = typename SampleType::MeasurementType;
65  using InstanceIdentifier = typename SampleType::InstanceIdentifier;
66 
70 
72  using Superclass::SetInput;
73  virtual void
74  SetInput(const SampleType * sample);
75 
76  virtual const SampleType *
77  GetInput() const;
78 
80  const OutputType *
81  GetOutput() const;
82 
83 protected:
85  ~SampleToSubsampleFilter() override = default;
86  void
87  PrintSelf(std::ostream & os, Indent indent) const override;
88 
96  using Superclass::MakeOutput;
98  MakeOutput(DataObjectPointerArraySizeType idx) override;
99 }; // end of class
100 } // end of namespace Statistics
101 } // end of namespace itk
103 
104 #ifndef ITK_MANUAL_INSTANTIATION
105 # include "itkSampleToSubsampleFilter.hxx"
106 #endif
107 
108 #endif
itk::Statistics::SampleToSubsampleFilter::InstanceIdentifier
typename SampleType::InstanceIdentifier InstanceIdentifier
Definition: itkSampleToSubsampleFilter.h:65
itkSubsample.h
itk::Statistics::SampleToSubsampleFilter
Base class of filters intended to select subsamples from samples.
Definition: itkSampleToSubsampleFilter.h:46
itk::Statistics::SampleToSubsampleFilter::SampleType
TSample SampleType
Definition: itkSampleToSubsampleFilter.h:62
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::SampleToSubsampleFilter::MeasurementVectorType
typename SampleType::MeasurementVectorType MeasurementVectorType
Definition: itkSampleToSubsampleFilter.h:63
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::Statistics::SampleToSubsampleFilter::MeasurementType
typename SampleType::MeasurementType MeasurementType
Definition: itkSampleToSubsampleFilter.h:64
itkProcessObject.h
itk::Statistics::Subsample
This class stores a subset of instance identifiers from another sample object. You can create a subsa...
Definition: itkSubsample.h:42
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
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