Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Image source providing ToF images. Interface for filters provided in ToFProcessing module. More...
#include <mitkToFImageGrabber.h>
Public Member Functions | |
mitkClassMacro (ToFImageGrabber, ImageSource) | |
Pointer | Clone () const |
void | ShowDebugImage (float *distances) |
virtual bool | ConnectCamera () |
Establish a connection to the ToF camera. More... | |
virtual bool | DisconnectCamera () |
Disconnects the ToF camera. More... | |
virtual void | StartCamera () |
Starts the continuous updating of the camera. A separate thread updates the source data, the main thread processes the source data and creates images and coordinates. More... | |
virtual void | StopCamera () |
Stops the continuous updating of the camera. More... | |
virtual bool | IsCameraActive () |
Returns true if the camera is connected and started. More... | |
virtual bool | IsCameraConnected () |
Returns true if the camera is connected. More... | |
void | SetCameraDevice (ToFCameraDevice *aToFCameraDevice) |
Sets the ToF device, the image grabber is grabbing the images from. More... | |
ToFCameraDevice * | GetCameraDevice () |
Get the currently set ToF camera device. More... | |
int | SetModulationFrequency (int modulationFrequency) |
Set the modulation frequency used by the ToF camera. For default values see the corresponding device classes. More... | |
int | GetModulationFrequency () |
Get the modulation frequency used by the ToF camera. More... | |
int | SetIntegrationTime (int integrationTime) |
Set the integration time used by the ToF camera. For default values see the corresponding device classes. More... | |
int | GetIntegrationTime () |
Get the integration time in used by the ToF camera. More... | |
int | GetCaptureWidth () |
Get the dimension in x direction of the ToF image. More... | |
int | GetCaptureHeight () |
Get the dimension in y direction of the ToF image. More... | |
int | GetPixelNumber () |
Get the number of pixel in the ToF image. More... | |
int | GetRGBImageWidth () |
Get the dimension in x direction of the ToF image. More... | |
int | GetRGBImageHeight () |
Get the dimension in y direction of the ToF image. More... | |
int | GetRGBPixelNumber () |
Get the number of pixel in the ToF image. More... | |
void | SetBoolProperty (const char *propertyKey, bool boolValue) |
void | SetIntProperty (const char *propertyKey, int intValue) |
void | SetFloatProperty (const char *propertyKey, float floatValue) |
void | SetStringProperty (const char *propertyKey, const char *stringValue) |
void | SetProperty (const char *propertyKey, BaseProperty *propertyValue) |
bool | GetBoolProperty (const char *propertyKey) |
int | GetIntProperty (const char *propertyKey) |
float | GetFloatProperty (const char *propertyKey) |
const char * | GetStringProperty (const char *propertyKey) |
BaseProperty * | GetProperty (const char *propertyKey) |
Public Member Functions inherited from mitk::ToFImageSource | |
mitkClassMacro (ToFImageSource, ImageSource) | |
Pointer | Clone () const |
Public Member Functions inherited from mitk::ImageSource | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () 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 |
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::ToFImageSource | |
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 | |
void | OnToFCameraDeviceModified () |
virtual void | CleanUpImageArrays () |
clean up memory allocated for the image arrays m_IntensityArray, m_DistanceArray, m_AmplitudeArray and m_SourceDataArray More... | |
virtual void | AllocateImageArrays () |
Allocate memory for the image arrays m_IntensityArray, m_DistanceArray, m_AmplitudeArray and m_SourceDataArray. More... | |
void | InitializeImages () |
InitializeImages Initialze the geometries of the images according to the device properties. More... | |
ToFImageGrabber () | |
~ToFImageGrabber () override | |
void | GenerateData () override |
Method generating the outputs of this filter. Called in the updated process of the pipeline. 0: distance image 1: amplitude image 2: intensity image 3: RGB image. More... | |
Protected Member Functions inherited from mitk::ToFImageSource | |
ToFImageSource () | |
~ToFImageSource () 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 | |
ToFCameraDevice::Pointer | m_ToFCameraDevice |
Device allowing access to ToF image data. More... | |
int | m_CaptureWidth |
Width of the captured ToF image. More... | |
int | m_CaptureHeight |
Height of the captured ToF image. More... | |
int | m_PixelNumber |
Number of pixels in the image. More... | |
int | m_RGBImageWidth |
Width of the captured RGB image. More... | |
int | m_RGBImageHeight |
Height of the captured RGB image. More... | |
int | m_RGBPixelNumber |
Number of pixels in the RGB image. More... | |
int | m_ImageSequence |
counter for currently acquired images More... | |
int | m_SourceDataSize |
size of the source data in bytes More... | |
float * | m_IntensityArray |
member holding the current intensity array More... | |
float * | m_DistanceArray |
member holding the current distance array More... | |
float * | m_AmplitudeArray |
member holding the current amplitude array More... | |
char * | m_SourceDataArray |
member holding the current source data array More... | |
unsigned char * | m_RgbDataArray |
member holding the current rgb data array More... | |
unsigned long | m_DeviceObserverTag |
tag of the observer for the ToFCameraDevice More... | |
Protected Attributes inherited from mitk::ToFImageSource | |
us::ServiceRegistration< Self > | m_ServiceRegistration |
Additional Inherited Members | |
Public Types inherited from mitk::ImageSource | |
typedef ImageSource | Self |
typedef BaseDataSource | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef mitk::Image | OutputImageType |
Some convenient typedefs. More... | |
typedef OutputImageType | OutputType |
typedef OutputImageType::Pointer | OutputImagePointer |
typedef SlicedData::RegionType | OutputImageRegionType |
Public Types inherited from mitk::BaseDataSource | |
typedef BaseDataSource | Self |
typedef itk::ProcessObject | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef BaseData | OutputType |
typedef itk::DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
Static Protected Member Functions inherited from mitk::ImageSource | |
static itk::ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
Static function used as a "callback" by the MultiThreader. More... | |
Static Protected Member Functions inherited from mitk::BaseDataSource | |
static Pointer | New () |
Image source providing ToF images. Interface for filters provided in ToFProcessing module.
Documentation This class internally holds a ToFCameraDevice to access the images acquired by a ToF camera.
Provided images include: distance image (output 0), amplitude image (output 1), intensity image (output 2)
Definition at line 34 of file mitkToFImageGrabber.h.
|
protected |
|
overrideprotected |
|
protectedvirtual |
Allocate memory for the image arrays m_IntensityArray, m_DistanceArray, m_AmplitudeArray and m_SourceDataArray.
|
protectedvirtual |
clean up memory allocated for the image arrays m_IntensityArray, m_DistanceArray, m_AmplitudeArray and m_SourceDataArray
Pointer mitk::ToFImageGrabber::Clone | ( | ) | const |
|
virtual |
Establish a connection to the ToF camera.
|
virtual |
Disconnects the ToF camera.
|
overrideprotected |
Method generating the outputs of this filter. Called in the updated process of the pipeline. 0: distance image 1: amplitude image 2: intensity image 3: RGB image.
bool mitk::ToFImageGrabber::GetBoolProperty | ( | const char * | propertyKey | ) |
ToFCameraDevice* mitk::ToFImageGrabber::GetCameraDevice | ( | ) |
Get the currently set ToF camera device.
int mitk::ToFImageGrabber::GetCaptureHeight | ( | ) |
Get the dimension in y direction of the ToF image.
int mitk::ToFImageGrabber::GetCaptureWidth | ( | ) |
Get the dimension in x direction of the ToF image.
float mitk::ToFImageGrabber::GetFloatProperty | ( | const char * | propertyKey | ) |
int mitk::ToFImageGrabber::GetIntegrationTime | ( | ) |
Get the integration time in used by the ToF camera.
int mitk::ToFImageGrabber::GetIntProperty | ( | const char * | propertyKey | ) |
int mitk::ToFImageGrabber::GetModulationFrequency | ( | ) |
Get the modulation frequency used by the ToF camera.
int mitk::ToFImageGrabber::GetPixelNumber | ( | ) |
Get the number of pixel in the ToF image.
BaseProperty* mitk::ToFImageGrabber::GetProperty | ( | const char * | propertyKey | ) |
int mitk::ToFImageGrabber::GetRGBImageHeight | ( | ) |
Get the dimension in y direction of the ToF image.
int mitk::ToFImageGrabber::GetRGBImageWidth | ( | ) |
Get the dimension in x direction of the ToF image.
int mitk::ToFImageGrabber::GetRGBPixelNumber | ( | ) |
Get the number of pixel in the ToF image.
const char* mitk::ToFImageGrabber::GetStringProperty | ( | const char * | propertyKey | ) |
|
protected |
InitializeImages Initialze the geometries of the images according to the device properties.
|
virtual |
Returns true if the camera is connected and started.
|
virtual |
Returns true if the camera is connected.
mitk::ToFImageGrabber::mitkClassMacro | ( | ToFImageGrabber | , |
ImageSource | |||
) |
|
static |
|
protected |
called when the ToFCameraDevice was modified
void mitk::ToFImageGrabber::SetBoolProperty | ( | const char * | propertyKey, |
bool | boolValue | ||
) |
void mitk::ToFImageGrabber::SetCameraDevice | ( | ToFCameraDevice * | aToFCameraDevice | ) |
Sets the ToF device, the image grabber is grabbing the images from.
aToFCameraDevice | device internally used for grabbing the images from the camera |
void mitk::ToFImageGrabber::SetFloatProperty | ( | const char * | propertyKey, |
float | floatValue | ||
) |
int mitk::ToFImageGrabber::SetIntegrationTime | ( | int | integrationTime | ) |
Set the integration time used by the ToF camera. For default values see the corresponding device classes.
integrationTime | integration time in ms |
void mitk::ToFImageGrabber::SetIntProperty | ( | const char * | propertyKey, |
int | intValue | ||
) |
int mitk::ToFImageGrabber::SetModulationFrequency | ( | int | modulationFrequency | ) |
Set the modulation frequency used by the ToF camera. For default values see the corresponding device classes.
modulationFrequency | modulation frequency in Hz |
void mitk::ToFImageGrabber::SetProperty | ( | const char * | propertyKey, |
BaseProperty * | propertyValue | ||
) |
void mitk::ToFImageGrabber::SetStringProperty | ( | const char * | propertyKey, |
const char * | stringValue | ||
) |
void mitk::ToFImageGrabber::ShowDebugImage | ( | float * | distances | ) |
|
virtual |
Starts the continuous updating of the camera. A separate thread updates the source data, the main thread processes the source data and creates images and coordinates.
|
virtual |
Stops the continuous updating of the camera.
|
protected |
member holding the current amplitude array
Definition at line 187 of file mitkToFImageGrabber.h.
|
protected |
Height of the captured ToF image.
Definition at line 178 of file mitkToFImageGrabber.h.
|
protected |
Width of the captured ToF image.
Definition at line 177 of file mitkToFImageGrabber.h.
|
protected |
tag of the observer for the ToFCameraDevice
Definition at line 190 of file mitkToFImageGrabber.h.
|
protected |
member holding the current distance array
Definition at line 186 of file mitkToFImageGrabber.h.
|
protected |
counter for currently acquired images
Definition at line 183 of file mitkToFImageGrabber.h.
|
protected |
member holding the current intensity array
Definition at line 185 of file mitkToFImageGrabber.h.
|
protected |
Number of pixels in the image.
Definition at line 179 of file mitkToFImageGrabber.h.
|
protected |
member holding the current rgb data array
Definition at line 189 of file mitkToFImageGrabber.h.
|
protected |
Height of the captured RGB image.
Definition at line 181 of file mitkToFImageGrabber.h.
|
protected |
Width of the captured RGB image.
Definition at line 180 of file mitkToFImageGrabber.h.
|
protected |
Number of pixels in the RGB image.
Definition at line 182 of file mitkToFImageGrabber.h.
|
protected |
member holding the current source data array
Definition at line 188 of file mitkToFImageGrabber.h.
|
protected |
size of the source data in bytes
Definition at line 184 of file mitkToFImageGrabber.h.
|
protected |
Device allowing access to ToF image data.
Definition at line 176 of file mitkToFImageGrabber.h.