OTSU

Segmentation is often considered to be the first step in image analysis.

image segmentation is categorized as Edged based segmentation and region based segmentation.

Based on theory there are two main edge based segmentation methods, gray histogram based and gradient based method

There are different type of the Region based method like thresholding, region growing and region splitting and merging.

There are two types of thresholding methods:

  • Global thresholding

Otsu method is type of global thresholding in which it depend only gray value of the image.

One-dimensional which only consider the gray-level information, it does not give better segmentation result.

This algorithm fails, when the global distribution of the target and background vary widely

Two dimensional Otsu algorithms was proposed which works on both gray-level threshold of each pixel as well as its Spatial correlation information within the neighborhood.

  • Local thresholding

This method divides an original image into several sub regions, and chooses various thresholds T for each sub region reasonably

---------------------------------------------------------------------------------------------------------------------------------------------------

Automatic Thresholding Algorithm Iterative threshold selection Steps:

1 Select an initial estimate of the threshold T. A good initial value is the average intensity of the image.
3. Calculate the mean grey values u1 and u2 of the partitions R1, R2 .
2. Partition the image into two groups, R1, R2 , using the threshold T.
4. Select a new threshold: T=(u1+u2)/2.
5. Repeat steps 2-4 until the mean values and in successive iterations do not change.

---------------------------------------------------------------------------------------------------------------------------------------------------

Reference Papers:
《A Review on Otsu Image Segmentation Algorithm》
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Otsu算法是一种用于图像分割的经典算法,主要用于将图像中的前景和背景进行分离。它最早由日本的学者大津展之于1979年提出,被广泛应用于图像处理领域。 在Android开发中,OTSU算法可以通过OpenCV库进行实现。OpenCV是一个功能强大的开源库,提供了各种图像处理的功能和工具。 在Android应用程序中使用OTSU算法,首先需要导入OpenCV库,并将其配置到Android项目中。然后,可以使用OpenCV提供的函数来实现OTSU算法的具体逻辑。 OTSU算法的核心思想是通过计算图像灰度直方图的形状来自动确定最佳的阈值,从而实现图像的自动分割。它通过最小化图像前景和背景之间的类内方差,以及最大化类间方差来实现。具体而言,OTSU算法将图像的灰度级别划分为两个类别,然后计算类内和类间方差,并选择使类间方差最大化的阈值作为最佳划分点。 在Android应用中使用OTSU算法,可以实现自动分割图像,并将前景提取出来。这在一些应用场景中非常有用,如图像识别、目标检测等。通过使用OTSU算法,我们可以更方便地进行图像分析和处理,提高应用程序的性能和效果。 总之,OTSU算法是一种用于图像分割的经典算法,在Android开发中可以使用OpenCV库进行实现。利用OTSU算法,我们可以在Android应用程序中实现图像的自动分割,提高图像处理的效率和准确性。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值