Main Content

本页对应的英文页面已更新,但尚未翻译。 若要查看最新内容,请点击此处访问英文页面。

区域和图像属性

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

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

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

App

Image Region AnalyzerBrowse and filter connected components in an image

函数

全部展开

regionpropsMeasure properties of image regions
regionprops3Measure properties of 3-D volumetric image regions
bwarea二值图像中对象的面积
bwconvhullGenerate convex hull image from binary image
bweulerEuler number of binary image
bwferetMeasure Feret properties
bwperimFind perimeter of objects in binary image
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
imhistHistogram of image data
mean2Average or mean of matrix elements
std2矩阵元素的标准差
corr2二维相关系数
bwconncomp查找二值图像中的连通分量
bwareaopen从二值图像中删除小对象
bwareafilt按大小从二值图像中提取对象
bwpropfiltExtract objects from binary image using properties
bwselectSelect objects in binary image
bwselect3Select objects in binary volume
bwlabel对二维二值图像中的连通分量进行标注
bwlabelnLabel connected components in binary image
labelmatrixCreate label matrix from bwconncomp structure
label2rgbConvert label matrix into RGB image

主题

区域和目标属性

Label and Measure Connected Components in a Binary Image

An object in a binary image is a set of connected pixels with the same value. You can count, label, and isolate objects, and you can measure object properties such as area.

Calculate Properties of Image Regions Using Image Region Analyzer

This example shows how to calculate the properties of regions in binary images by using the Image Region Analyzer app.

像素和路径属性

Pixel Values

To determine the values of one or more pixels in an image, you can select points on an image interactively, or you can specify the pixel coordinates in an array.

Get Pixel Information in Image Viewer App

You can display information about the location and value of individual pixels or small neighborhoods of pixels.

Measure Distance Between Pixels in Image Viewer App

You can 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.

图像属性

Image Mean, Standard Deviation, and Correlation Coefficient

You can compute standard statistics of all pixels in a 2-D image. The statistics in the toolbox differ from their 1-D counterparts, which operate on each column of an image separately.

Create Image Histogram

This example shows how to create a histogram that shows the distribution of intensities in a grayscale image.

Distance Transform of a Binary Image

The distance transform of a binary image shows the distance from each pixel to a nonzero pixel. There are different ways to measure the distance between two pixels.

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.

特色示例