23 #ifndef __IPA_ABSTRACTCOLORCAMERA_H__ 24 #define __IPA_ABSTRACTCOLORCAMERA_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 <boost/shared_ptr.hpp> 38 #include <opencv/cv.h> 86 virtual unsigned long Init(std::string directory,
int cameraIndex = 0) =0;
94 virtual bool isOpen() {
return m_open;}
100 virtual unsigned long Open() =0;
104 virtual unsigned long Close() =0;
120 virtual unsigned long GetColorImage(cv::Mat* colorImage,
bool getLatestFrame=
true)=0;
134 virtual unsigned long SetPropertyDefaults() =0;
145 virtual unsigned long PrintCameraInformation() =0;
150 virtual unsigned long SaveParameters(
const char* filename)=0;
157 virtual unsigned long TestCamera(
const char* filename);
188 virtual unsigned long LoadParameters(
const char* filename,
int cameraIndex)=0;
192 virtual unsigned long SetParameters()=0;
206 #endif // __IPA_ABSTRACTCOLORCAMERA_H__
virtual unsigned long SetPathToImages(std::string path)
__DLL_LIBCAMERASENSORS__ AbstractColorCameraPtr CreateColorCamera_OpenCVCamera()
std::stringstream m_VideoMode
Mode 0-7.
unsigned long GetColorImage(char *colorImageData, bool getLatestFrame=true)
boost::shared_ptr< AbstractColorCamera > AbstractColorCameraPtr
t_ColorCameraParameters m_ColorCameraParameters
Storage for xml configuration file data.
std::stringstream m_IP
IP address of the camera.
ipa_CameraSensors::t_cameraRole m_CameraRole
Master or slave camera.
std::stringstream m_ColorMode
Mono8/16S/16, YUV411/422, Raw16, RGB8, ...
std::stringstream m_WhiteBalanceV
std::stringstream m_Saturation
std::stringstream m_Shutter
std::stringstream m_ImageHeight
std::stringstream m_ImageWidth
std::stringstream m_FrameRate
std::stringstream m_Gamma
std::stringstream m_Interface
Interface, the camera is connected to (i.e. USB, ETHERNET or FIREWIRE)
std::stringstream m_IsoSpeed
Guaranteed speed of isochronous transfer rate.
std::stringstream m_ExposureTime
bool m_initialized
True, when the camera has sucessfully been initialized.
__DLL_LIBCAMERASENSORS__ AbstractColorCameraPtr CreateColorCamera_VirtualCam()
virtual bool isInitialized()
__DLL_LIBCAMERASENSORS__ AbstractColorCameraPtr CreateColorCamera_ICCam()
std::stringstream m_WhiteBalanceU
std::stringstream m_VideoFormat
Format 0,1,2 or 7.
__DLL_LIBCAMERASENSORS__ AbstractColorCameraPtr CreateColorCamera_AxisCam()
bool m_open
True, when the camera has sucessfully been opend.
unsigned int m_BufferSize
Number of images, the camera buffers internally.
virtual int GetNumberOfImages()
t_cameraType m_CameraType
Camera Type.
std::stringstream m_Brightness
__DLL_LIBCAMERASENSORS__ AbstractColorCameraPtr CreateColorCamera_AVTPikeCam()
#define __DLL_LIBCAMERASENSORS__