Medical Imaging Interaction Toolkit
2023.12.00
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... | |
void | SetInput (const InputImageType *input) override |
sets the input of this filter More... | |
void | SetInput (unsigned int idx, const InputImageType *input) override |
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 |
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 |
itk::DataObject::Pointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
Make a DataObject of the correct type to used as the specified output. More... | |
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 () override | |
standard destructor More... | |
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 () | |
~ImageToImageFilter () override | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
void | GenerateInputRequestedRegion () override |
Protected Member Functions inherited from mitk::ImageSource | |
ImageSource () | |
~ImageSource () override | |
void | GenerateData () override |
A version of GenerateData() specific for image processing filters. More... | |
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... | |
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 () | |
~BaseDataSource () override | |
Protected Attributes | |
bool | m_RecordingStarted |
flag indicating if filter is currently recording More... | |
ToFImageWriter::Pointer | m_ToFImageWriter |
image writer used for streaming input data to file More... | |
std::string | m_FileExtension |
Filter that allows recording of processed ToF images Internally the ToFImageWriter is used for writing.
Definition at line 28 of file mitkToFImageRecorderFilter.h.
|
protected |
standard constructor
|
overrideprotected |
standard destructor
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.
|
overrideprotected |
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
Image* mitk::ToFImageRecorderFilter::GetInput | ( | ) |
returns the input of this filter
Image* mitk::ToFImageRecorderFilter::GetInput | ( | unsigned int | idx | ) |
returns the input with id idx of this filter
ToFImageWriter::Pointer mitk::ToFImageRecorderFilter::GetToFImageWriter | ( | ) |
Returns a pointer to the ToFImageWriter internally used.
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 |
void mitk::ToFImageRecorderFilter::SetImageType | ( | ToFImageWriter::ToFImageType | tofImageType | ) |
Set image type for recording.
tofImageType | either 3D Volume (ToFImageType3D) or temporal image stack (ToFImageType2DPlusT) |
|
overridevirtual |
sets the input of this filter
input | is the distance image of e.g. a ToF camera |
Reimplemented from mitk::ImageToImageFilter.
|
overridevirtual |
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 |
Reimplemented from mitk::ImageToImageFilter.
void mitk::ToFImageRecorderFilter::SetToFImageWriter | ( | ToFImageWriter::Pointer | tofImageWriter | ) |
Sets a pointer to the ToFImageWriter internally used.
tofImageWriter | ToFImageWriter |
void mitk::ToFImageRecorderFilter::StartRecording | ( | ) |
start recording of data
void mitk::ToFImageRecorderFilter::StopRecording | ( | ) |
stop recording of data
|
protected |
Definition at line 112 of file mitkToFImageRecorderFilter.h.
|
protected |
flag indicating if filter is currently recording
Definition at line 110 of file mitkToFImageRecorderFilter.h.
|
protected |
image writer used for streaming input data to file
Definition at line 111 of file mitkToFImageRecorderFilter.h.