分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.youkuaiyun.com/jiangjunshow
也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!
简单的实现方案
数据格式:YUV
参考链接2:
关于YUV图像的亮度和对比度的调整算法
参考链接2中采用CxImage(关于CxImage,参考:
转贴 CxImage类库使用说明 - 走在路上 - 博客频道 - youkuaiyun.com)库提供的处理方法,采用查表法处理效率很高。粘贴部分处理代码
CxImage\ximadsp.cpp
/** * Changes the brightness and the contrast of the image. * \param brightness: can be from -255 to 255, if brightness is negative, the image becomes dark. * \param contrast: can be from -100 to 100, the neutral value is 0. * \return true if everything is ok */bool CxImage ::Light (long brightness , long contrast ){ if (! pDib)