36 #ifndef _vpFlyCaptureGrabber_h_
37 #define _vpFlyCaptureGrabber_h_
40 #include <visp3/core/vpConfig.h>
41 #include <visp3/core/vpFrameGrabber.h>
43 #ifdef VISP_HAVE_FLYCAPTURE
45 #include <FlyCapture2.h>
167 float getBrightness();
168 std::ostream &getCameraInfo(std::ostream &os);
171 FlyCapture2::Camera *getCameraHandler();
174 bool getCameraPower();
175 static unsigned int getCameraSerial(
unsigned int index);
177 float getFrameRate();
179 static unsigned int getNumCameras();
180 unsigned int getSharpness();
183 bool isCameraPowerAvailable();
188 bool isFormat7Supported(FlyCapture2::Mode format7_mode);
189 bool isVideoModeAndFrameRateSupported(FlyCapture2::VideoMode video_mode, FlyCapture2::FrameRate frame_rate);
196 float setBrightness(
bool brightness_auto,
float brightness_value = 0);
197 void setCameraIndex(
unsigned int index);
198 void setCameraPower(
bool on);
199 void setCameraSerial(
unsigned int serial);
200 float setExposure(
bool exposure_on,
bool exposure_auto,
float exposure_value = 0);
201 float setGain(
bool gain_auto,
float gain_value = 0);
202 void setFormat7VideoMode(FlyCapture2::Mode format7_mode, FlyCapture2::PixelFormat pixel_format,
unsigned int width,
203 unsigned int height);
204 float setFrameRate(
float frame_rate);
205 unsigned int setSharpness(
bool sharpness_on,
bool sharpness_auto,
unsigned int sharpness_value = 0);
206 float setShutter(
bool auto_shutter,
float shutter_ms = 10);
207 void setVideoModeAndFrameRate(FlyCapture2::VideoMode video_mode, FlyCapture2::FrameRate frame_rate);
217 std::pair<unsigned int, unsigned int> centerRoi(
unsigned int size,
unsigned int max_size,
unsigned int step);
218 FlyCapture2::Property getProperty(FlyCapture2::PropertyType prop_type);
219 FlyCapture2::PropertyInfo getPropertyInfo(FlyCapture2::PropertyType prop_type);
221 void setProperty(
const FlyCapture2::PropertyType &prop_type,
bool on,
bool auto_on,
float value,
222 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