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

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

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

  • stm32加密库
    【实例简介】STM32CubeExpansion_Crypto_V3.1.0
    2021-08-11 00:31:03下载
    积分:1
  • cboob
    C 案例分析 - 开发综合程序;C 编程技巧;C 编程技巧程序集(C Case Study- development of an integrated program C programming skills C programming skills assembly)
    2010-03-13 12:22:51下载
    积分:1
  • Server
    此程序采用vc++6.0编写,可以实现4路视频采集,压缩以及编码(编码算法包括mpeg2),采用的采集卡是天敏vc4000,利用回调函数作为采集的主要手段 另外提供网络传输的服务端程序(This program uses a vc + +6.0 preparation, can achieve 4-channel video capture, compression and encoding (encoding algorithm including mpeg2), using capture card is Mortimer vc4000, use the callback function as the primary means of collection additionally provides end network transport services program)
    2013-05-26 11:38:26下载
    积分:1
  • 登录代码,原创的,没有数据库
    这个代码,是我自己完成的登录和注册的源码,大家可以看看
    2023-01-05 18:10:03下载
    积分:1
  • 文本合并更名目录删除工具
    方便工作和生活中,对txt文件进行合并,批量更名,目录批量删除的有用的功能。
    2022-07-28 14:55:54下载
    积分:1
  • resection
    本代码主要关于摄影测量中的单向空间后方交会(resection of photogrammetry)
    2013-11-11 21:49:56下载
    积分:1
  • UDPTest
    UDP协议测试工具,可根据设定绑定UDP绑定IPD端口,进行相关的UDP吸引收发数据测试。(UDP protocol test tools, according to the set bound to the UDP binding IPD port, the UDP attract send and receive data test.)
    2013-04-18 09:18:39下载
    积分:1
  • USB—外部FLASH模拟U盘
    说明:  此代码为stm32将外部flash如w25q32模拟成U盘,对内部数据进行读写操作,此工程已经验证通过,希望对大家用一定的帮助(This code is stm32, which simulates external flash such as w25q32 into a U disk to read and write internal data. This project has been verified and passed. I hope it will be of some help to you)
    2020-12-30 13:58:59下载
    积分:1
  • P4表贴LED屏程序资料STM32F103
    说明:  LED显示汉字 彩色音乐频谱 32X64 P4 LED彩色屏 STM32音乐频谱 装饰LED(LED Display Chinese Character Color Music Spectrum 32X64 P4 LED Color Screen STM32 Music Spectrum Decorative LED)
    2020-06-22 20:00:01下载
    积分:1
  • huffman编码
    说明:  input The number of weights n (n>1) is first entered. Then the N weights are entered in turn (the weight is a positive integer greater than 0). output Corresponding to the input n weight value, the corresponding encoding is output in turn. At the time of coding, the left child branch code is 0 and the right child's branch code is 1
    2018-01-02 10:44:52下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载