23 #ifndef __IPA_ABSTRACTRANGEIMAGINGSENSOR_H__ 24 #define __IPA_ABSTRACTRANGEIMAGINGSENSOR_H__ 32 #include "cob_common/cob_vision_utils/common/include/cob_vision_utils/CameraSensorDefines.h" 33 #include "cob_common/cob_vision_utils/common/include/cob_vision_utils/CameraSensorTypes.h" 36 #include <opencv/cv.h> 42 #include <boost/shared_ptr.hpp> 62 std::stringstream m_IntegrationTime;
83 virtual unsigned long Init(std::string directory,
int cameraIndex = 0) = 0;
89 virtual unsigned long Open() = 0;
93 virtual unsigned long Close() = 0;
103 virtual unsigned long SetPropertyDefaults() =0;
121 virtual unsigned long AcquireImages(cv::Mat* rangeImage = 0, cv::Mat* intensityImage = 0,
122 cv::Mat* cartesianImage = 0,
bool getLatestFrame=
true,
bool undistort=
true,
137 virtual unsigned long AcquireImages(
int widthStepRange,
int widthStepGray,
int widthStepCartesian,
char* rangeImage=NULL,
char* grayImage=NULL,
138 char* cartesianImage=NULL,
bool getLatestFrame=
true,
bool undistort=
true,
145 virtual unsigned long SaveParameters(
const char* filename) = 0;
149 virtual bool isInitialized() = 0;
153 virtual bool isOpen() = 0;
172 virtual unsigned long SetIntrinsics(cv::Mat& intrinsicMatrix,
173 cv::Mat& undistortMapX, cv::Mat& undistortMapY);
183 virtual unsigned long SetPathToImages(std::string path);
209 virtual unsigned long LoadParameters(
const char* filename,
int cameraIndex) = 0;
220 #endif // __IPA_ABSTRACTRANGEIMAGINGSENSOR_H__
virtual int GetNumberOfImages()
cv::Mat m_intrinsicMatrix
Intrinsic parameters [fx 0 cx; 0 fy cy; 0 0 1].
std::stringstream m_ExposureMode
Exposure mode of camera.
t_CalibrationMethod m_CalibrationMethod
Calibration method MATLAB, MATLAB_NO_Z or SWISSRANGER.
std::stringstream m_IP
IP address of the camera.
std::stringstream m_DistanceOffset
Distance offset added to each distance value.
std::stringstream m_LensCalibration
Apply lens calibration from manufacturer.
ipa_CameraSensors::t_cameraRole m_CameraRole
Master or slave camera.
__DLL_LIBCAMERASENSORS__ AbstractRangeImagingSensorPtr CreateRangeImagingSensor_VirtualCam()
__DLL_LIBCAMERASENSORS__ AbstractRangeImagingSensorPtr CreateRangeImagingSensor_PMDCam()
std::stringstream m_AmplitudeThreshold
their amplitude is lower than the amplitude threshold
t_cameraType m_CameraType
Camera Type.
unsigned int m_BufferSize
Number of images, the camera buffers internally.
std::stringstream m_AcquireMode
Swissranger acquire mode.
boost::shared_ptr< AbstractRangeImagingSensor > AbstractRangeImagingSensorPtr
cv::Mat m_undistortMapX
The output array of x coordinates for the undistortion map.
virtual t_cameraType GetCameraType()
unsigned int m_ImageCounter
Holds the index of the image that is extracted during the next call of AcquireImages ...
std::stringstream m_ROI
Region of interest.
cv::Mat m_undistortMapY
The output array of Y coordinates for the undistortion map.
bool m_initialized
True, when the camera has sucessfully been initialized.
__DLL_LIBCAMERASENSORS__ AbstractRangeImagingSensorPtr CreateRangeImagingSensor_Kinect()
std::stringstream m_ModulationFrequency
Modulation Frequency. The higher the frequency, the lower the measurable distance.
__DLL_LIBCAMERASENSORS__ AbstractRangeImagingSensorPtr CreateRangeImagingSensor_Swissranger()
t_RangeCameraParameters m_RangeCameraParameters
Storage for xml configuration file parmeters.
std::stringstream m_Interface
Interface, the camera is connected to (i.e. USB or ETHERNET)
virtual t_CalibrationMethod GetCalibrationMethod()
#define __DLL_LIBCAMERASENSORS__
bool m_open
True, when the camera has sucessfully been opend.