43#include <opencv2/imgproc.hpp>
106 case cv::CAP_PROP_FRAME_WIDTH:
108 case cv::CAP_PROP_FRAME_HEIGHT:
110 case cv::CAP_PROP_FPS:
112 case cv::CAP_PROP_FORMAT:
114 case cv::CAP_PROP_MODE:
116 case cv::CAP_PROP_BRIGHTNESS:
118 case cv::CAP_PROP_CONTRAST:
120 case cv::CAP_PROP_SATURATION:
123 case cv::CAP_PROP_GAIN:
125 case cv::CAP_PROP_EXPOSURE:
130 case cv::CAP_PROP_CONVERT_RGB:
132 case cv::CAP_PROP_WHITE_BALANCE_RED_V:
139 case cv::CAP_PROP_WHITE_BALANCE_BLUE_U:
157 case cv::CAP_PROP_FRAME_WIDTH:
160 case cv::CAP_PROP_FRAME_HEIGHT:
163 case cv::CAP_PROP_FORMAT: {
176 case cv::CAP_PROP_MODE:
179 case cv::CAP_PROP_BRIGHTNESS:
182 case cv::CAP_PROP_CONTRAST:
185 case cv::CAP_PROP_SATURATION:
189 case cv::CAP_PROP_GAIN:
192 case cv::CAP_PROP_EXPOSURE:
193 if ( value>0 && value<=100 ) {
201 case cv::CAP_PROP_CONVERT_RGB:
204 case cv::CAP_PROP_WHITE_BALANCE_RED_V:
205 if ( value>0 && value<=100 ) {
215 case cv::CAP_PROP_WHITE_BALANCE_BLUE_U:
216 if ( value>0 && value<=100 ) {
234 return _impl->
getId();
unsigned int getWidth() const
void setHeight(unsigned int height)
void setFormat(RASPICAM_FORMAT fmt)
int getSaturation() const
int getShutterSpeed() const
void setContrast(int contrast)
void setWidth(unsigned int width)
unsigned int getHeight() const
unsigned int getBrightness() const
void setBrightness(unsigned int brightness)
void setAWB_RB(float red, float blue)
std::string getId() const
void setExposure(RASPICAM_EXPOSURE exposure)
void setShutterSpeed(unsigned int shutter)
bool open(bool StartCapture=true)
void setAWB(RASPICAM_AWB awb)
void setSaturation(int saturation)
RASPICAM_AWB getAWB() const
void retrieve(unsigned char *data, RASPICAM_FORMAT type=RASPICAM_FORMAT_IGNORE)
bool read(cv::Mat &image)
std::string getId() const
void retrieve(cv::Mat &image)
bool set(int propId, double value)
static float scale(float inMin, float inMax, float outMin, float outMax, float val)