Halcon学习之计数

Halcon 里面计算个数的算子有两个:

1、          count_obj ( Objects : : : Number ) 主要用法是计算 objects 的个数。

2、          assign ( : : Input : Result )  给控制变量分配新值

例: NumBalls := |Radius|

区别 Count_obj 主要是用来计算被识别出来的区域的个数

        Assign 主要是用来识别数组中的值


在众多区域中选择输出的算子是

select_obj ( Objects : ObjectSelected : Index : ) Index 是指编号,且从 1 开始计数

 

你可能感兴趣的:(Halcon学习,input)