ITK  6.0.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 * https://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
24namespace itk
25{
26namespace Statistics
27{
45template <typename TSample>
46class ITK_TEMPLATE_EXPORT SampleToSubsampleFilter : public ProcessObject
47{
48public:
49 ITK_DISALLOW_COPY_AND_MOVE(SampleToSubsampleFilter);
50
56
58 itkOverrideGetNameOfClassMacro(SampleToSubsampleFilter);
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
83protected:
85 ~SampleToSubsampleFilter() override = default;
86 void
87 PrintSelf(std::ostream & os, Indent indent) const override;
88
96 using Superclass::MakeOutput;
99}; // end of class
100} // end of namespace Statistics
101} // end of namespace itk
104#ifndef ITK_MANUAL_INSTANTIATION
105# include "itkSampleToSubsampleFilter.hxx"
106#endif
107
108#endif
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
Base class of filters intended to select subsamples from samples.
const OutputType * GetOutput() const
void PrintSelf(std::ostream &os, Indent indent) const override
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
typename SampleType::MeasurementVectorType MeasurementVectorType
virtual void SetInput(const SampleType *sample)
typename SampleType::InstanceIdentifier InstanceIdentifier
typename SampleType::MeasurementType MeasurementType
virtual const SampleType * GetInput() const
This class stores a subset of instance identifiers from another sample object. You can create a subsa...
Definition: itkSubsample.h:43
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
class ITK_FORWARD_EXPORT ProcessObject
Definition: itkDataObject.h:41