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

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

于 2022-05-14 发布 文件大小:3.68 MB
0 98
下载积分: 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++摄像头opencv
    c++ 摄像头  opencv  图像处理  MFC界面,以及opencv相关图片处理算法,c++ 摄像头  opencv  图像处理  MFC界面,以及opencv相关图片处理算法c++ 摄像头  opencv  图像处理  MFC界面,以及opencv相关图片处理算法c++ 摄像头  opencv  图像处理  MFC界面,以及opencv相关图片处理算法c++ 摄像头  opencv  图像处理  MFC界面,以及opencv相关图片处理算法c++ 摄像头  opencv  图像处理  MFC界面,以及opencv相关图片处理算法c++ 摄像头  opencv  图像处理  MFC界面,以及opencv相关图片处理算法
    2022-10-19 12:50:20下载
    积分:1
  • changesampleofpcmfile
    PCM文件采样率转换,其中可以自己定义采样率。作为WAV文件进行存储。效果较好。注意使用时确定源文件采样率。(PCM file sample rate conversion, which could define their own sampling rate. As a WAV file is stored. Effective. Note that when used to determine the source file sample rate.)
    2020-11-04 19:59:52下载
    积分:1
  • DimEditCtrlDemo
    一种具有提示功能的文本框,可以根据实际使用进行重新,具有很好的参考价值(A text box with prompts that can be re-based on actual use, a good reference value)
    2013-12-11 23:21:15下载
    积分:1
  • maopaofa
    冒泡排序 是实现一种排序算法也是最常用最简单的(Bubble Sort)
    2014-02-09 18:42:58下载
    积分:1
  • chanEst
    Matlab code for Channel Estimation
    2009-10-09 07:44:08下载
    积分:1
  • 21834_1243008935YLCl
    多线程socket文件传输/支持断点续传/收发消息/点对多点 使用阻塞方式的socket,使用多线程,有较高的性能. 在局域网中测试达到极限速度. 支持断点续传. 服务端可同时接收多个文件. 传输文件的同时可以发送网络消息(Multi-threaded socket file transfer/support HTTP/send and receive information/point-to-multipoint mode of using blocking socket, the use of multi-threaded, high performance. In the local area network speed test reached its limit. Support HTTP . server can receive multiple files at the same time. transfer files can be sent at the same time the network news)
    2009-06-02 14:54:59下载
    积分:1
  • CANopen_master
    canOpen master 用于串口通信,主要用于测试can总线数据
    2017-05-02 16:15:05下载
    积分:1
  • 二叉排序树的基本操作
    该源代码详细介绍了有关二叉树的所有相关操作(The source code details all related operations on the two fork tree.)
    2018-05-22 12:00:30下载
    积分:1
  • ARMSourceFiles1
    说明:  嵌入式系统设计与开发实例详解--基于ARM的应用(采用ARM7TDMI内核的、三星公司推出的S3C44B0X) 第一部分包含:ADCtest,ARPscan,ColorLCDtest,EINTtest,Ethernet,FAT16test,Flashtest,guiHelloworld.(Embedded System Design and Development example explanation-- ARM-based applications (using ARM7TDMI within nuclear, the company launched S3C44B0X) The first part includes : ADCtest. ARPscan, ColorLCDtest, EINTtest, Ethernet, FAT16test, Flashtest, guiHelloworld.)
    2006-02-18 09:41:09下载
    积分:1
  • full-search-ME
    matlab 对于块全搜索运动估计 源代码 视频压缩技术h.264(matlab block full search motion estimation for the source code h.264 video compression technology)
    2013-12-10 17:29:33下载
    积分:1
  • 696518资源总数
  • 106208会员总数
  • 21今日下载