登录
首页 » C++ » 灰度值变换

灰度值变换

于 2023-08-22 发布 文件大小:1.19 kB
0 119
下载积分: 2 下载次数: 1

代码说明:

这是本书不合理的一个地方。首先,这样做并不泛用,图片不一定是8-bit的。其次,在做某些变换的时候,可能会导致溢出。比如,伽马变化,假设伽马值为2,那么灰度为255的像素点,其变换之后值为65025,这里就溢出了。当然,要是使用Matlab计算,肯定会处理的非常好,直接使用mat2gray函数就能将其压缩回0到255。但是要是其他嵌入式平台处理的时候,直接套用不方便不说,直接按照8-bit的图来理解很不直观。因此,我将数学式做了改变,让其输入为0到1的浮点数,其输出也是0到1的浮点数,这样方便理解。

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

发表评论

0 个回复

  • RSA
    基于RSA算法的加密解密以及数字签名系统,实现加密解密签名的功能(RSA-based encryption and decryption algorithms and digital signature system to achieve the function of signature encryption and decryption )
    2011-05-06 16:10:42下载
    积分:1
  • the__rhe__file
    UNLZEXE converts the compressed file by lzexe to the UNcompressed
    2018-12-26 15:36:10下载
    积分:1
  • Monkeys-and-peach
    Monkeys and peach,Monkeys and peach(Monkeys and peach)
    2013-09-01 22:06:42下载
    积分:1
  • SerialPort
    基于VC实现的串口通信,可以实现串口的数据读取。(Based on the VC serial communications)
    2013-11-25 10:57:22下载
    积分:1
  • HU
    数值分析插值代码,做流体计算常用插值技巧(Numerical analysis of interpolation code, make the fluid calculation used interpolation technique)
    2013-05-14 09:47:39下载
    积分:1
  • Beginning-Visual C++ (2013, Apress)
    比较好的VC++教程,英文电子版,没有任何水印,便于阅读(Better VC++ tutorial, English electronic version, without any watermarking, easy to read)
    2020-06-23 02:00:02下载
    积分:1
  • C++ 课设 学生信息管理
    第一次写C++课设 比较手生 多见谅 此次的课设用的是VS2017写的要是用Cood::blocks的话就只要用里面的代码就好了
    2023-08-23 06:05:05下载
    积分:1
  • integral2
    说明:  运用物理光学法和矩量法计算带罩天线的远场辐射。(use of optical physics and Moment Method band antenna covers the far field radiation.)
    2006-03-31 22:41:43下载
    积分:1
  • shine-master
    fast mp3 encoder source code
    2020-06-25 06:40:01下载
    积分:1
  • RS232 Upgrade Loader Tool M3510
    说明:  UPGRADE tool rs232. Download
    2019-04-10 00:20:11下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载