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();
168 unsigned int getCameraIndex()
const {
return m_index; };
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();
180 bool isConnected()
const {
return m_connected; }
182 bool isCaptureStarted()
const {
return m_capture; }
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);
220 FlyCapture2::Camera m_camera;
221 FlyCapture2::PGRGuid m_guid;
222 unsigned int m_index;
223 unsigned int m_numCameras;
224 FlyCapture2::Image m_rawImage;