Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <itkImageToVectorContainerFilter.h>
Base class that takes in an image and pops out a vector container.
Definition at line 34 of file itkImageToVectorContainerFilter.h.
Data Structures | |
struct | ThreadStruct |
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::DataObjectPointer | DataObjectPointer |
typedef InputImageType::ConstPointer | InputImageConstPointer |
typedef InputImageType::PixelType | InputImagePixelType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TInputImage | InputImageType |
typedef Superclass::OutputVectorContainerPointer | OutputVectorContainerPointer |
typedef Superclass::OutputVectorContainerType | OutputVectorContainerType |
typedef SmartPointer< Self > | Pointer |
typedef ImageToVectorContainerFilter | Self |
typedef VectorContainerSource< TOutputVectorContainer > | Superclass |
Public Types inherited from itk::VectorContainerSource< TOutputVectorContainer > | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::DataObjectPointer | DataObjectPointer |
typedef OutputVectorContainerType::Pointer | OutputVectorContainerPointer |
typedef TOutputVectorContainer | OutputVectorContainerType |
typedef SmartPointer< Self > | Pointer |
typedef VectorContainerSource | Self |
typedef ProcessObject | Superclass |
Public Member Functions | |
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< TOutputVectorContainer > | |
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 ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
Static Public Member Functions inherited from itk::VectorContainerSource< TOutputVectorContainer > | |
static Pointer | New () |
Protected Member Functions | |
ImageToVectorContainerFilter () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~ImageToVectorContainerFilter () override | |
Protected Member Functions inherited from itk::VectorContainerSource< TOutputVectorContainer > | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
VectorContainerSource () | |
~VectorContainerSource () override | |
Private Member Functions | |
ImageToVectorContainerFilter (const Self &) | |
void | operator= (const Self &) |
typedef SmartPointer< const Self > itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::ConstPointer |
Definition at line 43 of file itkImageToVectorContainerFilter.h.
typedef Superclass::DataObjectPointer itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::DataObjectPointer |
Typedefs inherited from the superclass.
Definition at line 52 of file itkImageToVectorContainerFilter.h.
typedef InputImageType::ConstPointer itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::InputImageConstPointer |
Definition at line 59 of file itkImageToVectorContainerFilter.h.
typedef InputImageType::PixelType itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::InputImagePixelType |
Definition at line 61 of file itkImageToVectorContainerFilter.h.
typedef InputImageType::Pointer itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::InputImagePointer |
Definition at line 58 of file itkImageToVectorContainerFilter.h.
typedef InputImageType::RegionType itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::InputImageRegionType |
Definition at line 60 of file itkImageToVectorContainerFilter.h.
typedef TInputImage itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::InputImageType |
Some Image related typedefs.
Definition at line 57 of file itkImageToVectorContainerFilter.h.
typedef Superclass::OutputVectorContainerPointer itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::OutputVectorContainerPointer |
Definition at line 54 of file itkImageToVectorContainerFilter.h.
typedef Superclass::OutputVectorContainerType itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::OutputVectorContainerType |
Definition at line 53 of file itkImageToVectorContainerFilter.h.
typedef SmartPointer< Self > itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::Pointer |
Definition at line 42 of file itkImageToVectorContainerFilter.h.
typedef ImageToVectorContainerFilter itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::Self |
Standard ITK-stuff.
Definition at line 40 of file itkImageToVectorContainerFilter.h.
typedef VectorContainerSource< TOutputVectorContainer > itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::Superclass |
Definition at line 41 of file itkImageToVectorContainerFilter.h.
|
protected |
The constructor.
|
inlineoverrideprotected |
The destructor.
Definition at line 175 of file itkImageToVectorContainerFilter.h.
|
private |
The private constructor.
|
inlinevirtual |
If an imaging filter needs to perform processing after all processing threads have completed, the filter can can provide an implementation for AfterThreadedGenerateData(). The execution flow in the default GenerateData() method will be: 1) Allocate the output buffer 2) Call BeforeThreadedGenerateData() 3) Spawn threads, calling ThreadedGenerateData() in each thread. 4) Call AfterThreadedGenerateData() Note that this flow of control is only available if a filter provides a ThreadedGenerateData() method and NOT a GenerateData() method.
Reimplemented in itk::ImageSamplerBase< TInputImage >, itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >, and itk::ImageSamplerBase< TElastix >.
Definition at line 149 of file itkImageToVectorContainerFilter.h.
|
inlinevirtual |
If an imaging filter needs to perform processing after the buffer has been allocated but before threads are spawned, the filter can can provide an implementation for BeforeThreadedGenerateData(). The execution flow in the default GenerateData() method will be: 1) Allocate the output buffer 2) Call BeforeThreadedGenerateData() 3) Spawn threads, calling ThreadedGenerateData() in each thread. 4) Call AfterThreadedGenerateData() Note that this flow of control is only available if a filter provides a ThreadedGenerateData() method and NOT a GenerateData() method.
Reimplemented in itk::ImageRandomCoordinateSampler< TInputImage >, itk::ImageRandomCoordinateSampler< elx::ImageSamplerBase< TElastix >::InputImageType >, itk::ImageRandomSamplerBase< TInputImage >, itk::ImageRandomSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >, itk::ImageRandomSamplerSparseMask< TInputImage >, itk::ImageRandomSamplerSparseMask< elx::ImageSamplerBase< TElastix >::InputImageType >, itk::ImageSamplerBase< TInputImage >, itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >, and itk::ImageSamplerBase< TElastix >.
Definition at line 137 of file itkImageToVectorContainerFilter.h.
|
override |
Prepare the output. A version of GenerateData() specific for image processing filters. This implementation will split the processing across multiple threads. The buffer is allocated by this method. Then the BeforeThreadedGenerateData() method is called (if provided). Then, a series of threads are spawned each calling ThreadedGenerateData(). After all the threads have completed processing, the AfterThreadedGenerateData() method is called (if provided). If an image processing filter cannot be threaded, the filter should provide an implementation of GenerateData(). That implementation is responsible for allocating the output buffer. If a filter an be threaded, it should NOT provide a GenerateData() method but should provide a ThreadedGenerateData() instead.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::VectorContainerSource< TOutputVectorContainer >.
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::ImageSamplerBase< TInputImage >, itk::ImageSamplerBase< elx::ImageSamplerBase< TElastix >::InputImageType >, itk::ImageSamplerBase< TElastix >, 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 >.
const InputImageType * itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::GetInput | ( | unsigned int | idx | ) |
Get the input image of this process object.
const InputImageType * itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::GetInput | ( | void | ) |
Get the input image of this process object.
OutputVectorContainerType * itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::GetOutput | ( | void | ) |
Get the output Mesh of this process object.
|
overridevirtual |
Create a valid output.
Reimplemented from itk::VectorContainerSource< TOutputVectorContainer >.
|
static |
Method for creation through the object factory.
|
private |
The private copy constructor.
|
overrideprotected |
PrintSelf.
void itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::SetInput | ( | const InputImageType * | input | ) |
Set the input image of this process object.
void itk::ImageToVectorContainerFilter< TInputImage, TOutputVectorContainer >::SetInput | ( | unsigned int | idx, |
const InputImageType * | input | ||
) |
Set the input image of this process object.
|
virtual |
Split the output's RequestedRegion into "numberOfSplits" pieces, returning region "i" as "splitRegion". This method is called "numberOfSplits" times. The regions must not overlap. The method returns the number of pieces that the routine is capable of splitting the output RequestedRegion, i.e. return value is less than or equal to "numberOfSplits".
|
virtual |
If an imaging filter can be implemented as a multithreaded algorithm, the filter will provide an implementation of ThreadedGenerateData(). This superclass will automatically split the output image into a number of pieces, spawn multiple threads, and call ThreadedGenerateData() in each thread. Prior to spawning threads, the BeforeThreadedGenerateData() method is called. After all the threads have completed, the AfterThreadedGenerateData() method is called. If an image processing filter cannot support threading, that filter should provide an implementation of the GenerateData() method instead of providing an implementation of ThreadedGenerateData(). If a filter provides a GenerateData() method as its implementation, then the filter is responsible for allocating the output data. If a filter provides a ThreadedGenerateData() method as its implementation, then the output memory will allocated automatically by this superclass. The ThreadedGenerateData() method should only produce the output specified by "outputThreadRegion" parameter. ThreadedGenerateData() cannot write to any other portion of the output image (as this is responsibility of a different thread).
|
static |
Static function used as a "callback" by the PlatformMultiThreader. The threading library will call this routine for each thread, which will delegate the control to ThreadedGenerateData().
Generated on 1667476801 for elastix by 1.9.4 |