42 #ifndef _vpFlyCaptureGrabber_h_
43 #define _vpFlyCaptureGrabber_h_
46 #include <visp3/core/vpConfig.h>
47 #include <visp3/core/vpFrameGrabber.h>
49 #ifdef VISP_HAVE_FLYCAPTURE
51 #include <FlyCapture2.h>
178 float getBrightness();
179 std::ostream &getCameraInfo(std::ostream &os);
182 FlyCapture2::Camera *getCameraHandler();
185 bool getCameraPower();
186 static unsigned int getCameraSerial(
unsigned int index);
188 float getFrameRate();
190 static unsigned int getNumCameras();
191 unsigned int getSharpness();
194 bool isCameraPowerAvailable();
199 bool isFormat7Supported(FlyCapture2::Mode format7_mode);
200 bool isVideoModeAndFrameRateSupported(FlyCapture2::VideoMode video_mode, FlyCapture2::FrameRate frame_rate);
207 float setBrightness(
bool brightness_auto,
float brightness_value = 0);
208 void setCameraIndex(
unsigned int index);
209 void setCameraPower(
bool on);
210 void setCameraSerial(
unsigned int serial);
211 float setExposure(
bool exposure_on,
bool exposure_auto,
float exposure_value = 0);
212 float setGain(
bool gain_auto,
float gain_value = 0);
213 void setFormat7VideoMode(FlyCapture2::Mode format7_mode, FlyCapture2::PixelFormat pixel_format,
unsigned int width,
214 unsigned int height);
215 float setFrameRate(
float frame_rate);
216 unsigned int setSharpness(
bool sharpness_on,
bool sharpness_auto,
unsigned int sharpness_value = 0);
217 float setShutter(
bool auto_shutter,
float shutter_ms = 10);
218 void setVideoModeAndFrameRate(FlyCapture2::VideoMode video_mode, FlyCapture2::FrameRate frame_rate);
229 std::pair<unsigned int, unsigned int> centerRoi(
unsigned int size,
unsigned int max_size,
unsigned int step);
230 FlyCapture2::Property getProperty(FlyCapture2::PropertyType prop_type);
231 FlyCapture2::PropertyInfo getPropertyInfo(FlyCapture2::PropertyType prop_type);
233 void setProperty(
const FlyCapture2::PropertyType &prop_type,
bool on,
bool auto_on,
float value,
234 PropertyValue prop_value = ABS_VALUE);
FlyCapture2::Image m_rawImage
Image buffer.
bool m_capture
true is capture started
bool isCaptureStarted() const
Return true if the camera capture is started.
FlyCapture2::Camera m_camera
Pointer to each camera.
unsigned int m_index
Active camera index.
unsigned int m_numCameras
Number of connected cameras.
@ VALUE_A
Consider FlyCapture2::Property::valueA.
@ ABS_VALUE
Consider FlyCapture2::Property::absValue.
bool m_connected
true if camera connected
FlyCapture2::PGRGuid m_guid
Active camera guid.
unsigned int getCameraIndex() const
bool isConnected() const
Return true if the camera is connected.
Base class for all video devices. It is designed to provide a front end to video sources.
virtual void open(vpImage< unsigned char > &I)=0
virtual void acquire(vpImage< unsigned char > &I)=0