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> 162 float getBrightness();
163 std::ostream &getCameraInfo(std::ostream &os);
166 FlyCapture2::Camera *getCameraHandler();
169 bool getCameraPower();
170 static unsigned int getCameraSerial(
unsigned int index);
172 float getFrameRate();
174 static unsigned int getNumCameras();
175 unsigned int getSharpness();
178 bool isCameraPowerAvailable();
183 bool isFormat7Supported(FlyCapture2::Mode format7_mode);
184 bool isVideoModeAndFrameRateSupported(FlyCapture2::VideoMode video_mode, FlyCapture2::FrameRate frame_rate);
191 float setBrightness(
bool brightness_auto,
float brightness_value = 0);
192 void setCameraIndex(
unsigned int index);
193 void setCameraPower(
bool on);
194 void setCameraSerial(
unsigned int serial);
195 float setExposure(
bool exposure_on,
bool exposure_auto,
float exposure_value = 0);
196 float setGain(
bool gain_auto,
float gain_value = 0);
197 void setFormat7VideoMode(FlyCapture2::Mode format7_mode, FlyCapture2::PixelFormat pixel_format,
unsigned int width,
198 unsigned int height);
199 float setFrameRate(
float frame_rate);
200 unsigned int setSharpness(
bool sharpness_on,
bool sharpness_auto,
unsigned int sharpness_value = 0);
201 float setShutter(
bool auto_shutter,
float shutter_ms = 10);
202 void setVideoModeAndFrameRate(FlyCapture2::VideoMode video_mode, FlyCapture2::FrameRate frame_rate);
212 std::pair<unsigned int, unsigned int> centerRoi(
unsigned int size,
unsigned int max_size,
unsigned int step);
213 FlyCapture2::Property getProperty(FlyCapture2::PropertyType prop_type);
214 FlyCapture2::PropertyInfo getPropertyInfo(FlyCapture2::PropertyType prop_type);
216 void setProperty(
const FlyCapture2::PropertyType &prop_type,
bool on,
bool auto_on,
float value,
217 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