图像分割是数字图像处理和分析中的常用技术,以将图像分为多个部分或区域,通常基于图像中的像素的特性。图像分割可能涉及将前景从背景中分离,或者基于颜色或形状的相似度分离像素的聚类区域。例如,医学成像中的图像分割的共同应用是检测和标记表示a的3D卷的图像或体素的像素。患者的大脑中的肿瘤或其他器官。
Several algorithms and techniques for image segmentation have been developed over the years using domain-specific knowledge to effectively solve segmentation problems in that specific application area. These applications include medical imaging, automated driving, video surveillance, and machine vision.
During medical diagnosis for cancer, pathologists stain body tissue with hematoxylin and eosin (H&E) to distinguish between tissue types. They then use an image segmentation technique called聚类to identify those tissue types in their images.聚类是在场景中分离一组对象的方法。K-means聚类算法发现分离,使得每个簇内的对象尽可能彼此彼此接近,并且远离其他簇中的其他对象尽可能远。
在为自动驾驶汽车等自动车辆的观念设计时,semantic segmentation普遍用来帮助系统识别和找到道路上的车辆和其他物体。
Image segmentation involves converting an image into a collection of regions of pixels that are represented by a mask or a labeled image. By dividing an image into segments, you can process only the important segments of the image instead of processing the entire image.
一种常见的技术是在像素值中寻找突然的不连续性,其通常表示定义区域的边缘。
另一种常见方法是检测图像区域中的相似性。遵循这种方法的一些技术是区域生长,聚类和阈值。
A variety of other approaches to perform image segmentation have been developed over the years using domain-specific knowledge to effectively solve segmentation problems in specific application areas.
With马铃薯®,您可以:
Using the interactive Image Segmenter app, you can iteratively try several methods to segment an image before achieving the desired result. For example, you can use the app to细分和进一步改进具有不同方法的膝关节的MRI图像的结果。
此颜色阈值应用程序可允许您通过以交互方式操作图像来申请彩色图像,基于不同的颜色空间。例如,您可以使用颜色阈值应用程序create a binary maskusing point cloud controls for a color image.
在matlab和matlab的功能图像处理工具箱™, you can experiment and build expertise on the different image segmentation techniques, including thresholding, clustering, graph-based segmentation, and region growing.
使用Otsu的方法,imbinarize.
performs thresholding on a 2D or 3D grayscale image to create a binary image. To produce a binary image from an RGB color image, useRGB2GRAY.
首先将其转换为灰度图像。
此技术允许您使用特定的聚类算法创建分段标记的图像。使用基于K-Means聚类的分割,imsegkmeans
将图像分段为k个簇。
Graph-based segmentation techniques like lazy-snapping enable you to segment an image into foreground and background regions. MATLAB lets you perform this segmentation on your image either programmatically (lazysnapping
)或者使用图像分段器应用交互式。
Region growing is a simple region-based (also classified as a pixel-based) image segmentation method. A popularly used algorithm isactivecontour
,这检查了初始种子点的相邻像素,并迭代地确定是否应该将像素邻居添加到该区域。您还可以使用图像分部器应用程序在图像上执行此分段。
使用卷积神经网络(CNNS),一种名为语义分割的深度学习技术,允许您将图像的每个像素与类标签相关联。语义分割的应用包括自主驾驶,工业检验,医学成像和卫星图像分析。