-
迭代法阈值分割
图像阈值分割---迭代算法
1.处理流程:
1.为全局阈值选择一个初始估计值T(图像的平均灰度)。
2.用T分割图像。产生两组像素:G1有灰度值大于T的像素组成,G2有小于等于T像素组成。
3.计算G1和G2像素的平均灰度值m1和m2;
4.计算一个新的阈值:T = (m1 + m2) / 2;
5.重复步骤2和4,直到连续迭代中的T值间的差小于一个预定义参数为止。
&
- 2023-02-13 16:40:03下载
- 积分:1
-
linked stack c++
C++代码,具有顺序栈和链栈的实现过程。主函数中有例程顺序栈被定义为一个结构类型,它有两个域data和top。data为一个一维数组,用于存储栈中元素,DataType为栈元素的数据类型。top为int型,它的取值范围为 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2023-01-12 16:45:03下载
- 积分:1
-
练习程序,问题如下:进行高精度整数的加、减、乘运算。输入两个十进制大整数M和N(M、N最长可达50位),计算运算结果并输出。【输入形式】标准输入上依次分行输入以...
练习程序,问题如下:进行高精度整数的加、减、乘运算。输入两个十进制大整数M和N(M、N最长可达50位),计算运算结果并输出。【输入形式】标准输入上依次分行输入以下内容:1.第一行输入第一个大整数M。M可能带有负号,后面是最长可达50位的数字序列。2.第二行只有一个字符,可以是“+”、“-”、“*”,分别代表加、减、乘三种运算符。3. 第三行输入大整数N,格式与M相同M、N均不带有前缀的多余的0【输出形式】在标准输出上打印运算结果,输出一行字符序列,是大整数M和N和运算结果。如果该运算结果是正数,则直接输出各位数字序列;如果是负数,则首先要输出负号。各位数字紧密输出,不带有前缀的多余的0。-practice procedures, as follows : high-precision integer for the addition, subtraction, multiplication. The importation of two decimal integer big M and N (M, N up to a maximum of 50), the calculated results of operations and output. Entry forms : standard input on the importation of branches were the following : 1. The first line inputs, a large integer M. M may have negative, is back up to 50 digital sequence. 2. Only a second line of characters could be "","-","*", respectively, plus or minus, by three operators. 3. The third line inputs large integer N, M and the same format M, N are not redundant with the prefix 0 output-- in the form of print on standard out
- 2022-02-06 02:31:19下载
- 积分:1
-
acm中骨牌矩阵算法
acm中骨牌矩阵算法-acm had a domino matrix algorithm
- 2022-11-11 05:20:03下载
- 积分:1
-
本代码是《计算机常用数值计算算法与程序 C++版》一书的配套非线性方程组求解代码,每个源程序文件的文件扩展名都使用.cpp形式。这些C++程序已经在微软公司Wi...
本代码是《计算机常用数值计算算法与程序 C++版》一书的配套非线性方程组求解代码,每个源程序文件的文件扩展名都使用.cpp形式。这些C++程序已经在微软公司Windows 平台下的Virsual C++ 6.0环境下通过 -the code is "commonly used computer numerical algorithms and procedures C version," a book supporting solve nonlinear equations code, each source document file extensions are used. Cpp form. These procedures have been in C Microsoft Windows platform under the Virsual C 6.0 environment through
- 2022-01-24 14:09:54下载
- 积分:1
-
回溯法解N后的C++源码(Visual Stdio2010环境测试通过)
#include #include #include #include using namespace std;class Queen{ friend int nQueen(int);private: bool Place(int k); void Backtrack(int t); void Output(); int n,//皇后个数 *x;//当前解 long sum;//当前已找到的可行性方案数};bool Queen::Place(int k){ for (int j=1;jn) { sum++; Output(); } else { for (int i=1;i
- 2022-02-06 19:11:54下载
- 积分:1
-
混沌蚁群算法
应用背景混沌具有随机性、遍历性、规律性——混沌具有丰富的时空动态,系统动态的演变可导致吸引子的转移等特点,使得混沌成为一种新型的优化技术,并得到广泛重视。关键技术首先,基于确定性迭代式产生的遍历性轨道对整个解空间进行考察。其次,以第一阶段得到的结果为中心,通过附加小幅度的扰动进一步进行局部区域内的细搜索,直至算法终止准则满足。
- 2023-05-08 18:20:03下载
- 积分:1
-
pseudo
伪随机数生成算法,很优秀,32位real-pseudo-random number generation algorithms, excellent, 32 real
- 2023-04-03 03:45:03下载
- 积分:1
-
一个很有价值的c语言学习网站,可是整站下载的哦!
一个很有价值的c语言学习网站,可是整站下载的哦!-a valuable c language learning website, but the whole station download!
- 2023-05-27 11:00:03下载
- 积分:1
-
SimpleAlgorithm
- 2022-07-16 22:31:36下载
- 积分:1