Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <itkImageSamplerBase.h>
This class is a base class for any image sampler.
(ImageSampler "Random")
Definition at line 42 of file itkImageSamplerBase.h.
Public Member Functions | |
virtual const char * | GetClassName () const |
virtual const InputImageRegionType & | GetCroppedInputImageRegion () |
virtual const InputImageRegionType & | GetInputImageRegion (unsigned int pos) const |
virtual const InputImageRegionType & | GetInputImageRegion (void) const |
virtual const MaskType * | GetMask (unsigned int pos) const |
virtual const MaskType * | GetMask (void) const |
virtual unsigned int | GetNumberOfInputImageRegions () const |
virtual unsigned int | GetNumberOfMasks () const |
virtual unsigned long | GetNumberOfSamples () const |
itkStaticConstMacro (InputImageDimension, unsigned int, InputImageType::ImageDimension) | |
virtual bool | SelectingNewSamplesOnUpdateSupported (void) const |
virtual bool | SelectNewSamplesOnUpdate (void) |
virtual void | SetInputImageRegion (const InputImageRegionType _arg) |
virtual void | SetInputImageRegion (const InputImageRegionType _arg, unsigned int pos) |
virtual void | SetMask (const MaskType *_arg) |
virtual void | SetMask (const MaskType *_arg, unsigned int pos) |
virtual void | SetNumberOfInputImageRegions (const unsigned int _arg) |
virtual void | SetNumberOfMasks (const unsigned int _arg) |
virtual void | SetNumberOfSamples (unsigned long _arg) |
virtual void | SetUseMultiThread (bool _arg) |
Public Member Functions inherited from itk::ImageToVectorContainerFilter< TInputImage, VectorDataContainer< std::vcl_size_t, ImageSample< TInputImage > > > | |
virtual void | AfterThreadedGenerateData (void) |
virtual void | BeforeThreadedGenerateData (void) |
void | GenerateData (void) override |
virtual const char * | GetClassName () const |
const InputImageType * | GetInput (unsigned int idx) |
const InputImageType * | GetInput (void) |
OutputVectorContainerType * | GetOutput (void) |
DataObject::Pointer | MakeOutput (unsigned int idx) override |
void | SetInput (const InputImageType *input) |
void | SetInput (unsigned int idx, const InputImageType *input) |
virtual unsigned int | SplitRequestedRegion (const ThreadIdType &threadId, const ThreadIdType &numberOfSplits, InputImageRegionType &splitRegion) |
virtual void | ThreadedGenerateData (const InputImageRegionType &inputRegionForThread, ThreadIdType threadId) |
Public Member Functions inherited from itk::VectorContainerSource< VectorDataContainer< std::vcl_size_t, ImageSample< TInputImage > > > | |
virtual const char * | GetClassName () const |
OutputVectorContainerType * | GetOutput (unsigned int idx) |
OutputVectorContainerType * | GetOutput (void) |
virtual void | GraftNthOutput (unsigned int idx, DataObject *output) |
virtual void | GraftOutput (DataObject *output) |
virtual DataObjectPointer | MakeOutput (unsigned int idx) |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::ImageToVectorContainerFilter< TInputImage, VectorDataContainer< std::vcl_size_t, ImageSample< TInputImage > > > | |
static Pointer | New () |
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
Static Public Member Functions inherited from itk::VectorContainerSource< VectorDataContainer< std::vcl_size_t, ImageSample< TInputImage > > > | |
static Pointer | New () |
Protected Attributes | |
unsigned long | m_NumberOfSamples |
std::vector< ImageSampleContainerPointer > | m_ThreaderSampleContainer |
bool | m_UseMultiThread |
Private Member Functions | |
ImageSamplerBase (const Self &) | |
void | operator= (const Self &) |
typedef SmartPointer< const Self > itk::ImageSamplerBase< TInputImage >::ConstPointer |
Definition at line 54 of file itkImageSamplerBase.h.
typedef Superclass::DataObjectPointer itk::ImageSamplerBase< TInputImage >::DataObjectPointer |
Typedefs inherited from the superclass.
Definition at line 63 of file itkImageSamplerBase.h.
typedef ImageSampleContainerType::Pointer itk::ImageSamplerBase< TInputImage >::ImageSampleContainerPointer |
Definition at line 79 of file itkImageSamplerBase.h.
typedef VectorDataContainer< std::vcl_size_t, ImageSampleType > itk::ImageSamplerBase< TInputImage >::ImageSampleContainerType |
Definition at line 78 of file itkImageSamplerBase.h.
typedef ImageSample< InputImageType > itk::ImageSamplerBase< TInputImage >::ImageSampleType |
Other typdefs.
Definition at line 77 of file itkImageSamplerBase.h.
typedef ImageSampleType::RealType itk::ImageSamplerBase< TInputImage >::ImageSampleValueType |
Definition at line 84 of file itkImageSamplerBase.h.
typedef Superclass::InputImageConstPointer itk::ImageSamplerBase< TInputImage >::InputImageConstPointer |
Definition at line 68 of file itkImageSamplerBase.h.
typedef InputImageType::IndexType itk::ImageSamplerBase< TInputImage >::InputImageIndexType |
Definition at line 81 of file itkImageSamplerBase.h.
typedef Superclass::InputImagePixelType itk::ImageSamplerBase< TInputImage >::InputImagePixelType |
Definition at line 70 of file itkImageSamplerBase.h.
typedef Superclass::InputImagePointer itk::ImageSamplerBase< TInputImage >::InputImagePointer |
Definition at line 67 of file itkImageSamplerBase.h.
typedef InputImageType::PointType itk::ImageSamplerBase< TInputImage >::InputImagePointType |
Definition at line 82 of file itkImageSamplerBase.h.
typedef InputImagePointType::ValueType itk::ImageSamplerBase< TInputImage >::InputImagePointValueType |
Definition at line 83 of file itkImageSamplerBase.h.
typedef Superclass::InputImageRegionType itk::ImageSamplerBase< TInputImage >::InputImageRegionType |
Definition at line 69 of file itkImageSamplerBase.h.
typedef std::vector< InputImageRegionType > itk::ImageSamplerBase< TInputImage >::InputImageRegionVectorType |
Definition at line 89 of file itkImageSamplerBase.h.
typedef InputImageType::SizeType itk::ImageSamplerBase< TInputImage >::InputImageSizeType |
Definition at line 80 of file itkImageSamplerBase.h.
typedef Superclass::InputImageType itk::ImageSamplerBase< TInputImage >::InputImageType |
Definition at line 66 of file itkImageSamplerBase.h.
typedef MaskType::ConstPointer itk::ImageSamplerBase< TInputImage >::MaskConstPointer |
Definition at line 87 of file itkImageSamplerBase.h.
typedef MaskType::Pointer itk::ImageSamplerBase< TInputImage >::MaskPointer |
Definition at line 86 of file itkImageSamplerBase.h.
typedef SpatialObject< Self::InputImageDimension > itk::ImageSamplerBase< TInputImage >::MaskType |
Definition at line 85 of file itkImageSamplerBase.h.
typedef std::vector< MaskConstPointer > itk::ImageSamplerBase< TInputImage >::MaskVectorType |
Definition at line 88 of file itkImageSamplerBase.h.
typedef Superclass::OutputVectorContainerPointer itk::ImageSamplerBase< TInputImage >::OutputVectorContainerPointer |
Definition at line 65 of file itkImageSamplerBase.h.
typedef Superclass::OutputVectorContainerType itk::ImageSamplerBase< TInputImage >::OutputVectorContainerType |
Definition at line 64 of file itkImageSamplerBase.h.
typedef SmartPointer< Self > itk::ImageSamplerBase< TInputImage >::Pointer |
Definition at line 53 of file itkImageSamplerBase.h.
typedef ImageSamplerBase itk::ImageSamplerBase< TInputImage >::Self |
Standard ITK-stuff.
Definition at line 49 of file itkImageSamplerBase.h.
typedef ImageToVectorContainerFilter< TInputImage, VectorDataContainer< std::vcl_size_t, ImageSample< TInputImage > > > itk::ImageSamplerBase< TInputImage >::Superclass |
Definition at line 52 of file itkImageSamplerBase.h.
|
protected |
The constructor.
|
inlineoverrideprotected |
The destructor.
Definition at line 180 of file itkImageSamplerBase.h.
|
private |
The private constructor.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Multi-threaded function that does the work.
Reimplemented from itk::ImageToVectorContainerFilter< TInputImage, VectorDataContainer< std::vcl_size_t, ImageSample< TInputImage > > >.
|
protectedvirtual |
Checks if the InputImageRegions are a subregion of the LargestPossibleRegions.
|
protected |
Compute the intersection of the InputImageRegion and the bounding box of the mask.
|
overrideprotected |
GenerateInputRequestedRegion.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToVectorContainerFilter< TInputImage, VectorDataContainer< std::vcl_size_t, ImageSample< TInputImage > > >.
Reimplemented in itk::ImageFullSampler< TInputImage >, itk::ImageFullSampler< elx::ImageSamplerBase< TElastix >::InputImageType >, itk::ImageGridSampler< TInputImage >, itk::ImageGridSampler< elx::ImageSamplerBase< TElastix >::InputImageType >, itk::ImageRandomCoordinateSampler< TInputImage >, itk::ImageRandomCoordinateSampler< elx::ImageSamplerBase< TElastix >::InputImageType >, itk::ImageRandomSampler< TInputImage >, itk::ImageRandomSampler< elx::ImageSamplerBase< TElastix >::InputImageType >, itk::ImageRandomSamplerBase< TInputImage >, itk::ImageRandomSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >, itk::ImageRandomSamplerSparseMask< TInputImage >, itk::ImageRandomSamplerSparseMask< elx::ImageSamplerBase< TElastix >::InputImageType >, itk::MultiInputImageRandomCoordinateSampler< TInputImage >, itk::MultiInputImageRandomCoordinateSampler< elx::ImageSamplerBase< TElastix >::InputImageType >, elastix::FullSampler< TElastix >, elastix::GridSampler< TElastix >, elastix::MultiInputRandomCoordinateSampler< TElastix >, elastix::RandomSampler< TElastix >, elastix::RandomCoordinateSampler< TElastix >, and elastix::RandomSamplerSparseMask< TElastix >.
|
virtual |
Get a handle to the cropped InputImageregion.
|
virtual |
Get the input image regions.
|
inlinevirtual |
Get the first input image region.
Definition at line 137 of file itkImageSamplerBase.h.
|
virtual |
Get the masks.
|
inlinevirtual |
Get the first mask.
Definition at line 109 of file itkImageSamplerBase.h.
|
virtual |
Get the number of input image regions.
|
virtual |
Get the number of masks.
|
virtual |
|
protectedvirtual |
IsInsideAllMasks.
itk::ImageSamplerBase< TInputImage >::itkStaticConstMacro | ( | InputImageDimension | , |
unsigned int | , | ||
InputImageType::ImageDimension | |||
) |
The input image dimension.
|
static |
Method for creation through the object factory.
|
private |
The private copy constructor.
|
overrideprotected |
PrintSelf.
|
inlinevirtual |
Returns whether the sampler supports SelectNewSamplesOnUpdate()
Reimplemented in itk::ImageFullSampler< TInputImage >, itk::ImageFullSampler< elx::ImageSamplerBase< TElastix >::InputImageType >, itk::ImageGridSampler< TInputImage >, and itk::ImageGridSampler< elx::ImageSamplerBase< TElastix >::InputImageType >.
Definition at line 158 of file itkImageSamplerBase.h.
|
virtual |
******************** Other ******************** SelectNewSamplesOnUpdate. When this function is called, the sampler will generate a new sample set after calling Update(). The return bool is false when this feature is not supported by the sampler.
Reimplemented in itk::ImageFullSampler< TInputImage >, itk::ImageFullSampler< elx::ImageSamplerBase< TElastix >::InputImageType >, itk::ImageGridSampler< TInputImage >, and itk::ImageGridSampler< elx::ImageSamplerBase< TElastix >::InputImageType >.
|
inlinevirtual |
Set the region over which the samples will be taken.
Definition at line 127 of file itkImageSamplerBase.h.
|
virtual |
******************** Regions ******************** Set the region over which the samples will be taken.
|
inlinevirtual |
Set the first mask. NB: the first mask is used to compute a bounding box in which samples are considered.
Definition at line 99 of file itkImageSamplerBase.h.
|
virtual |
******************** Masks ******************** Set the masks.
|
virtual |
Set the number of input image regions.
|
virtual |
Set the number of masks.
|
virtual |
Set/Get the number of samples.
Reimplemented in itk::ImageGridSampler< TInputImage >, and itk::ImageGridSampler< elx::ImageSamplerBase< TElastix >::InputImageType >.
|
virtual |
|
protectedvirtual |
UpdateAllMasks.
|
private |
Definition at line 229 of file itkImageSamplerBase.h.
|
private |
Definition at line 230 of file itkImageSamplerBase.h.
|
private |
Definition at line 225 of file itkImageSamplerBase.h.
|
private |
Definition at line 226 of file itkImageSamplerBase.h.
|
private |
Member variables.
Definition at line 222 of file itkImageSamplerBase.h.
|
private |
Definition at line 223 of file itkImageSamplerBase.h.
|
private |
Definition at line 227 of file itkImageSamplerBase.h.
|
private |
Definition at line 224 of file itkImageSamplerBase.h.
|
protected |
Definition at line 208 of file itkImageSamplerBase.h.
|
protected |
Definition at line 209 of file itkImageSamplerBase.h.
|
protected |
Definition at line 212 of file itkImageSamplerBase.h.
Generated on 1667476801 for elastix by 1.9.4 |