38 #ifndef __vpFlyCaptureGrabber_h_
39 #define __vpFlyCaptureGrabber_h_
42 #include <visp3/core/vpConfig.h>
43 #include <visp3/core/vpFrameGrabber.h>
45 #ifdef VISP_HAVE_FLYCAPTURE
47 #include <FlyCapture2.h>
159 float getBrightness();
160 std::ostream &getCameraInfo(std::ostream &os);
161 FlyCapture2::Camera *getCameraHandler();
166 bool getCameraPower();
167 static unsigned int getCameraSerial(
unsigned int index);
169 float getFrameRate();
171 static unsigned int getNumCameras();
172 unsigned int getSharpness();
175 bool isCameraPowerAvailable();
184 bool isFormat7Supported(FlyCapture2::Mode format7_mode);
185 bool isVideoModeAndFrameRateSupported(FlyCapture2::VideoMode video_mode, FlyCapture2::FrameRate frame_rate);
192 float setBrightness(
bool brightness_auto,
float brightness_value=0);
193 void setCameraIndex(
unsigned int index);
194 void setCameraPower(
bool on);
195 void setCameraSerial(
unsigned int serial);
196 float setExposure(
bool exposure_on,
bool exposure_auto,
float exposure_value=0);
197 float setGain(
bool gain_auto,
float gain_value=0);
198 void setFormat7VideoMode(FlyCapture2::Mode format7_mode,
199 FlyCapture2::PixelFormat pixel_format,
200 unsigned int width,
unsigned int height);
201 float setFrameRate(
float frame_rate);
202 unsigned int setSharpness(
bool sharpness_on,
bool sharpness_auto,
unsigned int sharpness_value=0);
203 float setShutter(
bool auto_shutter,
float shutter_ms=10);
204 void setVideoModeAndFrameRate(FlyCapture2::VideoMode video_mode,
205 FlyCapture2::FrameRate frame_rate);
215 std::pair<unsigned int, unsigned int> centerRoi(
unsigned int size,
unsigned int max_size,
unsigned int step);
216 FlyCapture2::Property getProperty(FlyCapture2::PropertyType prop_type);
217 FlyCapture2::PropertyInfo getPropertyInfo(FlyCapture2::PropertyType prop_type);
219 void setProperty(
const FlyCapture2::PropertyType &prop_type,
220 bool on,
bool auto_on,
float value,
221 PropertyValue prop_value=ABS_VALUE);
FlyCapture2::Image m_rawImage
Image buffer.
unsigned int getCameraIndex() const
FlyCapture2::Camera m_camera
Pointer to each camera.
Consider FlyCapture2::Property::valueA.
virtual void open(vpImage< unsigned char > &I)=0
bool isCaptureStarted() const
Return true if the camera capture is started.
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.
unsigned int m_numCameras
Number of connected cameras.
bool isConnected() const
Return true if the camera is connected.
virtual void acquire(vpImage< unsigned char > &I)=0