Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

区域和图像属性

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

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

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

App

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

函数

全部展开

regionprops测量图像区域的属性
regionprops3Measure properties of 3-D volumetric image regions
bwarea二值图像中对象的面积
bwconvhullGenerate convex hull image from binary image
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按大小从二值图像中提取对象
bwpropfiltExtract objects from binary image using properties
bwselectSelect objects in binary image
bwselect3Select objects in binary volume
bwlabel对二维二值图像中的连通分量进行标注
bwlabeln对二值图像中的连通分量加标签
labelmatrixCreate label matrix from bwconncomp structure
label2rgbConvert label matrix into RGB image
poly2labelCreate label matrix from set of ROIs
poly2mask将感兴趣的区域 (ROI) 多边形转换为区域掩膜

主题

区域和目标属性

像素和路径属性

  • 像素值
    要确定图像中一个或多个像素的值,您可以通过交互方式选择图像上的点,或指定数组中的像素坐标。
  • Get Pixel Information in Image Viewer App
    Display information about the location and value of individual pixels or small neighborhoods of pixels.
  • Measure Distance Between Pixels in Image Viewer App
    Measure the length of a line segment drawn between two pixels. You can refine the position of the line segment and make multiple measurements.
  • Intensity Profile of Images
    The intensity profile of an image is the set of intensity values taken from regularly spaced points along a line or path in the image.

图像属性

  • 图像均值、标准差和相关系数
    您可以计算二维图像中所有像素的标准统计量。工具箱中的这些统计量不同于其对应的一维统计量,后者分别对图像的每一列进行计算。
  • Create Image Histogram
    Create a histogram that shows the distribution of intensities in a grayscale image.
  • 二值图像的距离变换
    二值图像的距离变换显示从每个像素到非零像素的距离。可以使用不同的方法来度量两个像素之间的距离。
  • Contour Plot of Image Data
    A contour is a path in an image along which intensity values are constant. Contour plots can show the outline of objects in an image or represent a 3-D shape in a 2-D plane.