|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_FRAMEGRABBERINTERFACES_H
11 #define YARP_FRAMEGRABBERINTERFACES_H
371 #ifndef YARP_NO_DEPRECATED // Since YARP 3.0.0
379 virtual
bool setBrightness(
double v) {
return false; }
386 virtual
bool setExposure(
double v) {
return false; }
393 virtual
bool setSharpness(
double v) {
return false; }
401 virtual
bool setWhiteBalance(
double blue,
double red) {
return false; }
408 virtual
bool setHue(
double v) {
return false; }
415 virtual
bool setSaturation(
double v) {
return false; }
422 virtual
bool setGamma(
double v) {
return false; }
429 virtual
bool setShutter(
double v) {
return false; }
436 virtual
bool setGain(
double v) {
return false; }
443 virtual
bool setIris(
double v) {
return false; }
451 virtual
double getBrightness() {
return -1.0; }
457 virtual
double getExposure() {
return -1.0; }
463 virtual
double getSharpness() {
return -1.0; }
471 virtual
bool getWhiteBalance(
double &blue,
double &red) {
return false; }
477 virtual
double getHue() {
return -1.0; }
483 virtual
double getSaturation() {
return -1.0; }
489 virtual
double getGamma() {
return -1.0; }
495 virtual
double getShutter() {
return -1.0; }
501 virtual
double getGain() {
return -1.0; }
507 virtual
double getIris() {
return -1.0; }
580 return "bus type undefined";
629 virtual bool setFeature(
int feature,
double value1,
double value2)=0;
638 virtual bool getFeature(
int feature,
double *value1,
double *value2)=0;
646 virtual bool hasOnOff(
int feature,
bool *HasOnOff)=0;
670 virtual bool hasAuto(
int feature,
bool *hasAuto)=0;
742 virtual bool getFormat7MaxWindowDC1394(
unsigned int &xdim,
unsigned int &ydim,
unsigned int &xstep,
unsigned int &ystep,
unsigned int &xoffstep,
unsigned int &yoffstep)=0;
785 #ifndef YARP_NO_DEPRECATED // Since YARP 3.0.0
789 #endif // YARP_FRAMEGRABBERINTERFACES_H
constexpr yarp::conf::vocab32_t VOCAB_DRSETCOD
constexpr yarp::conf::vocab32_t VOCAB_DRSETISO
virtual bool getImage(yarp::sig::ImageOf< yarp::sig::PixelMono > &image)=0
Get a raw image from the frame grabber.
virtual bool setFeature(int feature, double value1, double value2)=0
Set the requested feature to a value using 2 params (like white balance)
Read a YARP-format image from a device.
constexpr yarp::conf::vocab32_t VOCAB_GAMMA
constexpr yarp::conf::vocab32_t createVocab(char a, char b=0, char c=0, char d=0)
constexpr yarp::conf::vocab32_t VOCAB_DRSETMOD
constexpr yarp::conf::vocab32_t VOCAB_DRGETISO
virtual bool getActive(int feature, bool *isActive)=0
Get the current status of the feature, on or off.
@ YARP_FEATURE_SATURATION
constexpr yarp::conf::vocab32_t VOCAB_DRSETPWR
constexpr yarp::conf::vocab32_t VOCAB_DRGETACT
contains the definition of a Vector type
constexpr yarp::conf::vocab32_t VOCAB_CAMERA_DESCRIPTION
constexpr yarp::conf::vocab32_t VOCAB_DRGETCCM
constexpr yarp::conf::vocab32_t VOCAB_FRAMEGRABBER_IMAGE
cameraFeature_id_t featureVOCABEnum(int vocab)
@ YARP_FEATURE_CAPTURE_QUALITY
constexpr yarp::conf::vocab32_t VOCAB_DRGETVAL
constexpr yarp::conf::vocab32_t VOCAB_FRAMEGRABBER_CONTROL
constexpr yarp::conf::vocab32_t VOCAB_DRSETBPP
virtual bool hasFeature(int feature, bool *hasFeature)=0
Check if camera has the requested feature (saturation, brightness ...
virtual bool setFormat7WindowDC1394(unsigned int xdim, unsigned int ydim, int x0, int y0)=0
virtual bool setBroadcastDC1394(bool onoff)=0
virtual bool getCameraDescription(CameraDescriptor *camera)=0
Get a basic description of the camera hw.
virtual bool setCaptureDC1394(bool bON)=0
constexpr yarp::conf::vocab32_t VOCAB_BRIGHTNESS
std::string busType2String(BusType type)
int featureEnum2Vocab(cameraFeature_id_t _enum)
Common interface to a FrameGrabber.
virtual bool setFPSDC1394(int fps)=0
virtual ~IFrameWriterImage()
Destructor.
constexpr yarp::conf::vocab32_t VOCAB_DRSETTXM
constexpr yarp::conf::vocab32_t VOCAB_DRGETOPM
constexpr yarp::conf::vocab32_t VOCAB_DRGETVMD
constexpr yarp::conf::vocab32_t VOCAB_FEATURE2
virtual bool getOperationModeDC1394()=0
constexpr yarp::conf::vocab32_t VOCAB_FRAMEGRABBER_IMAGERAW
constexpr yarp::conf::vocab32_t VOCAB_DRSETVMD
constexpr yarp::conf::vocab32_t VOCAB_ONOFF
constexpr yarp::conf::vocab32_t VOCAB_ACTIVE
constexpr yarp::conf::vocab32_t VOCAB_DRSETCAP
virtual bool getFeature(int feature, double *value1, double *value2)=0
Get the current value for the requested feature.
virtual bool setTransmissionDC1394(bool bTxON)=0
@ YARP_FEATURE_WHITE_SHADING
virtual unsigned int getFPSMaskDC1394()=0
std::string deviceDescription
constexpr yarp::conf::vocab32_t VOCAB_SHARPNESS
virtual bool setISOSpeedDC1394(int speed)=0
virtual bool setVideoModeDC1394(int video_mode)=0
virtual bool setFeature(int feature, double value)=0
Set the requested feature to a value (saturation, brightness ...
constexpr yarp::conf::vocab32_t VOCAB_DRGETFPM
virtual bool getImageCrop(cropType_id_t cropType, yarp::sig::VectorOf< std::pair< int, int > > vertices, yarp::sig::ImageOf< yarp::sig::PixelMono > &image)
Get a crop of the rgb image from the frame grabber, if required demosaicking/color reconstruction is ...
virtual unsigned int getColorCodingDC1394()=0
virtual int getRawBufferSize()=0
Get the size of the card's internal buffer, the user should use this method to allocate the storage t...
@ YARP_FEATURE_WHITE_BALANCE
constexpr yarp::conf::vocab32_t VOCAB_HAS
virtual ~IFrameGrabberRgb()
Read a YARP-format image to a device.
FeatureMode toFeatureMode(bool _auto)
constexpr yarp::conf::vocab32_t VOCAB_DRGETWF7
virtual bool getRgbBuffer(unsigned char *buffer)=0
Get a rgb buffer from the frame grabber, if required demosaicking/color reconstruction is applied.
constexpr yarp::conf::vocab32_t VOCAB_ONEPUSH
constexpr yarp::conf::vocab32_t VOCAB_WHITE
constexpr yarp::conf::vocab32_t VOCAB_DRHASONP
constexpr yarp::conf::vocab32_t VOCAB_DRGETWHB
virtual unsigned int getVideoModeDC1394()=0
virtual unsigned int getBytesPerPacketDC1394()=0
virtual bool setColorCodingDC1394(int coding)=0
virtual int width() const =0
Return the width of each frame.
virtual bool setOperationModeDC1394(bool b1394b)=0
virtual bool setMode(int feature, FeatureMode mode)=0
Set the requested mode for the feature.
Read a YARP-format image from a device.
constexpr yarp::conf::vocab32_t VOCAB_SATURATION
virtual bool getImage(yarp::sig::ImageOf< yarp::sig::PixelRgb > &image)=0
Get an rgb image from the frame grabber, if required demosaicking/color reconstruction is applied.
virtual bool putImage(yarp::sig::ImageOf< yarp::sig::PixelRgb > &image)=0
Write an image to the device.
virtual bool hasManual(int feature, bool *hasManual)=0
Check if the requested feature has the 'manual' mode.
constexpr yarp::conf::vocab32_t VOCAB_IRIS
virtual int height() const =0
Return the height of each frame.
constexpr yarp::conf::vocab32_t VOCAB_DRGETCOD
constexpr yarp::conf::vocab32_t VOCAB_SHUTTER
virtual bool getFeature(int feature, double *value)=0
Get the current value for the requested feature.
constexpr yarp::conf::vocab32_t VOCAB_EXPOSURE
constexpr yarp::conf::vocab32_t VOCAB_DRSETFPS
virtual unsigned int getFPSDC1394()=0
constexpr yarp::conf::vocab32_t VOCAB_DRHASAUT
virtual int width() const =0
Return the width of each frame.
constexpr yarp::conf::vocab32_t VOCAB_DRGETFPS
virtual bool getRawBuffer(unsigned char *buffer)=0
Get the raw buffer from the frame grabber.
constexpr yarp::conf::vocab32_t VOCAB_DRSETOPM
virtual bool hasAuto(int feature, bool *hasAuto)=0
Check if the requested feature has the 'auto' mode.
virtual bool getImageCrop(cropType_id_t cropType, yarp::sig::VectorOf< std::pair< int, int > > vertices, yarp::sig::ImageOf< yarp::sig::PixelRgb > &image)
Get a crop of the rgb image from the frame grabber, if required demosaicking/color reconstruction is ...
virtual bool getTransmissionDC1394()=0
virtual int height() const =0
Return the height of each frame.
virtual unsigned int getISOSpeedDC1394()=0
constexpr yarp::conf::vocab32_t VOCAB_DRSETVAL
Control interface for frame grabber devices.
@ YARP_FEATURE_OPTICAL_FILTER
constexpr yarp::conf::vocab32_t VOCAB_DRGETMSK
constexpr yarp::conf::vocab32_t VOCAB_DRGETTXM
virtual unsigned int getVideoModeMaskDC1394()=0
constexpr yarp::conf::vocab32_t VOCAB_MANUAL
constexpr yarp::conf::vocab32_t VOCAB_DRGETMOD
virtual int height() const =0
Return the height of each frame.
virtual bool getMode(int feature, FeatureMode *mode)=0
Get the current mode for the feature.
constexpr yarp::conf::vocab32_t VOCAB_DRGETF7M
@ YARP_FEATURE_BRIGHTNESS
constexpr yarp::conf::vocab32_t VOCAB_DRSETDEF
constexpr yarp::conf::vocab32_t VOCAB_AUTO
constexpr yarp::conf::vocab32_t VOCAB_DRSETBCS
constexpr yarp::conf::vocab32_t VOCAB_DRHASFEA
#define YARP_DEPRECATED_MSG(MSG)
Expands to either the standard [[deprecated]] attribute or a compiler-specific decorator such as __at...
constexpr yarp::conf::vocab32_t VOCAB_CROP
virtual bool setResetDC1394()=0
virtual ~IFrameGrabberControlsDC1394()
The main, catch-all namespace for YARP.
constexpr yarp::conf::vocab32_t VOCAB_MODE
virtual bool getFormat7WindowDC1394(unsigned int &xdim, unsigned int &ydim, int &x0, int &y0)=0
constexpr yarp::conf::vocab32_t VOCAB_DRGETBPP
constexpr yarp::conf::vocab32_t VOCAB_DRHASMAN
virtual bool getFormat7MaxWindowDC1394(unsigned int &xdim, unsigned int &ydim, unsigned int &xstep, unsigned int &ystep, unsigned int &xoffstep, unsigned int &yoffstep)=0
@ YARP_FEATURE_TRIGGER_DELAY
constexpr yarp::conf::vocab32_t VOCAB_DRSETWHB
virtual bool setDefaultsDC1394()=0
virtual bool setBytesPerPacketDC1394(unsigned int bpp)=0
virtual bool hasOnePush(int feature, bool *hasOnePush)=0
Check if the requested feature has the 'onePush' mode.
virtual int height() const =0
Return the height of each frame.
virtual bool setPowerDC1394(bool onoff)=0
virtual ~IFrameGrabberImageRaw()
Destructor.
virtual ~IFrameGrabberImage()
Destructor.
virtual bool setOnePush(int feature)=0
Set the requested feature to a value (saturation, brightness ...
constexpr yarp::conf::vocab32_t VOCAB_DRHASACT
virtual unsigned int getColorCodingMaskDC1394(unsigned int video_mode)=0
virtual int width() const =0
Return the width of each frame.
constexpr yarp::conf::vocab32_t VOCAB_DRSETWF7
constexpr yarp::conf::vocab32_t VOCAB_HUE
virtual ~IFrameGrabberControls()
Destructor.
@ YARP_FEATURE_TEMPERATURE
virtual int width() const =0
Return the width of each frame.
constexpr yarp::conf::vocab32_t VOCAB_FEATURE
define common interfaces to discover remote camera capabilities
constexpr yarp::conf::vocab32_t VOCAB_DRSETACT
virtual bool hasOnOff(int feature, bool *HasOnOff)=0
Check if the camera has the ability to turn on/off the requested feature.
constexpr yarp::conf::vocab32_t VOCAB_DRSETRST
virtual bool setActive(int feature, bool onoff)=0
Set the requested feature on or off.
@ YARP_FEATURE_FRAME_RATE
@ YARP_FEATURE_CAPTURE_SIZE
constexpr yarp::conf::vocab32_t VOCAB_FRAMEGRABBER_CONTROL_DC1394
constexpr yarp::conf::vocab32_t VOCAB_DRSETONP
RGB Interface to a FrameGrabber device.
constexpr yarp::conf::vocab32_t VOCAB_GAIN