ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkNeighborhoodSampler.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 itkNeighborhoodSampler_h
19#define itkNeighborhoodSampler_h
20
23
24namespace itk::Statistics
25{
40
41template <typename TSample>
42class ITK_TEMPLATE_EXPORT NeighborhoodSampler : public SampleToSubsampleFilter<TSample>
43{
44public:
45 ITK_DISALLOW_COPY_AND_MOVE(NeighborhoodSampler);
46
52
55 itkOverrideGetNameOfClassMacro(NeighborhoodSampler);
56 itkNewMacro(Self);
60 using typename Superclass::SampleType;
62 using typename Superclass::MeasurementType;
63 using typename Superclass::InstanceIdentifier;
64 using typename Superclass::SubsampleType;
65 using typename Superclass::OutputType;
66
68 using RadiusType = double;
69
72
74 itkSetGetDecoratedInputMacro(Radius, RadiusType);
75
76protected:
78 ~NeighborhoodSampler() override = default;
79 void
80 PrintSelf(std::ostream & os, Indent indent) const override;
81
82 void
83 GenerateData() override;
84}; // end of class
85} // namespace itk::Statistics
86
87#ifndef ITK_MANUAL_INSTANTIATION
88# include "itkNeighborhoodSampler.hxx"
89#endif
90
91#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
Decorates any "simple" data type (data types without smart pointers) with a DataObject API.
Implements transparent reference counting.
SimpleDataObjectDecorator< RadiusType > InputRadiusObjectType
SampleToSubsampleFilter< TSample > Superclass
void PrintSelf(std::ostream &os, Indent indent) const override
~NeighborhoodSampler() override=default
typename SampleType::MeasurementVectorType MeasurementVectorType
typename SampleType::InstanceIdentifier InstanceIdentifier
typename SampleType::MeasurementType MeasurementType