什么是图像细分?

你需要知道的3件事

Image segmentation is a commonly used technique in digital image processing and analysis to partition an image into multiple parts or regions, often based on the characteristics of the pixels in the image. Image segmentation could involve separating foreground from background, or clustering regions of pixels based on similarities in color or shape. For example, a common application of image segmentation in medical imaging is to detect and label pixels in an image or voxels of a 3D volume that represent atumor in a patient’s brain或其他器官。

为什么图像分割事项

多年来,多年来,使用域特定知识在多年上已经开发了几种算法和图像分割技术,以有效解决特定应用区域中的分割问题。这些应用包括医学成像,自动化驾驶,视频监控和机器视觉。

Medical Imaging

在癌症的医学诊断过程中,病理学家用苏木精和曙红(H&E)染色身体组织,以区分组织类型。然后他们使用调用的图像分割技术聚类识别图像中的那些组织类型。聚类is a method to separate groups of objects in a scene. The K-means clustering algorithm finds separations such that objects within each cluster are as close to each other as possible, and as far from other objects in other clusters as possible.

使用聚类以区分用苏木精和曙红(H&E)染色的身体组织(顶部)的图像类型(底部)。

Autonomous Driving

在为自动驾驶汽车等自动车辆的观念设计时,语义细分通常被用来帮助系统识别和locate vehicles and other objects on the road.

使用语义分割将图像的每个像素与类标签相关联(例如汽车,道路,天空,行人或自行车)。

How Image Segmentation Works

图像分割涉及将图像转换成由掩模或标记图像表示的像素区域的集合。通过将图像划分为片段,您只能处理图像的重要段而不是处理整个图像。

一种常见的技术是在像素值中寻找突然的不连续性,其通常表示定义区域的边缘。

使用thresholding to convert to a binary image to improve the legibility of the text in an image.

Another common approach is to detect similarities in the regions of an image. Some techniques that follow this approach are region growing, clustering, and thresholding.

Segmenting regions based on color values, shapes, or texture.

多年来,多年来使用域特定知识在多年上已经开发了各种其他执行图像分割的方法,以有效地解决特定应用领域的分割问题。

MATLAB的图像分割

MATLAB®you can:

  • Use apps to interactively explore different segmentation techniques
  • 使用内置图像分割算法简化图像分析工作流程
  • 对图像分割进行深度学习

使用Apps to Interactively Threshold Images

图像分段器应用程序

使用交互式图像分段器应用程序,您可以迭代地尝试在实现所需结果之前逐次段的方法。例如,您可以使用该应用程序segment and further refinethe results of an MRI image of a knee with different methods.

使用图像分段器应用程序to interactively apply different segmentation techniques.

颜色阈值应用程序

This Color Thresholder app lets you apply thresholding to color images by manipulating the color of the images interactively, based on different color spaces. For example, you can use the Color Thresholder app to创建二进制掩码使用点云控件进行彩色图像。

使用颜色阈值应用程序to apply color segmentation to separate the birds in the foreground from the background.

使用a Variety of Image Segmentation Techniques

借functions in MATLAB andImage Processing Toolbox™,您可以在不同的图像分割技术上进行实验和构建专业知识,包括阈值处理,聚类,基于图形的分割和区域生长。

Thresholding

使用Otsu’s method,imbinarize在2D或3D灰度图像上执行阈值处理以创建二进制图像。从RGB彩色图像生成二进制图像,使用RGB2GRAY.to first convert it to a grayscale image.

使用阈值处理将彩色图像转换为二进制图像。

聚类

This technique lets you create a segmented labeled image using a specific clustering algorithm. Using K-means clustering–based segmentation,Imsegkmeans.segments an image into K number of clusters.

聚类technique to separate out the patterned background on the floor.

Graph-Based Segmentation

基于图形的分段技术,如懒惰捕捉使您可以将图像分段为前景和背景区域。Matlab允许您以编程方式在图像上执行此分段(leazysnapping.) or interactively using the Image Segmenter app.

懒惰捕捉分离前景和背景区域。

使用图像分段器应用程序以交互方式应用基于图形的分段。

地区生长

地区生长是一种基于简单的区域(也被分类为基于像素的)图像分割方法。一种普遍使用的算法是ActiveCont.那which examines neighboring pixels of initial seed points and determines iteratively whether the pixel neighbors should be added to the region. You can also perform this segmentation on images using the Image Segmenter app.

使用图像分段器应用程序执行区域生长。

深度学习图像分割

使用convolutional neural networks (CNNs), a deep learning technique called semantic segmentation lets you associate every pixel of an image with a class label. Applications for semantic segmentation include autonomous driving, industrial inspection, medical imaging, and satellite image analysis.

语义分割技术的示意图。

使用MATLAB,您可以使用图像的集合及其相应的标记图像设计和培训语义分段网络,然后使用训练网络标记新图像。至label the training images那you can use the Image Labeler, Video Labeler, or Ground Truth Labeler apps.

使用Ground Truth Labeler app to perform semantic segmentation.

Learn More About Image Segmentation

使用已准备好运行或修改的代码下载应用程序示例,包括使用图像分割,检测和测量圆形对象检测单元,以及使用Gabor滤波器的纹理分段。
使用图像分割应用程序,您可以预览图像如何在将其与基于强度的方法分割的图像以及诸如图形切割,圆形查找和区域的技术之类的技术。
获取图像并执行图像分析以查找小对象,计算它们,并通过颜色区分它们。
Learn the high-level workflow for semantic segmentation using a deep learning network. Additionally, learn how the Image Labeler app can expedite your workflow for ground truth labeling at the pixel level.
使用L * A * B *颜色空间和K-means群集以自动方式进行分段颜色。
使用边缘检测和基本形态检测电池。
使用流域分段将触摸对象分开在图像中。
Read about image processing concepts and algorithms.