登录
首页 » 其他项目 » 图像的二值化处理

图像的二值化处理

于 2022-09-03 发布 文件大小:11.53 MB
0 333
下载积分: 2 下载次数: 1

代码说明:

实现二值化,当像素值(r+g+b)/3>128时设为255,当像素值小于128时设置为0.做归一化处理后,2值化的颜色 1为白,0为黑。边缘部分,计算有误差,255,254,253,252 就算白,0,1,2,3,4就算黑。屏幕显示时,肉眼是分辨不出这点误差的。你可以对2值化后的图像值作归一化处理,得到1和0,然后再放大(乘255),就可得到满意的数值。至于左边界上 1 254 253, 0 255 255,可能是2值化前,颜色原本就有差别。不是2值化的错误。

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

发表评论

0 个回复

  • 不含积分环节的伺服系统, 对小车倒立摆的控制的matlab仿真程序...
    不含积分环节的伺服系统, 对小车倒立摆的控制的matlab仿真程序-Non-integral part of the servo system, control of inverted pendulum car matlab simulation program
    2023-05-30 21:40:03下载
    积分:1
  • 解决8
    To solve 8-puzzle problem using JAVA.
    2022-01-26 04:42:24下载
    积分:1
  • MSP430F4152段式液晶
    MSP430F4152段式液晶
    2022-05-10 20:43:21下载
    积分:1
  • C++Builde做的俄罗斯方块源程序
    C++Builde做的俄罗斯方块源程序-C Builde do Tetris source
    2022-08-09 16:08:18下载
    积分:1
  • Function allows to insert into an existing cell array any set of new cells on th...
    Function allows to insert into an existing cell array any set of new cells on the specified index. Thus the former data is not remove, and moves downwards and to the right on the quantity of elements equal to the size of the inserted data.
    2022-03-20 15:41:48下载
    积分:1
  • telephone billing for procedures/* signal definition : clk : clock signal, which...
    电话计费器程序/*信号定义: clk: 时钟信号,本例中其频率值为1Hz; decide: 电话局反馈回来的信号,代表话务种类,“01”表示市话,“10”表示 长话,“11”表示特话; dispmoney: 用来显示卡内余额,其单位为角,这里假定能显示的最大数额为50 元 (500 角); disptime: 显示本次通话的时长; write,read: 当write 信号下降沿到来时写卡,当话卡插入,read 信号变高时读卡; warn: 余额过少时的告警信号。本例中,当打市话时,余额少于3 角,打长 话时,余额少于6 角,即会产生告警信号; cut: 当告警时间过长时自动切断通话信号。 */-telephone billing for procedures/* signal definition : clk : clock signal, which in this case, their frequency of 1Hz; decide : Telephone Bureau feedback signal, then the Treasury representative types, "01" Urban said, "10" The point said, "11" expressed special words; dispmoney : to show the card balance, the unit of angle, Here are supposed to show the maximum amount of 50 billion yuan (500 angle); disptime : The calls show the length; write, read : When the write signal arrival of the down time to write cards, When the card insert, read signal change high Reader; warn : Fees balance of the alarm signal. In this example, when fighting Cit
    2022-02-26 10:38:56下载
    积分:1
  • 一个小游戏 很好玩的扫雷游戏 比起电脑中的扫雷游戏给小巧
    一个小游戏 很好玩的扫雷游戏 比起电脑中的扫雷游戏给小巧 -a little game is a lot of fun to the game than mine in a computer game compact mine
    2022-03-11 23:04:41下载
    积分:1
  • proteus上的双稳态电路模型,用作单键开关信号控制已应用于多个电路中...
    proteus上的双稳态电路模型,用作单键开关信号控制已应用于多个电路中 -proteus the bistable circuit model for 1-touch switching signal control has been applied to a number of circuit
    2022-03-22 03:08:20下载
    积分:1
  • SQL server的帮助文档,省去查阅课本的过程
    SQL server的帮助文档,省去查阅课本的过程-SQL server help document the process of eliminating access to textbooks
    2022-02-15 23:25:41下载
    积分:1
  • 基于DS18B20的温度控制器,具有三个按键,C语言编程
    基于DS18B20的温度控制器,设有三个按键,C语言编程-Based on DS18B20 temperature controller, with three keys, C language programming
    2022-11-13 19:15:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载