工控编程吧

标题: 工业视觉halcon tuple对比相关函数详解 [打印本页]

作者: qq263946146    时间: 2019-11-7 09:56
标题: 工业视觉halcon tuple对比相关函数详解

Halcon当中,还可以让两元组内元素一一对比,
将结果进行使用,也就是执行TUPLE的对比操作。
这些相关的操作函数为
tuple_equal
tuple_equal_elem
tuple_not_equal
tuple_not_equal_elem

tuple_greater
tuple_greater_elem
tuple_greater_equal
tuple_greater_equal_elem

tuple_less
tuple_less_elem
tuple_less_equal
tuple_less_equal_elem

a:=[1,2,3,4]
b:=[1,6,7,8]
tuple_equal (a, b, Equal)
*tuple_equal_elem (a, b, Equal1)
tuple_not_equal (a, b, Nequal)
*tuple_not_equal_elem (a, b, Nequal1)
tuple_greater (b, a, Greater)
tuple_greater_elem (a, b, Greater1)
tuple_greater_equal (a, b, Greatereq)
tuple_greater_equal_elem (a, b, Greatereq1)

tuple_less (a, b, Less)
tuple_less_elem (a, b, Less1)
tuple_less_equal (a, b, Lesseq)
tuple_less_equal_elem (a, b, Lesseq1)
帖子为下边halcon视频教程部分内容,
可以下载学习。
[halcon]1[/halcon]
[MFC408]1[/MFC408]
[weixinlianxi]1[/weixinlianxi]






欢迎光临 工控编程吧 (https://www.gkbc8.com/) Powered by Discuz! X3.4