二值算法综述请阅读:

C#,图像二值化(01)——二值化算法综述与二十三种算法目录https://blog.csdn.net/beijinghorn/article/details/128425225?spm=1001.2014.3001.5502

支持函数请阅读:

C#,图像二值化(02)——用于图像二值化处理的一些基本图像处理函数之C#源代码https://blog.csdn.net/beijinghorn/article/details/128425984?spm=1001.2014.3001.5502

1、ISODATA算法

原文:

Ridler, TW & Calvard, S (1978), "Picture thresholding using an iterative selection methodhttp://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=4310039

ISO数据

基于isodata算法的迭代程序:

Ridler,TW&Calvard,S(1978),“使用迭代选择方法的图像阈值”,IEEE系统、人和控制论汇刊8:630-632

该过程通过采用初始阈值将图像划分为对象和背景,然后计算阈值或阈值以下的像素和阈值以上的像素的平均值。计算这两个值的平均值,增加阈值并重复该过程,直到阈值大于复合平均值。即,

阈值=(平均背景+平均对象)/2。

该方法有几种实现方式。请参见源代码以获取更多注释。

IsoData
Iterative procedure based on the isodata algorithm of:

Ridler, TW & Calvard, S (1978), "Picture thresholding using an iterative selection method", IEEE Transactions on Systems, Man and Cybernetics 8: 630-632
The procedure divides the image into object and background by taking an initial threshold, then the averages of the pixels at or below the threshold and pixels above are computed. The averages of those two values are computed, the threshold is incremented and the process is repeated until the threshold is larger than the composite average. That is,

threshold = (average background + average objects)/2. 
Several implementations of this method exist. See the source code for further comments.

在农业信息领域,植物叶片病害的检测对农民的生活和环境都非常重要。为了提高植物叶病检测的准确性并减少图像处理时间,本研究提出了改进的K均值++聚类和均值间阈值方法。所提出的算法用于在两个不同的数据库中训练和测试植物叶片图像中的疾病。在所提出的方法中,将基于不同的阈值来选择中间均值算法。阈值的最佳值,即中间均值算法,将有助于提高植物叶片图像中疾病分类的准确性和速度。这种方法也将用于植物叶子的不可见图像。植物叶病检测的实验结果达到了98.10%的平均检测准确率。与基于标准K-均值聚类的结果相比,当前方法给出了23.20%左右的更好结果。所提出的算法比用于检测植物叶病的标准算法更有效,以及计算机计算能力中cots的减少。

In the field of agricultural information, the plant leaf disease detection is highly important for both farmer life and environment. To improve the accuracy of plant leaf disease detection and reduce the image processing time, the improved K‒mean++ clustering and intermeans thresholding method are proposed in this study. The proposed algorithms are used for training and testing diseases in plant leaf images in two different databases. Of the proposed methods, the intermeans algorithm will be selected based on different thresholding values. The optimal value of thresholding-i.e., the intermeans algorithm-will help increase the accuracy and speed of classifying diseases in plant leaf images. This method will be also used with unseen images of plant leaf. The experimental result of the detection of plant leaf diseases achieves an average detection accuracy of 98.10%. When compared with the results based on standard K‒mean clustering, the current method gives better results around 23.20%. The proposed algorithm is more effective than the standard algorithms for detecting plant leaf diseases, as well as the reduction in cots in the computational power of computers.

INTERMEANS ITER算法细节

一种迭代算法,其结果与OTSU算法相似

计算强度低于OTSU

算法从t的初始猜测开始

定义两类的均值μt和νt

设置t=[(μt+νt)/2]并重新计算μt和νt。

重复,直到t在两次连续迭代中具有相同的值

获得的t可能强烈依赖于其初始值

如果对象和背景占据可比较的区域,请使用平均值

如果对象与背景相比较小,请使用INTERMODES。

工具书类

T、 Ridler和S.Calvard,使用迭代选择方法的图像阈值,IEEE Trans。系统人网络。,第8卷,第630-6321978页。

H、 J.Trussell,评论?使用迭代选择方法的图像阈值处理?,IEEE Trans。系统人网络。,第9卷,第311页,1979年。

Details of INTERMEANS ITER algorithm
An iterative algorithm that gives similar results as the OTSU algorithm
Computationally less intensive than OTSU
The algorithm starts with an initial guess for t
Define the means μt and νt of the two classes
Set t = [(μt + νt)/2] and recalculate μt and νt.
Repeat until t has the same value in two consecutive iterations
The obtained t may strongly depend on its initial value
If the objects and background occupy comparable areas, use MEAN
If the objects are small compared to the background, use INTERMODES.
References

T. Ridler and S. Calvard, Picture thresholding using an iterative selection method, IEEE Trans. Systems Man Cybernet., vol. 8, pp. 630-632, 1978.
H. J. Trussell, Comments on ?Picture thresholding using an iterative selection method?, IEEE Trans. Systems Man Cybernet., vol. 9, p. 311, 1979.
Acknowledgements Based on the HistThresh Toolbox by Antti Niemistö, Tampere University of Technology, Finland

2、ISODATA算法源程序

using System;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Collections;
using System.Collections.Generic;
using System.Drawing.Imaging;namespace Legalsoft.Truffer.ImageTools
{public static partial class BinarizationHelper{#region 灰度图像二值化 全局算法 ISODATA法 /// <summary>/// ISODATA(也叫做intermeans法)/// </summary>/// <param name="histogram"></param>/// <returns></returns>public static int IsoData_Threshold(int[] histogram){int g = Histogram_Left(histogram) + 1;while (true){int w = 0;int totl = 0;for (int i = 0; i < g; i++){totl = totl + histogram[i];w = w + (histogram[i] * i);}int h = 0;int toth = 0;for (int i = g + 1; i < histogram.Length; i++){toth += histogram[i];h += (histogram[i] * i);}if (totl > 0 && toth > 0){w /= totl;h /= toth;if (g == (int)Math.Round((w + h) / 2.0)){break;}}g++;if (g > (histogram.Length - 2)){return 0;}}return g;}public static void IsoData_Algorithm(byte[,] data){int[] histogram = Gray_Histogram(data);int threshold = IsoData_Threshold(histogram);Threshold_Algorithm(data, threshold);}#endregion}
}

3、ISODATA算法程序计算效果

C#,图像二值化(17)——全局阈值的ISODATA算法(亦称作InterMeans法)及其源程序相关推荐

  1. 图像二值化处理(全局阈值 自适应阈值 手动阈值操作以及直方图画法)

    文章目录 图像二值化处理 二值化原理 API介绍 手动设置阈值 均值法 迭代法 自动设置阈值 直方图法 全局阈值法 OTSU法 三角形法 自适应阈值法 API 绘制图像直方图 图像二值化处理 二值化原 ...

  2. 图像二值化_三角阈值法

    前言 一.三角阈值法是什么? 二.算法原理 1.算法 总结 参考文献 前言 图像二值化有很多方法,比较经典的为OTSU,三角阈值法,本文主要想一探三角阈值法的算法原理. 一.三角阈值法是什么? 三角阈 ...

  3. java 用遗传算法解决图像二值化问题 找阈值

    image类对图像处理 import java.awt.image.BufferedImage; public class Image {public int h; //高public int w; ...

  4. 【图像处理】——图像的二值化操作及阈值化操作(固定阈值法(全局阈值法——大津法OTSU和三角法TRIANGLE)和自适应阈值法(局部阈值法——均值和高斯法))

    目录 一.二值化的概念(实际上就是一个阈值化操作) 1.概念: 2.实现方法 3.常用方法 二.阈值类型 1.常见阈值类型(主要有五种类型) (1)公式描述 (2)图表描述 2.两种特殊的阈值算法(O ...

  5. OTSU_图像二值化分割阈值的算法

    简介: 大津法(OTSU)是一种确定图像二值化分割阈值的算法,由日本学者大津于1979年提出.从大津法的原理上来讲,该方法又称作最大类间方差法,因为按照大津法求得的阈值进行图像二值化分割后,前景与背景 ...

  6. 自适应阈值图像二值化

    一.二值化 关于二值化的介绍,以前的博客中有介绍,这里就不再描述了,二值化介绍:二值化分为固定阈值二值化和自适应阈值二值化,固定阈值二值化方式是我们常用的二值化方式,需要自己摸索一个经验阈值,不断调整 ...

  7. 图像二值化(选择阈值)

    目录 1. 双峰法 2. 大津法(Otsu法或最大类间方差法) 1. 双峰法 在一些简单的图像中,物体的灰度分布比较有规律,背景与各个目标在图像 的直方图各自形成一个波峰,即区域与波峰一一对应,每两个 ...

  8. 二值化图像的欧拉数_Android OpenCV(八):图像二值化

    图像二值化 简介 图像二值化( Image Binarization)就是将图像上的像素点的灰度值设置为0或255,也就是将整个图像呈现出明显的黑白效果的过程.在数字图像处理中,二值图像占有非常重要的 ...

  9. OpenCV-Python 图像二值化

    OpenCV-Python 图像二值化 一.什么是图像二值化 二.图像二值化 Ⅰ先获取阈值: Ⅱ根据阈值去二值化图像 ⅢOpenCV中的二值化方法 三.全局阈值函数cv2.threshold · 函数 ...

  10. 数字图像基础——图像通道、空间域表示、图像二值化

    文章目录 一.数字彩色图像的组成结构? 二.数字图像是如何数字化存储的? 三.彩色图像的灰度化? 四.图像二值化 五.opencv实战 1.读取图像及验证图像通道 2.RGB2GRA 3.二值化 一. ...

最新文章

  1. R语言数据热力图绘制实战(基于原生R函数、ggplot2包、plotly包)
  2. 一步步揭开 原型链的面纱 面试再也不慌 原型链
  3. 【Kali渗透全方位实战】利用Beef进行XSS会话劫持(XSS Stored)
  4. debian6 xen4.0安装 guest半虚拟化--tar安装
  5. mysql多表关联更新
  6. 命名管道实现进程的信息传递【mkfifo函数、open函数】
  7. python编译器无法运行input_为何python多线程程序在末尾添加input()能运行,不添加就不能运行...
  8. 【体系结构】Oracle体系结构的独特理解
  9. Java基础篇:什么是线程优先级?
  10. 如何将 UbuntuServer 安全的升级
  11. 《概率论与数理统计》重学笔记
  12. spss可以关键词词频分析吗_词频分析及常用工具比较研究.pdf
  13. HDU - 5894 hannnnah_j’s Biological Test 组合数(插板法)
  14. easyExcel 复杂表头 动态表头
  15. 第 2-3 课:迭代法计算定积分
  16. Langevin dynamic 和 Hamiltonian Monte Carlo
  17. 密室寻宝(find)
  18. python repair修复功能_NI 技术支持|我的插件显示需要修复(REPAIR)了该怎么办?...
  19. 移动OA系统,联动企业协作让办公高效无间断
  20. 安卓手机免ROOT控制顽固后台提升续航

热门文章

  1. 论文写作总结之(一) -- Abstract 写法总结
  2. linux下more命令的使用
  3. 概率论与数理统计学习笔记——第二章
  4. 数据中台夯实数据基础
  5. 通过上下两册书籍夯实Python基础,这本书就是Python的必备书籍
  6. IBM 的另一面http://www-31.ibm.com/innovation/cn/iter/2011v17/
  7. 08年中报大幅预增股
  8. 云洲智能在科创板恢复IPO审核,拟募集资金15.5亿元
  9. oracle 不释放内存,内存不释放?解决方法
  10. 微信知识付费小程序梦想贩卖机v2-1.0.67源码下载+无限裂变