Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Filter that allows recording of processed ToF images Internally the ToFImageWriter is used for writing. More...
#include <mitkToFImageRecorderFilter.h>
Public Member Functions | |
mitkClassMacro (ToFImageRecorderFilter, ImageToImageFilter) | |
Pointer | Clone () const |
void | SetFileName (std::string fileName) |
Set file name for writing image files This filename will be appended by "_DistanceImage", "_AmplitudeImage", or "_IntensityImage" for the single images. More... | |
void | SetImageType (ToFImageWriter::ToFImageType tofImageType) |
Set image type for recording. More... | |
ToFImageWriter::Pointer | GetToFImageWriter () |
Returns a pointer to the ToFImageWriter internally used. More... | |
void | SetToFImageWriter (ToFImageWriter::Pointer tofImageWriter) |
Sets a pointer to the ToFImageWriter internally used. More... | |
void | StartRecording () |
start recording of data More... | |
void | StopRecording () |
stop recording of data More... | |
virtual void | SetInput (Image *input) |
sets the input of this filter More... | |
virtual void | SetInput (unsigned int idx, Image *input) |
sets the input of this filter at idx More... | |
Image * | GetInput () |
returns the input of this filter More... | |
Image * | GetInput (unsigned int idx) |
returns the input with id idx of this filter More... | |
Public Member Functions inherited from mitk::ImageToImageFilter | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
virtual void | SetInput (const InputImageType *image) |
virtual void | SetInput (unsigned int, const InputImageType *image) |
InputImageType * | GetInput (void) |
InputImageType * | GetInput (unsigned int idx) |
const InputImageType * | GetInput (void) const |
const InputImageType * | GetInput (unsigned int idx) const |
Public Member Functions inherited from mitk::ImageSource | |
Pointer | Clone () const |
OutputType * | GetOutput () |
Get the output data of this image source object. More... | |
const OutputType * | GetOutput () const |
OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
const OutputType * | GetOutput (DataObjectPointerArraySizeType idx) const |
virtual itk::DataObject::Pointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
Make a DataObject of the correct type to used as the specified output. More... | |
virtual itk::DataObject::Pointer | MakeOutput (const DataObjectIdentifierType &name) override |
virtual vtkImageData * | GetVtkImageData () |
virtual const vtkImageData * | GetVtkImageData () const |
Public Member Functions inherited from mitk::BaseDataSource | |
OutputType * | GetOutput () |
const OutputType * | GetOutput () const |
OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
const OutputType * | GetOutput (DataObjectPointerArraySizeType idx) const |
virtual void | GraftOutput (OutputType *output) |
Graft the specified BaseData onto this BaseDataSource's output. More... | |
virtual void | GraftOutput (const DataObjectIdentifierType &key, OutputType *output) |
virtual void | GraftNthOutput (unsigned int idx, OutputType *output) |
Graft the specified base data object onto this BaseDataSource's idx'th output. More... | |
bool | Updating () const |
Access itk::ProcessObject::m_Updating. More... | |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from mitk::ImageToImageFilter | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
Static Public Member Functions inherited from mitk::ImageSource | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
Method for creation through the object factory. More... | |
Static Public Member Functions inherited from mitk::BaseDataSource | |
static const char * | GetStaticNameOfClass () |
Protected Member Functions | |
ToFImageRecorderFilter () | |
standard constructor More... | |
~ToFImageRecorderFilter () | |
standard destructor More... | |
virtual void | GenerateData () override |
method generating the output of this filter. Called in the updated process of the pipeline. This method generates the output of the ToFSurfaceSource: The generated surface of the 3d points More... | |
void | CreateOutputsForAllInputs () |
Create an output for each input. More... | |
Protected Member Functions inherited from mitk::ImageToImageFilter | |
ImageToImageFilter () | |
virtual | ~ImageToImageFilter () |
virtual void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
virtual void | GenerateInputRequestedRegion () override |
Protected Member Functions inherited from mitk::ImageSource | |
ImageSource () | |
virtual | ~ImageSource () |
virtual void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId) |
If an imaging filter can be implemented as a multithreaded algorithm, the filter will provide an implementation of ThreadedGenerateData(). More... | |
virtual void | PrepareOutputs () override |
This method is intentionally left blank. More... | |
virtual void | AllocateOutputs () |
The GenerateData method normally allocates the buffers for all of the outputs of a filter. More... | |
virtual void | BeforeThreadedGenerateData () |
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(). More... | |
virtual void | AfterThreadedGenerateData () |
If an imaging filter needs to perform processing after all processing threads have completed, the filter can can provide an implementation for AfterThreadedGenerateData(). More... | |
virtual unsigned int | SplitRequestedRegion (unsigned int i, unsigned int num, OutputImageRegionType &splitRegion) |
Split the output's RequestedRegion into "num" pieces, returning region "i" as "splitRegion". More... | |
Protected Member Functions inherited from mitk::BaseDataSource | |
BaseDataSource () | |
virtual | ~BaseDataSource () |
Protected Attributes | |
ToFImageWriter::Pointer | m_ToFImageWriter |
image writer used for streaming input data to file More... | |
bool | m_RecordingStarted |
flag indicating if filter is currently recording More... | |
std::string | m_FileExtension |
Filter that allows recording of processed ToF images Internally the ToFImageWriter is used for writing.
Definition at line 32 of file mitkToFImageRecorderFilter.h.
|
protected |
standard constructor
Definition at line 28 of file mitkToFImageRecorderFilter.cpp.
References m_FileExtension.
|
protected |
standard destructor
Definition at line 33 of file mitkToFImageRecorderFilter.cpp.
Pointer mitk::ToFImageRecorderFilter::Clone | ( | ) | const |
|
protected |
Create an output for each input.
This Method sets the number of outputs to the number of inputs and creates missing outputs objects.
Definition at line 158 of file mitkToFImageRecorderFilter.cpp.
|
overrideprotectedvirtual |
method generating the output of this filter. Called in the updated process of the pipeline. This method generates the output of the ToFSurfaceSource: The generated surface of the 3d points
Reimplemented from mitk::ImageSource.
Definition at line 69 of file mitkToFImageRecorderFilter.cpp.
References mitk::ImageAccessorBase::GetData().
mitk::Image * mitk::ToFImageRecorderFilter::GetInput | ( | void | ) |
returns the input of this filter
Definition at line 146 of file mitkToFImageRecorderFilter.cpp.
mitk::Image * mitk::ToFImageRecorderFilter::GetInput | ( | unsigned int | idx | ) |
returns the input with id idx of this filter
Definition at line 151 of file mitkToFImageRecorderFilter.cpp.
mitk::ToFImageWriter::Pointer mitk::ToFImageRecorderFilter::GetToFImageWriter | ( | ) |
Returns a pointer to the ToFImageWriter internally used.
Definition at line 113 of file mitkToFImageRecorderFilter.cpp.
mitk::ToFImageRecorderFilter::mitkClassMacro | ( | ToFImageRecorderFilter | , |
ImageToImageFilter | |||
) |
|
static |
void mitk::ToFImageRecorderFilter::SetFileName | ( | std::string | fileName | ) |
Set file name for writing image files This filename will be appended by "_DistanceImage", "_AmplitudeImage", or "_IntensityImage" for the single images.
fileName | base file name to save image filtes |
Definition at line 37 of file mitkToFImageRecorderFilter.cpp.
References mitk::ToFNrrdImageWriter::New(), and mitk::ToFImageCsvWriter::New().
void mitk::ToFImageRecorderFilter::SetImageType | ( | ToFImageWriter::ToFImageType | tofImageType | ) |
Set image type for recording.
tofImageType | either 3D Volume (ToFImageType3D) or temporal image stack (ToFImageType2DPlusT) |
Definition at line 64 of file mitkToFImageRecorderFilter.cpp.
|
virtual |
sets the input of this filter
input | is the distance image of e.g. a ToF camera |
Definition at line 123 of file mitkToFImageRecorderFilter.cpp.
|
virtual |
sets the input of this filter at idx
idx | number of the current input |
input | is the distance image of e.g. a ToF camera |
Definition at line 128 of file mitkToFImageRecorderFilter.cpp.
References mitk::Image::GetDimension().
void mitk::ToFImageRecorderFilter::SetToFImageWriter | ( | ToFImageWriter::Pointer | tofImageWriter | ) |
Sets a pointer to the ToFImageWriter internally used.
tofImageWriter | ToFImageWriter |
Definition at line 118 of file mitkToFImageRecorderFilter.cpp.
void mitk::ToFImageRecorderFilter::StartRecording | ( | ) |
start recording of data
Definition at line 96 of file mitkToFImageRecorderFilter.cpp.
void mitk::ToFImageRecorderFilter::StopRecording | ( | ) |
stop recording of data
Definition at line 107 of file mitkToFImageRecorderFilter.cpp.
|
protected |
Definition at line 115 of file mitkToFImageRecorderFilter.h.
Referenced by ToFImageRecorderFilter().
|
protected |
flag indicating if filter is currently recording
Definition at line 114 of file mitkToFImageRecorderFilter.h.
|
protected |
image writer used for streaming input data to file
Definition at line 113 of file mitkToFImageRecorderFilter.h.