39 #ifndef _vpFlyCaptureGrabber_h_ 40 #define _vpFlyCaptureGrabber_h_ 43 #include <visp3/core/vpConfig.h> 44 #include <visp3/core/vpFrameGrabber.h> 46 #ifdef VISP_HAVE_FLYCAPTURE 48 #include <FlyCapture2.h> 170 float getBrightness();
171 std::ostream &getCameraInfo(std::ostream &os);
174 FlyCapture2::Camera *getCameraHandler();
177 bool getCameraPower();
178 static unsigned int getCameraSerial(
unsigned int index);
180 float getFrameRate();
182 static unsigned int getNumCameras();
183 unsigned int getSharpness();
186 bool isCameraPowerAvailable();
191 bool isFormat7Supported(FlyCapture2::Mode format7_mode);
192 bool isVideoModeAndFrameRateSupported(FlyCapture2::VideoMode video_mode, FlyCapture2::FrameRate frame_rate);
199 float setBrightness(
bool brightness_auto,
float brightness_value = 0);
200 void setCameraIndex(
unsigned int index);
201 void setCameraPower(
bool on);
202 void setCameraSerial(
unsigned int serial);
203 float setExposure(
bool exposure_on,
bool exposure_auto,
float exposure_value = 0);
204 float setGain(
bool gain_auto,
float gain_value = 0);
205 void setFormat7VideoMode(FlyCapture2::Mode format7_mode, FlyCapture2::PixelFormat pixel_format,
unsigned int width,
206 unsigned int height);
207 float setFrameRate(
float frame_rate);
208 unsigned int setSharpness(
bool sharpness_on,
bool sharpness_auto,
unsigned int sharpness_value = 0);
209 float setShutter(
bool auto_shutter,
float shutter_ms = 10);
210 void setVideoModeAndFrameRate(FlyCapture2::VideoMode video_mode, FlyCapture2::FrameRate frame_rate);
220 std::pair<unsigned int, unsigned int> centerRoi(
unsigned int size,
unsigned int max_size,
unsigned int step);
221 FlyCapture2::Property getProperty(FlyCapture2::PropertyType prop_type);
222 FlyCapture2::PropertyInfo getPropertyInfo(FlyCapture2::PropertyType prop_type);
224 void setProperty(
const FlyCapture2::PropertyType &prop_type,
bool on,
bool auto_on,
float value,
225 PropertyValue prop_value = ABS_VALUE);
FlyCapture2::Image m_rawImage
Image buffer.
FlyCapture2::Camera m_camera
Pointer to each camera.
Consider FlyCapture2::Property::valueA.
virtual void open(vpImage< unsigned char > &I)=0
bool isConnected() const
Return true if the camera is connected.
unsigned int getCameraIndex() const
FlyCapture2::PGRGuid m_guid
Active camera guid.
bool m_connected
true if camera connected
Consider FlyCapture2::Property::absValue.
bool m_capture
true is capture started
Base class for all video devices. It is designed to provide a front end to video sources.
unsigned int m_index
Active camera index.
bool isCaptureStarted() const
Return true if the camera capture is started.
unsigned int m_numCameras
Number of connected cameras.
virtual void acquire(vpImage< unsigned char > &I)=0