Medical Imaging Interaction Toolkit
2018.4.99-389bf124
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... | |
![]() | |
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 |
![]() | |
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 |
![]() | |
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 const char * | GetStaticNameOfClass () |
static Pointer | New () |
![]() | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
Method for creation through the object factory. More... | |
![]() | |
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... | |
![]() | |
ImageToImageFilter () | |
~ImageToImageFilter () override | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
void | GenerateInputRequestedRegion () override |
![]() | |
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... | |
![]() | |
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
Definition at line 24 of file mitkToFImageRecorderFilter.cpp.
References m_FileExtension.
|
overrideprotected |
standard destructor
Definition at line 29 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 154 of file mitkToFImageRecorderFilter.cpp.
References mitk::ImageSource::GetOutput(), and mitk::ImageSource::MakeOutput().
Referenced by SetInput().
|
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
Definition at line 65 of file mitkToFImageRecorderFilter.cpp.
References mitk::ImageAccessorBase::GetData(), GetInput(), m_RecordingStarted, and m_ToFImageWriter.
mitk::Image * mitk::ToFImageRecorderFilter::GetInput | ( | void | ) |
returns the input of this filter
Definition at line 142 of file mitkToFImageRecorderFilter.cpp.
Referenced by GenerateData().
mitk::Image * mitk::ToFImageRecorderFilter::GetInput | ( | unsigned int | idx | ) |
returns the input with id idx of this filter
Definition at line 147 of file mitkToFImageRecorderFilter.cpp.
mitk::ToFImageWriter::Pointer mitk::ToFImageRecorderFilter::GetToFImageWriter | ( | ) |
Returns a pointer to the ToFImageWriter internally used.
Definition at line 109 of file mitkToFImageRecorderFilter.cpp.
References m_ToFImageWriter.
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 33 of file mitkToFImageRecorderFilter.cpp.
References m_FileExtension, m_ToFImageWriter, 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 60 of file mitkToFImageRecorderFilter.cpp.
References m_ToFImageWriter.
|
overridevirtual |
sets the input of this filter
input | is the distance image of e.g. a ToF camera |
Reimplemented from mitk::ImageToImageFilter.
Definition at line 119 of file mitkToFImageRecorderFilter.cpp.
|
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.
Definition at line 124 of file mitkToFImageRecorderFilter.cpp.
References CreateOutputsForAllInputs(), mitk::Image::GetDimension(), and m_ToFImageWriter.
void mitk::ToFImageRecorderFilter::SetToFImageWriter | ( | ToFImageWriter::Pointer | tofImageWriter | ) |
Sets a pointer to the ToFImageWriter internally used.
tofImageWriter | ToFImageWriter |
Definition at line 114 of file mitkToFImageRecorderFilter.cpp.
References m_ToFImageWriter.
void mitk::ToFImageRecorderFilter::StartRecording | ( | ) |
start recording of data
Definition at line 92 of file mitkToFImageRecorderFilter.cpp.
References m_RecordingStarted, and m_ToFImageWriter.
void mitk::ToFImageRecorderFilter::StopRecording | ( | ) |
stop recording of data
Definition at line 103 of file mitkToFImageRecorderFilter.cpp.
References m_RecordingStarted, and m_ToFImageWriter.
|
protected |
Definition at line 112 of file mitkToFImageRecorderFilter.h.
Referenced by SetFileName(), and ToFImageRecorderFilter().
|
protected |
flag indicating if filter is currently recording
Definition at line 110 of file mitkToFImageRecorderFilter.h.
Referenced by GenerateData(), StartRecording(), and StopRecording().
|
protected |
image writer used for streaming input data to file
Definition at line 111 of file mitkToFImageRecorderFilter.h.
Referenced by GenerateData(), GetToFImageWriter(), SetFileName(), SetImageType(), SetInput(), SetToFImageWriter(), StartRecording(), and StopRecording().