Image Analysis
[Image Processing]
Detailed Description
- See im_process_ana.h
Functions | |
int | imAnalyzeFindRegions (const imImage *src_image, imImage *dst_image, int connect, int touch_border) |
void | imAnalyzeMeasureArea (const imImage *image, int *area, int region_count) |
void | imAnalyzeMeasurePerimArea (const imImage *image, float *perimarea) |
void | imAnalyzeMeasureCentroid (const imImage *image, const int *area, int region_count, float *cx, float *cy) |
void | imAnalyzeMeasurePrincipalAxis (const imImage *image, const int *area, const float *cx, const float *cy, const int region_count, float *major_slope, float *major_length, float *minor_slope, float *minor_length) |
void | imAnalyzeMeasureHoles (const imImage *image, int connect, int *holes_count, int *area, float *perim) |
void | imAnalyzeMeasurePerimeter (const imImage *image, float *perim, int region_count) |
void | imProcessPerimeterLine (const imImage *src_image, imImage *dst_image) |
void | imProcessPrune (const imImage *src_image, imImage *dst_image, int connect, int start_size, int end_size) |
void | imProcessFillHoles (const imImage *src_image, imImage *dst_image, int connect) |
Function Documentation
|
Find white regions in binary image.
im.AnalyzeFindRegions(src_image: imImage, dst_image: imImage, connect: number, touch_border: number) -> count: number [in Lua 5] im.AnalyzeFindRegionsNew(image: imImage, connect: number, touch_border: number) -> count: number, new_image: imImage [in Lua 5] |
|
Measure the actual area of all regions. Holes are not included.
im.AnalyzeMeasureArea(image: imImage, [region_count: number]) -> area: table of numbers [in Lua 5] |
|
Measure the polygonal area limited by the perimeter line of all regions. Holes are not included.
im.AnalyzeMeasurePerimArea(image: imImage, [region_count: number]) -> perimarea: table of numbers [in Lua 5] |
|
Calculate the centroid position of all regions. Holes are not included.
im.AnalyzeMeasureCentroid(image: imImage, [area: table of numbers], [region_count: number]) -> cx: table of numbers, cy: table of numbers [in Lua 5] |
|
Calculate the principal major axis slope of all regions.
im.AnalyzeMeasurePrincipalAxis(image: imImage, [area: table of numbers], [cx: table of numbers], [cy: table of numbers], [region_count: number]) -> major_slope: table of numbers, major_length: table of numbers, minor_slope: table of numbers, minor_length: table of numbers [in Lua 5] |
|
Measure the number and area of holes of all regions.
im.AnalyzeMeasureHoles(image: imImage, connect: number, [region_count: number]) -> holes_count: number, area: table of numbers, perim: table of numbers [in Lua 5] |
|
Measure the total perimeter of all regions (external and internal).
im.AnalyzeMeasurePerimeter(image: imImage) -> perim: table of numbers [in Lua 5] |
|
Isolates the perimeter line of gray integer images. Background is defined as being black (0).
im.ProcessPerimeterLine(src_image: imImage, dst_image: imImage) [in Lua 5] im.ProcessPerimeterLineNew(image: imImage) -> new_image: imImage [in Lua 5] |
|
Eliminates regions that have size outside the given interval.
im.ProcessPrune(src_image: imImage, dst_image: imImage, connect: number, start_size: number, end_size: number) [in Lua 5] im.ProcessPruneNew(image: imImage, connect: number, start_size: number, end_size: number) -> new_image: imImage [in Lua 5] |
|
Fill holes inside white regions.
im.ProcessFillHoles(src_image: imImage, dst_image: imImage, connect: number) [in Lua 5] im.ProcessFillHolesNew(image: imImage, connect: number) -> new_image: imImage [in Lua 5] |