登录
首页 » c++ » 数字图像处理增加亮点和对比度

数字图像处理增加亮点和对比度

于 2022-05-14 发布 文件大小:3.68 MB
0 139
下载积分: 2 下载次数: 1

代码说明:

#include#includeusing namespace cv;int main() {Mat src,dst;src = imread("D:/ps/circle.png");int rows = src.rows;int cols = src.cols;float alpht = 1.8;float bea = 50;dst = Mat::zeros(src.size(), src.type());for (int row = 0; row < rows; row++) {for (int col = 0; col < cols; col++) {int b = src.at(row, col)[0];int g = src.at(row, col)[1];int r = src.at(row, col)[2];dst.at(row, col)[0] = saturate_cast(alpht*b + bea);dst.at(row, col)[1] = saturate_cast(alpht*g + bea);dst.at(row, col)[2] = saturate_cast(alpht*r + bea);}}namedWindow("s", CV_WINDOW_AUTOSIZE);namedWindow("d", CV_WINDOW_AUTOSIZE);imshow("s", src);imshow("d", dst);waitKey(0);r

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • c-language-commonly-used-algorithm
    c语言常用算法(总结了很多数学,工程应用算法)(c language commonly used algorithm (summed up a lot of math, engineering algorithms))
    2014-02-22 14:58:20下载
    积分:1
  • OLED
    OLED在msp430中的使用 包含了c文件和h文件(the use of OLED in msp430)
    2020-06-18 13:40:02下载
    积分:1
  • VCCLASS
    Visual C++中窗口子类化技术的实现及其应用(Visual C++ in the window of the sub-class technology and its application)
    2009-06-19 09:12:03下载
    积分:1
  • Pchap10_11sI
    机器人的PID控制之确定性单臂机械手的PD+前馈控制(先进进PID控制MATLAB仿真第二版),已通过测试。 (PID control of robot uncertainty arm manipulator PD+ before feed-forward control (Advanced PID Control MATLAB simulation), has been tested.)
    2012-07-19 20:56:26下载
    积分:1
  • C# 柱状图、折线图、饼图源码(chart控件的简单示例)
    C# 柱状图、折线图、饼图源码(chart控件的简单示例)
    2015-06-11下载
    积分:1
  • register
    在C#中创建注册表,修改注册表,删除注册表,获取和设置注册表键值(In C# to create the registry, to modify the registry, delete the registry, access and set the registry key)
    2020-10-01 19:17:42下载
    积分:1
  • sstmm32_adc__t
    stm32 ADC程序源码 (第二二个源码实例程序源码) (the stm32 ADC program source code (second two source instance of program source code))
    2012-08-07 12:56:06下载
    积分:1
  • KSZ9692驱动操作源码
    The driver supports KSZ8873/KSZ8863/KSZ8893, and KSZ8895/KSZ8863.GPIO based Micrel Switch SMI bitbang driver. The SMI is the Micrel Switch   non-standar MIMM interface interface that provides access to all Switch configuration registers. The physical connection that incorporates  the data line (SDA_MDIO) and the clock line (SCL_MDC).
    2023-08-01 19:30:03下载
    积分:1
  • 178魔兽世界 2.43-3.35通用飞天辅助
    飞天辅助,335辅助,魔兽世界飞天外挂,任意335版本的魔兽(Flying assistant, 335 assistant, World of Warcraft Flying plug-in, any 335 version of World of Warcraft)
    2020-06-21 07:20:01下载
    积分:1
  • dns
    一个简单的DNS服务器,可以在嵌入式系统中使用。(A simple DNS server,it can be used in embedded system.)
    2019-04-02 11:00:11下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载