18 #ifndef itkRegionConstrainedSubsampler_h 19 #define itkRegionConstrainedSubsampler_h 25 namespace Statistics {
50 template <
typename TSample,
typename TRegion >
79 typedef typename RegionType::SizeType
SizeType;
86 itkGetConstReferenceMacro( SampleRegion, RegionType );
89 itkGetConstReferenceMacro(SampleRegionInitialized,
bool);
96 itkGetConstReferenceMacro( RegionConstraint, RegionType );
99 itkGetConstReferenceMacro(RegionConstraintInitialized,
bool);
106 virtual void Search(
const InstanceIdentifier& query,
107 SubsamplePointer& results) ITK_OVERRIDE = 0;
120 virtual void PrintSelf(std::ostream& os,
Indent indent)
const ITK_OVERRIDE;
129 void operator=(const Self&) ITK_DELETE_FUNCTION;
136 #ifndef ITK_MANUAL_INSTANTIATION 137 #include "itkRegionConstrainedSubsampler.hxx" SubsamplerBase< TSample > Superclass
SubsampleType::Pointer SubsamplePointer
SubsampleType::InstanceIdentifierHolder InstanceIdentifierHolder
virtual LightObject::Pointer InternalClone() const override
RegionType::SizeType SizeType
RegionConstrainedSubsampler< TSample, TRegion > Self
RegionType m_SampleRegion
signed long IndexValueType
This class stores a subset of instance identifiers from another sample object. You can create a subsa...
RegionConstrainedSubsampler()
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
TSample::MeasurementVectorType MeasurementVectorType
RegionType::IndexType IndexType
SubsampleType::ConstIterator SubsampleConstIterator
virtual void PrintSelf(std::ostream &os, Indent indent) const override
void SetRegionConstraint(const RegionType ®ion)
TSample::InstanceIdentifier InstanceIdentifier
IndexType::IndexValueType IndexValueType
RegionType m_RegionConstraint
This an abstract subsampler that constrains subsamples to be contained within a given image region...
void SetSampleRegion(const RegionType ®ion)
bool m_RegionConstraintInitialized
SmartPointer< const Self > ConstPointer
Superclass::Baseclass Baseclass
Subsample< TSample > SubsampleType
virtual void Search(const InstanceIdentifier &query, SubsamplePointer &results) override=0
Control indentation during Print() invocation.
bool m_SampleRegionInitialized
SampleType::ConstPointer SampleConstPointer
This is the base subsampler class which defines the subsampler API.
std::vector< InstanceIdentifier > InstanceIdentifierHolder
SmartPointer< Self > Pointer