123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- #pragma once
- #include "../../Common/CameraBaseClass/IBaseCamParamConfig.h"
- //#include "DialogCamPasram.h"
- //#include "tisudshl.h"
- /// 相机参数设置接口定义
- class ICamParamConfig : public IBaseCamParamConfig
- {
- friend class DialogCamPasram;
- public:
- /// 获取亮度值
- virtual int brightnes() = 0;
- /// 获取对比度值
- virtual int contrast() = 0;
- /// 获取清晰度值
- virtual int distinct() = 0;
- /// 获取伽马校正因子
- virtual int gammaFactor() = 0;
- /// 设置亮度值 参数范围(0-100)
- virtual bool setBrightnes( int ) = 0;
- /// 设置对比度值 参数范围(0-100)
- virtual bool setContrast( int ) = 0;
- /// 设置晰度值 参数范围(0-100)
- virtual bool setDistinct( int ) = 0;
- /// 设置伽马校正因子 参数范围(0-100)
- virtual bool setGammaFactor( int ) = 0;
- };
- /// 映美精相机参数设置接口实现
- class CamParamConfig : public ICamParamConfig
- {
- friend class EntityCamera;
- public:
- CamParamConfig( class EntityCamera* cam );
- ~CamParamConfig(void);
- private:
- // CSimplePropertyAccess mPropertyAccess;
- // DShowLib::Grabber *mGrabber;
- class EntityCamera* m_pCamera;
- public:
- /*--------ICamParamConfig-----*/
- /// 配置参数
- bool configParam( const QString configXML );
- /// 设置曝光值
- bool setExposure( double );
- /// 获取曝光值
- double getExposure();
- /// 设置曝光值自动
- bool setExposureAuto( bool );
- /// 曝光是否自动
- bool isExposureAuto( );
- /// 设置增益值
- bool setGain( int );
- /// 获取增益值
- int getGain();
- /// 设置增益值自动
- bool setGainAuto( bool );
- /// 增益是否自动
- bool isGainAuto( );
- /// 设置白平衡 参数2值范围:0~255
- bool setWhiteBalance( colourRgb, int );
- /// 获取白平衡值
- int getWhiteBalance( colourRgb );
- /// 设置白平衡自动
- bool setWhiteBalanceAuto( bool );
- /// 白平衡是否自动
- bool isWhiteBalanceAuto( );
-
- ///////////////////////////////
- /*--------ENTITYCamParamConfig-----*/
- /// 获取亮度值
- int brightnes();
- /// 获取对比度值
- int contrast();
- /// 获取清晰度值
- int distinct();
- /// 获取伽马校正因子
- int gammaFactor();
- /// 设置亮度值
- bool setBrightnes( int );
- /// 设置对比度值
- bool setContrast( int );
- /// 设置晰度值
- bool setDistinct( int );
- /// 设置伽马校正因子
- bool setGammaFactor( int );
- };
|