函数im.AnalyzeMeasureHoles
(image: imImage, connect: number, [region_count: number])
-> counter: boolean, holes_count: number, holes_area: table of numbers, holes_perim: table of numbers
connect:Regions can be 4 connected or 8 connected
自Function Documentation下的第一个函数(imAnalyzeFindRegions)的参数(connect)的说明。
region_count:The number of regions found
自..同上。
im.AnalyzeFindRegionsNew-im.AnalyzeMeasureHoles
本栏(Image Analysis)下都/多是基于im.AnalyzeFindRegions。
area使用:
[const] int* area [in C], area: table of numbers [in Lua]
aera是数组。
area是子区域(Region)是区域的集合。
int region_count: number
- polygonal area
- area of Regions.
- 无areas
- holes in regions/area are not included
Regions使用:
- Find white regions in binary image.
- Regions can be 4 connected or 8 connected.
- The number of regions found.
- Measure the actual area of all regions.
- Measure the number of holes of all regions.
- the perimeter line of all regions
- number of pixels of each region
(region->pixel)s