Matlab图像处理函数regionprops.doc
文本预览下载声明
Matlab图像处理函数:regionprops
这里给出在Matlab图像处理工具箱中非常重要的一个图像分析函数:regionprops。顾名思义:它的用途是get the properties of region,即用来度量图像区域属性的函数。
语法
STATS = regionprops(L,properties)
描述
测量标注矩阵L中每一个标注区域的一系列属性。L中不同的正整数元素对应不同的区域,例如:L中等于整数1的元素对应区域1;L中等于整数2的元素对应区域2;以此类推。返回值STATS是一个长度为max(L(:))的结构数组,结构数组的相应域定义了每一个区域相应属性下的度量。properties 可以是由逗号分割的字符串列表、饱含字符串的单元数组、单个字符串 all 或者 basic。如果 properties 等于字符串 all,则所有下述字串列表中的度量数据都将被计算,如果 properties 没有指定或者等于 basic,则属性: Area, Centroid, 和 BoundingBox 将被计算。下面的列表就是所有有效的属性字符串,它们大小写敏感并且可以缩写。
属性字符串列表 HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l Area Area HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l EquivDiameter EquivDiameter HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l MajorAxisLength MajorAxisLength HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l BoundingBox BoundingBox HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l EulerNumber EulerNumber HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l MinorAxisLength MinorAxisLength HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l Centroid Centroid HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l Extent Extent HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l Orientation Orientation HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l ConvexArea ConvexArea HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l Extrema Extrema HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l PixelIdxList PixelIdxList HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l ConvexHull ConvexHull HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l FilledArea FilledArea HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l PixelList PixelList HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l ConvexImage ConvexImage HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l FilledImage FilledImage HYPERLINK /course/mathmodel/zuoxinian/mat_region.html \l Soli
显示全部