-
图像的二值化处理
实现二值化,当像素值(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值化的错误。
- 2022-09-03 03:00:05下载
- 积分:1
-
asn.1编码的文件查看器,非常不错,是一个不错的小工具
asn.1编码的文件查看器,非常不错,是一个不错的小工具-asn.1 coded document viewer, very Yes, it is a good tool for small
- 2022-02-27 02:33:19下载
- 积分:1
-
一个用Java开发的细胞自动机
一个用Java开发的细胞自动机-a Java development Cellular Automata
- 2023-07-02 22:35:03下载
- 积分:1
-
20041011212518_vczx_ecfile
20041011212518_vczx_ecfile
- 2022-05-13 07:09:18下载
- 积分:1
-
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数N(0≤N≤1000000000000)的...
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数N(0≤N≤1000000000000)的根。
输入:
输入有多个案例。每一个案例为一行,每行只有一个整数N。当输入的N是-1时,输入结束。
输出:
每一个案例输出一行。每行只有一个数字,就是N对应的数根。
Sample input
39
-1
Sample output
3-Number of root number also has roots do? There is! The number of roots is to a number of different values on the digital sum until they have been a number of up to one. Please write a program to calculate an arbitrary number N (0 ≤ N ≤ 1000000000000) roots. Input: Enter a number of cases. Each case for the line, each line is only an integer N. When the input of N is-1, the input end. Output: the output line of each case. There is only one number per line, that is, N corresponds to the number of roots. Sample input 39-1 Sample output 3
- 2023-09-05 21:25:03下载
- 积分:1
-
here on how to use the phrase running out for some************** we can symbols,...
这里介绍了怎么去使用for语句
运行出来是一些**************符号
大家可以去改,发挥自己的能力
里面有3个矩形,每一个都不一样,大家去看看挖-here on how to use the phrase running out for some************** we can symbols, change, play to their ability there are three rectangles, each one is different, and we look at digging
- 2022-01-24 13:45:22下载
- 积分:1
-
AUTOCAD 程序员使用的,ARX图纸数据结构显示
AUTOCAD 程序员使用的,ARX图纸数据结构显示-AutoCAD programmers using the data structure ARX drawings show
- 2022-06-26 04:48:40下载
- 积分:1
-
例如,不要找一个知道,很容易学习的人
E在线升级例子,不懂的一看就知道了,很简单易学-E Online upgrade example, do not look for one know, it is easy to learn
- 2022-08-20 09:29:08下载
- 积分:1
-
自己用C语言编写的NDS掌机运行的贪食蛇游戏,用了PAlib函数库,与大家分享,希望对大家有帮助。。。编译前请先确认安装了devkitPro...
自己用C语言编写的NDS掌机运行的贪食蛇游戏,用了PAlib函数库,与大家分享,希望对大家有帮助。。。编译前请先确认安装了devkitPro-Their use of C language running贪食蛇portable NDS games, spent PAlib library to share with you, in the hope that everyone has to help. . . Pre-compiler is installed make sure devkitPro
- 2023-05-10 10:10:04下载
- 积分:1
-
i am uploading matalab programme spectral_subtrac which a step after obj_evolut...
i am uploading matalab programme spectral_subtrac which a step after obj_evolution-i am uploading matalab programme spectral_subtrac which a step after obj_evolution
- 2022-05-14 01:17:56下载
- 积分:1