主要内容

区域和图像属性

R2026b
获取图像中目标的有关信息

图像区域,也称为目标、连通分量或斑点,具有诸如面积、质心、方向和边界框等属性。要计算这些属性(以及更多属性),您可以使用图像区域分析器或 regionprops 函数。

您还可以沿图像中的路径测量单个像素的像素值,或在整个图像上进行聚合。

App

图像区域分析器Browse and filter connected components in image

函数

全部展开

regionprops测量图像区域的属性
regionprops3Measure properties of 3-D volumetric image regions
bwarea二值图像中目标的面积
bwconvhull从二值图像生成凸包图像
bweulerEuler number of binary image
bwferetMeasure Feret properties
bwperim找出二值图像中目标的边界
impixelPixel color values
improfilePixel-value cross-sections along line segments
imcontourCreate contour plot of image data
bwdist二值图像的距离变换
bwdistgeodesicGeodesic distance transform of binary image
graydistGray-weighted distance transform of grayscale image
imhist图像数据的直方图
mean2矩阵元素的平均值或均值
std2矩阵元素的标准差
corr2二维相关系数
bwconncomp查找二值图像中的连通分量并对其计数
bwareaopen从二值图像中删除小对象
bwareafilt按大小从二维二值图像中提取对象
bwvolumefiltExtract objects from 3-D binary image by volume (自 R2026b 起)
bwpropfiltExtract objects from 2-D binary image using properties
bwpropfilt3Extract objects from 3-D binary image using properties (自 R2026b 起)
bwselectSelect objects in binary image
bwselect3Select objects in binary volume
bwlabel对二维二值图像中的连通分量进行标注
bwlabeln对二值图像中的连通分量加标签
cc2bw将连通分量转换为二值图像 (自 R2024a 起)
labelmatrix从连通分量中的对象创建标签矩阵
label2rgbConvert label matrix into RGB image
poly2labelCreate label matrix from set of ROIs
poly2mask将感兴趣的区域 (ROI) 多边形转换为区域掩膜

主题

区域和目标属性

像素和路径属性

图像属性

精选示例