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

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

于 2022-05-14 发布 文件大小:3.68 MB
0 103
下载积分: 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 个回复

  • cifafenxi
    实现了C的词法分析,比较简单适合初学者,基本的功能实现(goog C++)
    2014-06-12 15:23:50下载
    积分:1
  • ucgui
    这是ucgui的资料,是在ucos系统上实现的,很适合初学者学习,练习,开发,个人感觉是不错的资料,帮助我很多。(This is ucGUI, is implemented in the UCOS system, it is suitable for beginners to learn and practice, development, personal feeling is good information and helped me a lot.)
    2016-01-03 11:51:10下载
    积分:1
  • source_code
    说明:  通过EDEM体积力耦合API源程序,实现流体曳力耦合(Through the edem volume force coupling API source code, the fluid drag coupling is realized)
    2020-11-18 13:15:03下载
    积分:1
  • 一个模拟交易的简单系统
    模拟交易的简单服务 基于linux C++ +mysql 数据库 开发而成。
    2023-08-12 20:35:05下载
    积分:1
  • dxnb
    有关于三相光伏并网逆变系统的matlab仿真(On the three-phase photovoltaic inverter system simulation matlab)
    2011-05-09 15:54:01下载
    积分:1
  • matlabyuyin
    实现了语音的嵌入 用matlab软件 来实现的 (realize the embedded of speech)
    2012-04-10 21:39:29下载
    积分:1
  • INDER-BRO-DAV
    By exploiting the basic principles of particle swarm optimization (PSO) and the information of practical node positioning applications, TLP searches out the optimal localization results on the basis of the distance anchor nodes to unknown nodes. Compared to the normal schemes, such as least mean square algorithm (LMS), the simulation results reveal that the proposed protocol
    2015-04-12 22:57:07下载
    积分:1
  • Microcontroller_based_2KW_UPS_Schematic_Code_PCB
    micro controller based ups invertor
    2013-11-06 17:43:09下载
    积分:1
  • Programming.Pearls
    编程珠玑(第二版)中英双语版,附源代码,是本不错的代码优化指导书(Abas Programming (second edition) in both Chinese and English version, with source code, is the good code optimization guide book)
    2008-06-07 09:13:55下载
    积分:1
  • 实现KMP模式匹配,模式匹配操作对象是字符串
    实现KMP模式匹配,模式匹配操作对象是字符串-achieve KMP, pattern-matching operations object is a string
    2022-03-03 08:57:02下载
    积分:1
  • 696516资源总数
  • 106446会员总数
  • 9今日下载