![]() |
Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <itkImageGridSampler.h>
Public Member Functions | |
virtual const char * | GetClassName () const |
virtual SampleGridSpacingType | GetSampleGridSpacing () const |
itkStaticConstMacro (InputImageDimension, unsigned int, Superclass::InputImageDimension) | |
virtual bool | SelectingNewSamplesOnUpdateSupported (void) const |
virtual bool | SelectNewSamplesOnUpdate (void) |
virtual void | SetNumberOfSamples (unsigned long nrofsamples) |
void | SetSampleGridSpacing (SampleGridSpacingType arg) |
![]() | |
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 |
itkStaticConstMacro (InputImageDimension, unsigned int, InputImageType::ImageDimension) | |
virtual void | SetInputImageRegion (const InputImageRegionType _arg, unsigned int pos) |
virtual void | SetInputImageRegion (const InputImageRegionType _arg) |
virtual void | SetMask (const MaskType *_arg, unsigned int pos) |
virtual void | SetMask (const MaskType *_arg) |
virtual void | SetNumberOfInputImageRegions (const unsigned int _arg) |
virtual void | SetNumberOfMasks (const unsigned int _arg) |
![]() | |
const InputImageType * | GetInput (void) |
const InputImageType * | GetInput (unsigned int idx) |
OutputVectorContainerType * | GetOutput (void) |
DataObject::Pointer | MakeOutput (unsigned int idx) |
void | SetInput (unsigned int idx, const InputImageType *input) |
void | SetInput (const InputImageType *input) |
![]() | |
OutputVectorContainerType * | GetOutput (unsigned int idx) |
virtual void | GraftNthOutput (unsigned int idx, DataObject *output) |
virtual void | GraftOutput (DataObject *output) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
virtual void | GenerateData (void) |
ImageGridSampler () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
virtual | ~ImageGridSampler () |
![]() | |
virtual bool | CheckInputImageRegions (void) |
void | CropInputImageRegion (void) |
virtual void | GenerateInputRequestedRegion (void) |
ImageSamplerBase () | |
virtual bool | IsInsideAllMasks (const InputImagePointType &point) const |
virtual void | UpdateAllMasks (void) |
virtual | ~ImageSamplerBase () |
![]() | |
ImageToVectorContainerFilter () | |
virtual | ~ImageToVectorContainerFilter () |
![]() | |
VectorContainerSource () | |
virtual | ~VectorContainerSource () |
Protected Attributes | |
unsigned long | m_RequestedNumberOfSamples |
SampleGridSpacingType | m_SampleGridSpacing |
Private Member Functions | |
ImageGridSampler (const Self &) | |
void | operator= (const Self &) |
Samples image voxels on a regular grid.
This ImageSampler samples voxels that lie on a regular grid. The grid can be specified by an integer downsampling factor for each dimension.
(SampleGridSpacing 4 4 4)
Definition at line 42 of file itkImageGridSampler.h.
typedef SmartPointer<const Self> itk::ImageGridSampler< TInputImage >::ConstPointer |
Definition at line 51 of file itkImageGridSampler.h.
typedef Superclass::DataObjectPointer itk::ImageGridSampler< TInputImage >::DataObjectPointer |
Typedefs inherited from the superclass.
Definition at line 57 of file itkImageGridSampler.h.
typedef Superclass::ImageSampleContainerType itk::ImageGridSampler< TInputImage >::ImageSampleContainerType |
Definition at line 69 of file itkImageGridSampler.h.
typedef Superclass::ImageSampleType itk::ImageGridSampler< TInputImage >::ImageSampleType |
Definition at line 68 of file itkImageGridSampler.h.
typedef Superclass::InputImageConstPointer itk::ImageGridSampler< TInputImage >::InputImageConstPointer |
Definition at line 65 of file itkImageGridSampler.h.
typedef InputImageType::IndexType itk::ImageGridSampler< TInputImage >::InputImageIndexType |
Other typdefs.
Definition at line 77 of file itkImageGridSampler.h.
typedef Superclass::InputImagePixelType itk::ImageGridSampler< TInputImage >::InputImagePixelType |
Definition at line 67 of file itkImageGridSampler.h.
typedef Superclass::InputImagePointer itk::ImageGridSampler< TInputImage >::InputImagePointer |
Definition at line 64 of file itkImageGridSampler.h.
typedef InputImageType::PointType itk::ImageGridSampler< TInputImage >::InputImagePointType |
Definition at line 78 of file itkImageGridSampler.h.
typedef Superclass::InputImageRegionType itk::ImageGridSampler< TInputImage >::InputImageRegionType |
Definition at line 66 of file itkImageGridSampler.h.
typedef InputImageType::SizeType itk::ImageGridSampler< TInputImage >::InputImageSizeType |
Definition at line 85 of file itkImageGridSampler.h.
typedef Superclass::InputImageType itk::ImageGridSampler< TInputImage >::InputImageType |
Definition at line 63 of file itkImageGridSampler.h.
typedef Superclass::MaskType itk::ImageGridSampler< TInputImage >::MaskType |
Definition at line 70 of file itkImageGridSampler.h.
typedef Superclass::OutputVectorContainerPointer itk::ImageGridSampler< TInputImage >::OutputVectorContainerPointer |
Definition at line 62 of file itkImageGridSampler.h.
typedef Superclass::OutputVectorContainerType itk::ImageGridSampler< TInputImage >::OutputVectorContainerType |
Definition at line 61 of file itkImageGridSampler.h.
typedef SmartPointer<Self> itk::ImageGridSampler< TInputImage >::Pointer |
Definition at line 50 of file itkImageGridSampler.h.
typedef InputImageIndexType itk::ImageGridSampler< TInputImage >::SampleGridIndexType |
Definition at line 84 of file itkImageGridSampler.h.
typedef InputImageType::SizeType itk::ImageGridSampler< TInputImage >::SampleGridSizeType |
Definition at line 83 of file itkImageGridSampler.h.
typedef InputImageType::OffsetType itk::ImageGridSampler< TInputImage >::SampleGridSpacingType |
Typedefs for support of user defined grid spacing for the spatial samples.
Definition at line 81 of file itkImageGridSampler.h.
typedef SampleGridSpacingType::OffsetValueType itk::ImageGridSampler< TInputImage >::SampleGridSpacingValueType |
Definition at line 82 of file itkImageGridSampler.h.
typedef ImageGridSampler itk::ImageGridSampler< TInputImage >::Self |
Standard ITK-stuff.
Definition at line 48 of file itkImageGridSampler.h.
typedef ImageSamplerBase< TInputImage > itk::ImageGridSampler< TInputImage >::Superclass |
Definition at line 49 of file itkImageGridSampler.h.
|
inlineprotected |
The constructor.
Definition at line 137 of file itkImageGridSampler.h.
|
inlineprotectedvirtual |
The destructor.
Definition at line 143 of file itkImageGridSampler.h.
|
private |
The private constructor.
|
protectedvirtual |
Function that does the work.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageSamplerBase< TInputImage >.
Reimplemented in elastix::GridSampler< TElastix >.
|
virtual |
itk::ImageGridSampler< TInputImage >::itkStaticConstMacro | ( | InputImageDimension | , |
unsigned | int, | ||
Superclass::InputImageDimension | |||
) |
The input image dimension.
|
static |
Method for creation through the object factory.
Reimplemented from itk::ImageSamplerBase< TInputImage >.
Reimplemented in elastix::GridSampler< TElastix >.
|
private |
The private copy constructor.
|
protected |
PrintSelf.
Reimplemented from itk::ImageSamplerBase< TInputImage >.
|
inlinevirtual |
Returns whether the sampler supports SelectNewSamplesOnUpdate()
Reimplemented from itk::ImageSamplerBase< TInputImage >.
Definition at line 129 of file itkImageGridSampler.h.
|
inlinevirtual |
Selecting new samples makes no sense if nothing changed. The same samples would be selected anyway.
Reimplemented from itk::ImageSamplerBase< TInputImage >.
Definition at line 123 of file itkImageGridSampler.h.
|
virtual |
Define an isotropic SampleGridSpacing such that the desired number of samples is approximately realised. The following formula is used:
spacing = max[ 1, round( (availablevoxels/nrofsamples)^(1/dimension) ) ], with availablevoxels = nr of voxels in input image region.
The InputImageRegion needs to be specified beforehand. A mask is ignored, so the realised number of samples could be significantly lower than expected. However, the sample grid spacing is recomputed in the update phase, when the bounding box of the mask is known. Supplying nrofsamples=0 turns off the (re)computation of the SampleGridSpacing. Once nrofsamples=0 has been given, the last computed SampleGridSpacing is simply considered as a user parameter, which is not modified automatically anymore.
This function overrules any previous calls to SetSampleGridSpacing.
|
inline |
Set/Get the sample grid spacing for each dimension (only integer factors) This function overrules previous calls to SetNumberOfSamples. Moreover, it calls SetNumberOfSamples(0) (see below), to make sure that the user-set sample grid spacing is never overruled.
Definition at line 91 of file itkImageGridSampler.h.
|
protected |
The number of samples entered in the SetNumberOfSamples method
Definition at line 155 of file itkImageGridSampler.h.
|
protected |
An array of integer spacing factors
Definition at line 152 of file itkImageGridSampler.h.
Generated on 21-03-2014 for elastix by ![]() |
![]() |