主要内容

Image Region Analyzer

图像中的浏览和过滤器连接的组件

Description

TheImage Region AnalyzerApp在二进制图像中测量每个连接的组件(也称为对象或区域)的一组属性,并将此信息显示在表中。您还可以使用此应用程序来通过在区域属性上过滤图像来创建其他二进制图像。

Image Region Analyzercan calculate these properties.

Property Name Description
“区域” Number of pixels in the region.
"ConvexArea" Number of pixels in the convex hull. The convex hull is the smallest convex polygon that can contain the region. For more information about classifying pixels on the boundary of the hull, seeClassify Pixels That Are Partially Enclosed by ROI.
“怪异” Eccentricity of the ellipse that has the same second-moments as the region. The eccentricity is the ratio of the distance between the foci of the ellipse and its major axis length. The value is between 0 and 1. (0 and 1 are degenerate cases. An ellipse whose eccentricity is 0 is actually a circle, while an ellipse whose eccentricity is 1 is a line segment.)
"EquivDiameter" 与区域相同区域的圆的直径(以像素为单位),计算为SQRT(4*区域/PI).
"EulerNumber" Euler number (also known as the Euler characteristic), calculated as 1 minus the number of holes in the region.
"Extent" 比照片的像素在该地区els in the total bounding box, calculated asAreadivided by the area of the bounding box.
"FilledArea" Number of pixels in the region after filling all holes in the region.
"MajorAxisLength" Length (in pixels) of the major axis of the ellipse that has the same normalized second central moments as the region.
"MinorAxisLength" Length (in pixels) of the minor axis of the ellipse that has the same normalized second central moments as the region.
"Orientation"

Angle (in degrees) between thex- 具有与区域相同的第二矩的椭圆的主要轴。该值在范围内(–90,90]。

This figure illustrates the axes and orientation of the ellipse. The left side of the figure shows an image region and its corresponding ellipse. The right side shows the same ellipse with the solid blue lines representing the axes. The red dots are the foci. The orientation is the angle between the horizontal dotted line and the major axis.

图像区域周围椭圆形的轴和方向

“周长”

Distance (in pixels) around the boundary of the region, calculated by adding the distance between each adjoining pair of pixels around the border of the region. This figure illustrates the pixels included in the perimeter calculation for a sample region.

Perimeter pixels of a region

"Solidity" 凸壳中也位于该区域中的像素的比例,计算为Area/ConvexArea.

Open the Image Region Analyzer App

  • MATLAB®Toolstrip: On theAppstab, underImage Processing and Computer Vision, 点击Image Region Analyzer应用图标。

  • MATLAB命令提示:输入imageRegionAnalyzer.

Programmatic Use

expand all

imageRegionAnalyzeropens theImage Region Analyzer应用程序,使您能够创建其他二进制图像并获取有关二进制图像中区域的信息。

成像静脉分析仪(I)opens theImage Region Analyzer应用程序,加载图像I进入应用程序。

imageRegionAnalyzer closecloses all open instances of theImage Region Analyzer应用程序。

提示

  • Image Region Analyzer使用regionpropsfunction to identify regions in the image and calculate properties of those regions. Note that theregionpropsoffers additional capabilities for calculating region properties:

    • Measure properties of images with discontiguous regions

    • Measure additional properties such as the centroid and the maximum and minimum Feret diameter and angle

    • Measure pixel value properties of grayscale images

    • Measure a subset of properties for N-D images

    • Perform measurements on a GPU and generate code

  • Image Region Analyzer使用bwpropfiltbwareafiltfunctions to filter binary images.

Version History

在R2014b中引入

See Also

Functions