|
MITK-IGT
IGT Extension of MITK
|
Image source providing ToF images. Interface for filters provided in ToFProcessing module. More...
#include <mitkToFImageGrabber.h>
Public Member Functions | |
| mitkClassMacro (ToFImageGrabber, ImageSource) | |
| itkFactorylessNewMacro (Self) | |
| itkCloneMacro (Self) | |
| void | ShowDebugImage (float *distances) |
| virtual bool | ConnectCamera () |
| Establish a connection to the ToF camera. | |
| virtual bool | DisconnectCamera () |
| Disconnects the ToF camera. | |
| 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. | |
| virtual void | StopCamera () |
| Stops the continuous updating of the camera. | |
| virtual bool | IsCameraActive () |
| Returns true if the camera is connected and started. | |
| virtual bool | IsCameraConnected () |
| Returns true if the camera is connected. | |
| void | SetCameraDevice (ToFCameraDevice *aToFCameraDevice) |
| Sets the ToF device, the image grabber is grabbing the images from. | |
| ToFCameraDevice * | GetCameraDevice () |
| Get the currently set ToF camera device. | |
| int | SetModulationFrequency (int modulationFrequency) |
| Set the modulation frequency used by the ToF camera. For default values see the corresponding device classes. | |
| int | GetModulationFrequency () |
| Get the modulation frequency used by the ToF camera. | |
| int | SetIntegrationTime (int integrationTime) |
| Set the integration time used by the ToF camera. For default values see the corresponding device classes. | |
| int | GetIntegrationTime () |
| Get the integration time in used by the ToF camera. | |
| int | GetCaptureWidth () |
| Get the dimension in x direction of the ToF image. | |
| int | GetCaptureHeight () |
| Get the dimension in y direction of the ToF image. | |
| int | GetPixelNumber () |
| Get the number of pixel in the ToF image. | |
| int | GetRGBImageWidth () |
| Get the dimension in x direction of the ToF image. | |
| int | GetRGBImageHeight () |
| Get the dimension in y direction of the ToF image. | |
| int | GetRGBPixelNumber () |
| Get the number of pixel in the ToF image. | |
| 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) | |
| itkFactorylessNewMacro (Self) | |
| itkCloneMacro (Self) | |
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 | |
| virtual void | AllocateImageArrays () |
| Allocate memory for the image arrays m_IntensityArray, m_DistanceArray, m_AmplitudeArray and m_SourceDataArray. | |
| void | InitializeImages () |
| InitializeImages Initialze the geometries of the images according to the device properties. | |
| 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. | |
Protected Member Functions inherited from mitk::ToFImageSource | |
| ToFImageSource () | |
| ~ToFImageSource () override | |
Protected Attributes | |
| ToFCameraDevice::Pointer | m_ToFCameraDevice |
| Device allowing access to ToF image data. | |
| int | m_CaptureWidth |
| Width of the captured ToF image. | |
| int | m_CaptureHeight |
| Height of the captured ToF image. | |
| int | m_PixelNumber |
| Number of pixels in the image. | |
| int | m_RGBImageWidth |
| Width of the captured RGB image. | |
| int | m_RGBImageHeight |
| Height of the captured RGB image. | |
| int | m_RGBPixelNumber |
| Number of pixels in the RGB image. | |
| int | m_ImageSequence |
| counter for currently acquired images | |
| int | m_SourceDataSize |
| size of the source data in bytes | |
| float * | m_IntensityArray |
| member holding the current intensity array | |
| float * | m_DistanceArray |
| member holding the current distance array | |
| float * | m_AmplitudeArray |
| member holding the current amplitude array | |
| char * | m_SourceDataArray |
| member holding the current source data array | |
| unsigned char * | m_RgbDataArray |
| member holding the current rgb data array | |
| unsigned long | m_DeviceObserverTag |
| tag of the observer for the ToFCameraDevice | |
Protected Attributes inherited from mitk::ToFImageSource | |
| us::ServiceRegistration< Self > | m_ServiceRegistration |
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 |
Definition at line 19 of file mitkToFImageGrabber.cpp.
|
overrideprotected |
Definition at line 49 of file mitkToFImageGrabber.cpp.
|
protectedvirtual |
Allocate memory for the image arrays m_IntensityArray, m_DistanceArray, m_AmplitudeArray and m_SourceDataArray.
Definition at line 317 of file mitkToFImageGrabber.cpp.
|
protectedvirtual |
clean up memory allocated for the image arrays m_IntensityArray, m_DistanceArray, m_AmplitudeArray and m_SourceDataArray
Definition at line 287 of file mitkToFImageGrabber.cpp.
|
virtual |
Establish a connection to the ToF camera.
Definition at line 103 of file mitkToFImageGrabber.cpp.
|
virtual |
Disconnects the ToF camera.
Definition at line 123 of file mitkToFImageGrabber.cpp.
|
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.
Definition at line 62 of file mitkToFImageGrabber.cpp.
| bool mitk::ToFImageGrabber::GetBoolProperty | ( | const char * | propertyKey | ) |
Definition at line 252 of file mitkToFImageGrabber.cpp.
| ToFCameraDevice * mitk::ToFImageGrabber::GetCameraDevice | ( | ) |
Get the currently set ToF camera device.
Definition at line 162 of file mitkToFImageGrabber.cpp.
| int mitk::ToFImageGrabber::GetCaptureHeight | ( | ) |
Get the dimension in y direction of the ToF image.
Definition at line 172 of file mitkToFImageGrabber.cpp.
| int mitk::ToFImageGrabber::GetCaptureWidth | ( | ) |
Get the dimension in x direction of the ToF image.
Definition at line 167 of file mitkToFImageGrabber.cpp.
| float mitk::ToFImageGrabber::GetFloatProperty | ( | const char * | propertyKey | ) |
Definition at line 265 of file mitkToFImageGrabber.cpp.
| int mitk::ToFImageGrabber::GetIntegrationTime | ( | ) |
Get the integration time in used by the ToF camera.
Definition at line 213 of file mitkToFImageGrabber.cpp.
| int mitk::ToFImageGrabber::GetIntProperty | ( | const char * | propertyKey | ) |
Definition at line 259 of file mitkToFImageGrabber.cpp.
| int mitk::ToFImageGrabber::GetModulationFrequency | ( | ) |
Get the modulation frequency used by the ToF camera.
Definition at line 220 of file mitkToFImageGrabber.cpp.
| int mitk::ToFImageGrabber::GetPixelNumber | ( | ) |
Get the number of pixel in the ToF image.
Definition at line 177 of file mitkToFImageGrabber.cpp.
| BaseProperty * mitk::ToFImageGrabber::GetProperty | ( | const char * | propertyKey | ) |
Definition at line 277 of file mitkToFImageGrabber.cpp.
| int mitk::ToFImageGrabber::GetRGBImageHeight | ( | ) |
Get the dimension in y direction of the ToF image.
Definition at line 187 of file mitkToFImageGrabber.cpp.
| int mitk::ToFImageGrabber::GetRGBImageWidth | ( | ) |
Get the dimension in x direction of the ToF image.
Definition at line 182 of file mitkToFImageGrabber.cpp.
| int mitk::ToFImageGrabber::GetRGBPixelNumber | ( | ) |
Get the number of pixel in the ToF image.
Definition at line 192 of file mitkToFImageGrabber.cpp.
| const char * mitk::ToFImageGrabber::GetStringProperty | ( | const char * | propertyKey | ) |
Definition at line 271 of file mitkToFImageGrabber.cpp.
|
protected |
InitializeImages Initialze the geometries of the images according to the device properties.
Definition at line 329 of file mitkToFImageGrabber.cpp.
|
virtual |
Returns true if the camera is connected and started.
Definition at line 144 of file mitkToFImageGrabber.cpp.
|
virtual |
Returns true if the camera is connected.
Definition at line 148 of file mitkToFImageGrabber.cpp.
| mitk::ToFImageGrabber::itkCloneMacro | ( | Self | ) |
| mitk::ToFImageGrabber::itkFactorylessNewMacro | ( | Self | ) |
| mitk::ToFImageGrabber::mitkClassMacro | ( | ToFImageGrabber | , |
| ImageSource | ) |
|
protected |
called when the ToFCameraDevice was modified
Definition at line 282 of file mitkToFImageGrabber.cpp.
| void mitk::ToFImageGrabber::SetBoolProperty | ( | const char * | propertyKey, |
| bool | boolValue ) |
Definition at line 227 of file mitkToFImageGrabber.cpp.
| 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 |
Definition at line 153 of file mitkToFImageGrabber.cpp.
| void mitk::ToFImageGrabber::SetFloatProperty | ( | const char * | propertyKey, |
| float | floatValue ) |
Definition at line 237 of file mitkToFImageGrabber.cpp.
| 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 |
Definition at line 205 of file mitkToFImageGrabber.cpp.
| void mitk::ToFImageGrabber::SetIntProperty | ( | const char * | propertyKey, |
| int | intValue ) |
Definition at line 232 of file mitkToFImageGrabber.cpp.
| 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 |
Definition at line 197 of file mitkToFImageGrabber.cpp.
| void mitk::ToFImageGrabber::SetProperty | ( | const char * | propertyKey, |
| BaseProperty * | propertyValue ) |
Definition at line 247 of file mitkToFImageGrabber.cpp.
| void mitk::ToFImageGrabber::SetStringProperty | ( | const char * | propertyKey, |
| const char * | stringValue ) |
Definition at line 242 of file mitkToFImageGrabber.cpp.
| 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.
Definition at line 128 of file mitkToFImageGrabber.cpp.
|
virtual |
Stops the continuous updating of the camera.
Definition at line 137 of file mitkToFImageGrabber.cpp.
|
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.