ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkSampleToSubsampleFilter.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 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_ASSIGN(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 SetInput(const SampleType *sample);
74 
75  virtual const SampleType * GetInput() const;
76 
78  const OutputType * GetOutput() const;
79 
80 protected:
82  ~SampleToSubsampleFilter() override = default;
83  void PrintSelf(std::ostream & os, Indent indent) const override;
84 
92  using Superclass::MakeOutput;
93  DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override;
94 }; // end of class
95 } // end of namespace Statistics
96 } // end of namespace itk
98 
99 #ifndef ITK_MANUAL_INSTANTIATION
100 #include "itkSampleToSubsampleFilter.hxx"
101 #endif
102 
103 #endif
Light weight base class for most itk classes.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
typename SampleType::MeasurementType MeasurementType
This class stores a subset of instance identifiers from another sample object. You can create a subsa...
Definition: itkSubsample.h:41
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
class ITK_FORWARD_EXPORT ProcessObject
Definition: itkDataObject.h:40
typename SampleType::InstanceIdentifier InstanceIdentifier
typename SampleType::MeasurementVectorType MeasurementVectorType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class of filters intended to select subsamples from samples.