halcon学习之tuple_find

tuple_find( T1,T2 ,T3):

含义:Return the indices of all occurrences of a tuple within another tuple.

    //**TupleFind获取某个元素在另一个数组里的所有位置值,并就这个位置返回一个数组;

    tuple_find searches Tuple sequentially for all occurrences of the values of the second tuple ToFind and returns the indices in Indices (in relation to the first input tuple Tuple)

    //**即寻找T2在T1中所有出现的位置值,并返回到数组T3中;

理解在T1中寻找T2出现的位置.

例子:tuple_find([3,4,5,6,1,2,3,4,0],[3,4],T3则:T3结果为:[0,6]

备注:If the first tuple does not contain the second tuple as a subtuple, tuple_find returns -1 in Indices.假如第一个元组里不包含第二个元组的元素,那么tuple_find返回值-1;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值