Connected Component Labeling
CCLabeling
01 Syntax
Microsoft.VisualBasic.Math.MachineVision.CCL.CCLabeling
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| TwoPassProcess | 1 | 使用Two-Pass算法处理图像 |
| FindRoot | 1 | 查找根节点(带路径压缩) |
| Process | 1 |
03 Members
TwoPassProcess(
BitmapBuffer, Color, Int32)使用Two-Pass算法处理图像
Parameters
| Name | Type | Description |
|---|---|---|
input | BitmapBuffer | 输入图像缓冲区 |
background | Color | 背景颜色(通常为白色) |
tolerance | Int32 | 颜色容差 |
Returns
标记后的多边形列表
FindRoot(
Int32, Dictionary(Of Int32, Int32))查找根节点(带路径压缩)
Process(
BitmapBuffer, Nullable(Of Color), Int32)Parameters
| Name | Type | Description |
|---|---|---|
input | BitmapBuffer | - |
background | Nullable(Of Color) | the background color usually be white color |
tolerance | Int32 | - |