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

灰度值变换

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

代码说明:

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

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

发表评论

0 个回复

  • 1606
    护栏管资料,可用于护栏管开发,是一个项目应用的资料等(Guardrail information can be used for guardrail development)
    2015-09-20 19:34:29下载
    积分:1
  • tinyxml
    说明:  timyXML是一个简单的xml解析工具,当然,你的xml必需是标准的。 TinyXML is a simple, small, C++ XML parser that can be easily integrated into other programs.In brief, TinyXML parses an XML document, and builds from that a Document Object Model (DOM) that can be read, modified, and saved. XML stands for "eXtensible Markup Language." It allows you to create your own document markups. Where HTML does a very good job of marking documents for browsers, XML allows you to define any kind of document markup, for example a document that describes a "to do" list for an organizer application. XML is a very structured and convenient format. All those random file formats created to store application data can all be replaced with XML. One parser for everything.(timyXML is a simple xml analytical tools, of course, you must be the xml standard. TinyXML is a simple, small, C++ XML parser that can be easily integrated into other programs.In brief, TinyXML parses an XML document, and builds from that a Document Object Model (DOM) that can be read, modified, and saved.XML stands for eXtensible Markup Language. It allows you to create your own document markups. Where HTML does a very good job of marking documents for browsers, XML allows you to define any kind of document markup, for example a document that describes a to do list for an organizer application. XML is a very structured and convenient format. All those random file formats created to store application data can all be replaced with XML. One parser for everything.)
    2008-09-11 09:26:03下载
    积分:1
  • ABC-VC
    蜂群算法C语言实现,附带中文注释,简单易懂(ABC algorithm coded using C programming language)
    2020-09-16 02:17:56下载
    积分:1
  • MPEG4_svp
    mpeg4_svp can run in Vc++6.0 ,also can run in ccs after develop based on your neciserry!(mpeg4_svp can run in Vitamin C 6.0, also can run in ccs after develop based on your ne ciserry!)
    2006-12-20 12:50:38下载
    积分:1
  • 多播,回调实现对服务器IP的返回
    服务器获取IP 客户端点击确定 可以返回服务器的IP,客户端修改本地IP
    2022-04-30 22:50:01下载
    积分:1
  • eqep
    基于F28035的EQEP模块用于捕获外部脉冲的程序(The EQEP based F28035 module for capturing external pulse program)
    2020-08-23 15:38:16下载
    积分:1
  • GNSS_Sun
    利用GPS广播星历和观测文件,实现了GPS及北斗卫星的单点定位程序,考虑电离层及钟差改正。。(The single point positioning program of GPS and Beidou satellite is realized.)
    2018-12-10 16:20:53下载
    积分:1
  • lcddisplay
    LCD显示,只要运行程序可以显示图案,日期和温度(lcddisplay,if you execute that it can display picture,date and tempreture.)
    2009-10-25 20:40:42下载
    积分:1
  • EnumFontsDemo
    获取系统中已安装的所有字体EnumFontsDemoEnumFontsDemo.rar,很不错的vc源码,希望对大家有所帮助。(Acquisition system has been installed in all the fonts EnumFontsDemo EnumFontsDemo.rar, very good vc source code, we want to help.)
    2011-09-30 21:00:37下载
    积分:1
  • FIR 系数生成和加窗并仿真软件源程序
    FIR 系数生成和加窗并仿真软件源程序,改变ADC数据输入,显示不同的滤波波形
    2022-01-26 05:39:23下载
    积分:1
  • 696524资源总数
  • 103939会员总数
  • 12今日下载