#include <AVTPikeCam.h>
Classes | |
class | AVTPikeCamDeleter |
Public Member Functions | |
AVTPikeCam () | |
Constructor. More... | |
unsigned long | Close () |
unsigned long | GetColorImage (char *colorImageData, bool getLatestFrame) |
unsigned long | GetColorImage (cv::Mat *colorImage, bool getLatestFrame) |
unsigned long | GetProperty (t_cameraProperty *cameraProperty) |
unsigned long | Init (std::string directory, int cameraIndex=0) |
unsigned long | Open () |
unsigned long | PrintCameraInformation () |
unsigned long | SaveParameters (const char *filename) |
unsigned long | SetProperty (t_cameraProperty *cameraProperty) |
unsigned long | SetPropertyDefaults () |
unsigned long | TestCamera (const char *filename) |
~AVTPikeCam () | |
Destructor. More... | |
Public Member Functions inherited from ipa_CameraSensors::AbstractColorCamera | |
virtual t_cameraType | GetCameraType () |
unsigned long | GetColorImage (char *colorImageData, bool getLatestFrame=true) |
virtual int | GetNumberOfImages () |
virtual bool | isInitialized () |
virtual bool | isOpen () |
virtual unsigned long | SetPathToImages (std::string path) |
virtual | ~AbstractColorCamera () |
Destructor. More... | |
Private Member Functions | |
unsigned long | LoadParameters (const char *filename, int cameraIndex) |
unsigned long | SetParameters () |
Private Attributes | |
UINT32HL | m_GUID |
GUID (worldwide unique identifier) of the IEEE1395 camera. More... | |
bool | m_operationMode_B |
Camera specific parameters. More... | |
Static Private Attributes | |
static AVTPikeCamDeleter | m_Deleter |
of the number of cameras from this type More... | |
static bool | m_OpenExecuted = false |
Trigger takes care, that AVT library is opend only once. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ipa_CameraSensors::AbstractColorCamera | |
unsigned int | m_BufferSize |
Number of images, the camera buffers internally. More... | |
t_cameraType | m_CameraType |
Camera Type. More... | |
t_ColorCameraParameters | m_ColorCameraParameters |
Storage for xml configuration file data. More... | |
bool | m_initialized |
True, when the camera has sucessfully been initialized. More... | |
bool | m_open |
True, when the camera has sucessfully been opend. More... | |
Interface developed for AVT PIKE 145C camera. Interface should also fit to other IEEE 1394 cameras.
Definition at line 73 of file AVTPikeCam.h.
AVTPikeCam::AVTPikeCam | ( | ) |
Constructor.
Definition at line 41 of file AVTPikeCam.cpp.
AVTPikeCam::~AVTPikeCam | ( | ) |
Destructor.
Definition at line 59 of file AVTPikeCam.cpp.
|
virtual |
Close camera device.
Implements ipa_CameraSensors::AbstractColorCamera.
Definition at line 345 of file AVTPikeCam.cpp.
unsigned long AVTPikeCam::GetColorImage | ( | char * | colorImageData, |
bool | getLatestFrame | ||
) |
Definition at line 554 of file AVTPikeCam.cpp.
|
virtual |
Retrieves an image from the camera. cv::Mat
object is initialized on demand.
colorImage | The image that has been acquired by the camera. |
getLatestFrame | If true, the camera acquires a new frame and returns it. Otherwise, the next frame following the last returned frame is returned from the internal camera buffer. |
IPA_Exception | Throws an exception, if camera access failed |
Implements ipa_CameraSensors::AbstractColorCamera.
Definition at line 717 of file AVTPikeCam.cpp.
|
virtual |
Function to get properties of the camera sensor.
propertyID | The ID of the property. |
cameraProperty | The value of the property. |
Implements ipa_CameraSensors::AbstractColorCamera.
Definition at line 410 of file AVTPikeCam.cpp.
|
virtual |
Initializes the color camera. Camera specific constants may be set within the configuration file cameraSensorsIni.xml. The function has to set the member variable m_initialized
.
directory | Path to the configuration file directory. |
cameraIndex | It is possible to have several cameras of the same type on the system. One may us the camera index to apply different configuration files to each of them |
< Error code variable
Implements ipa_CameraSensors::AbstractColorCamera.
Definition at line 76 of file AVTPikeCam.cpp.
|
privatevirtual |
Parses the XML configuration file, that holds the camera settings
filename | The file name and path of the configuration file |
cameraIndex | The index of the camera within the configuration file i.e. AVT_PIKE_CAM_0 or AVT_PIKE_CAM_1 |
Implements ipa_CameraSensors::AbstractColorCamera.
Definition at line 3352 of file AVTPikeCam.cpp.
|
virtual |
Opens the camera device. All camera specific parameters for opening the camera should have been set within the Init
function.
Implements ipa_CameraSensors::AbstractColorCamera.
Definition at line 176 of file AVTPikeCam.cpp.
|
virtual |
Shows the camera's parameters information. Shows actual value, max and min value and auto mode for each parameter
Implements ipa_CameraSensors::AbstractColorCamera.
Definition at line 741 of file AVTPikeCam.cpp.
|
virtual |
Saves all parameters on hard disk.
filename | The filename of the storage. |
Implements ipa_CameraSensors::AbstractColorCamera.
Definition at line 336 of file AVTPikeCam.cpp.
|
privatevirtual |
Parses the data extracted by LoadParameters
and calls the corresponding SetProperty
functions.
Implements ipa_CameraSensors::AbstractColorCamera.
Definition at line 2706 of file AVTPikeCam.cpp.
|
virtual |
Sets the camera properties. The following parameters are admitted: ol> PROP_BRIGHTNESS: 0..1023 PROP_SHUTTER: 0..4095, VALUE_AUTO PROP_AUTO_EXPOSURE: 50..205 PROP_WHITE_BALANCE_U: 0..568, VALUE_AUTO PROP_WHITE_BALANCE_V: 0..568, VALUE_AUTO PROP_HUE: 0..80 PROP_SATURATION: 0..511 PROP_GAMMA: 0..2 PROP_GAIN: 0..680 PROP_FRAME_RATE: 0..60 PROP_FW_OPERATION_MODE: A / B /ol>
====================================================================
Implements ipa_CameraSensors::AbstractColorCamera.
Definition at line 838 of file AVTPikeCam.cpp.
|
virtual |
Function to set property defaults of the camera sensor.
Implements ipa_CameraSensors::AbstractColorCamera.
Definition at line 405 of file AVTPikeCam.cpp.
|
virtual |
Unit Test for the camera interface. Tests each of the single interface functions and displays the output on standard out.
filename | Path to the camera initialization xml file. |
Reimplemented from ipa_CameraSensors::AbstractColorCamera.
Definition at line 827 of file AVTPikeCam.cpp.
|
staticprivate |
of the number of cameras from this type
Cleans up stuff that has to done only once independent
Definition at line 96 of file AVTPikeCam.h.
|
private |
GUID (worldwide unique identifier) of the IEEE1395 camera.
Definition at line 94 of file AVTPikeCam.h.
|
staticprivate |
Trigger takes care, that AVT library is opend only once.
Definition at line 95 of file AVTPikeCam.h.
|
private |
Camera specific parameters.
FireWire A (400Mbit/s) or FireWire B (800Mbit/s).
Definition at line 93 of file AVTPikeCam.h.