18#ifndef __ImageSamplerBase_h
19#define __ImageSamplerBase_h
24#include "itkSpatialObject.h"
41template<
class TInputImage >
44 VectorDataContainer< std::size_t, ImageSample< TInputImage > > >
74 InputImageType::ImageDimension );
85 typedef SpatialObject< Self::InputImageDimension >
MaskType;
119 itkGetConstMacro( NumberOfMasks,
unsigned int );
147 itkGetConstMacro( NumberOfInputImageRegions,
unsigned int );
168 itkSetClampMacro( NumberOfSamples,
unsigned long, 1, NumericTraits< unsigned long >::max() );
169 itkGetConstMacro( NumberOfSamples,
unsigned long );
172 itkSetMacro( UseMultiThread,
bool );
183 void PrintSelf( std::ostream & os, Indent indent )
const override;
236#ifndef ITK_MANUAL_INSTANTIATION
237#include "itkImageSamplerBase.hxx"
A class that defines an image sample, which is the coordinates of a point and its value.
NumericTraits< PixelType >::RealType RealType
This class is a base class for any image sampler.
InputImageType::IndexType InputImageIndexType
SmartPointer< Self > Pointer
MaskType::Pointer MaskPointer
virtual bool SelectNewSamplesOnUpdate(void)
InputImagePointType::ValueType InputImagePointValueType
virtual const MaskType * GetMask(unsigned int pos) const
~ImageSamplerBase() override
virtual bool CheckInputImageRegions(void)
Superclass::InputImagePixelType InputImagePixelType
std::vector< InputImageRegionType > InputImageRegionVectorType
virtual const InputImageRegionType & GetInputImageRegion(void) const
void CropInputImageRegion(void)
unsigned long m_NumberOfSamples
InputImageRegionType m_CroppedInputImageRegion
virtual void SetMask(const MaskType *_arg, unsigned int pos)
virtual void UpdateAllMasks(void)
MaskType::ConstPointer MaskConstPointer
virtual const InputImageRegionType & GetInputImageRegion(unsigned int pos) const
virtual bool IsInsideAllMasks(const InputImagePointType &point) const
MaskVectorType m_MaskVector
void BeforeThreadedGenerateData(void) override
VectorDataContainer< std::vcl_size_t, ImageSampleType > ImageSampleContainerType
InputImageRegionType m_InputImageRegion
virtual bool SelectingNewSamplesOnUpdateSupported(void) const
SmartPointer< const Self > ConstPointer
virtual const MaskType * GetMask(void) const
ImageSampleContainerType::Pointer ImageSampleContainerPointer
InputImageType::SizeType InputImageSizeType
virtual void SetMask(const MaskType *_arg)
virtual void SetInputImageRegion(const InputImageRegionType _arg)
SpatialObject< Self::InputImageDimension > MaskType
void PrintSelf(std::ostream &os, Indent indent) const override
void GenerateInputRequestedRegion(void) override
InputImageRegionVectorType m_InputImageRegionVector
ImageSampleType::RealType ImageSampleValueType
virtual void SetNumberOfMasks(const unsigned int _arg)
itkStaticConstMacro(InputImageDimension, unsigned int, InputImageType::ImageDimension)
unsigned int m_NumberOfInputImageRegions
virtual void SetNumberOfInputImageRegions(const unsigned int _arg)
Superclass::DataObjectPointer DataObjectPointer
std::vector< MaskConstPointer > MaskVectorType
InputImageType::PointType InputImagePointType
Superclass::InputImageRegionType InputImageRegionType
Superclass::InputImageType InputImageType
InputImageRegionType m_DummyInputImageRegion
ImageToVectorContainerFilter< TInputImage, VectorDataContainer< std::vcl_size_t, ImageSample< TInputImage > > > Superclass
unsigned int m_NumberOfMasks
Superclass::OutputVectorContainerPointer OutputVectorContainerPointer
void AfterThreadedGenerateData(void) override
Superclass::InputImagePointer InputImagePointer
std::vector< ImageSampleContainerPointer > m_ThreaderSampleContainer
virtual void SetInputImageRegion(const InputImageRegionType _arg, unsigned int pos)
void operator=(const Self &)
Superclass::OutputVectorContainerType OutputVectorContainerType
ImageSample< InputImageType > ImageSampleType
ImageSamplerBase(const Self &)
Superclass::InputImageConstPointer InputImageConstPointer
Base class that takes in an image and pops out a vector container.
InputImageType::RegionType InputImageRegionType
InputImageType::PixelType InputImagePixelType
TInputImage InputImageType
InputImageType::ConstPointer InputImageConstPointer
Superclass::DataObjectPointer DataObjectPointer
InputImageType::Pointer InputImagePointer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
SmartPointer< Self > Pointer