ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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{
44
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
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
100
101}; // end of class
102} // end of namespace Statistics
103} // end of namespace itk
104
105#ifndef ITK_MANUAL_INSTANTIATION
106# include "itkSampleToSubsampleFilter.hxx"
107#endif
108
109#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
DataObject::Pointer DataObjectPointer
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx)
Make a DataObject of the correct type to used as the specified output.
Implements transparent reference counting.
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
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...
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....