英文:
Create pose-array in Halcon
问题
我曾多次看到由Halcon程序(如find_surface_model)生成的姿势数组。
当我尝试自己创建一个时,无法使其正常工作。
我尝试了tuple_concat()
和一些数组表示法,但结果都相同,得到一个长数组。
如何创建一个姿势数组?想了解HDevelop和Halcon.NET两种情况下的方法。
英文:
Ive seen a pose array a few times generated by a Halcon procedures like find_surface_model.
When I try to create one myself I cant get it to work.
I tried tuple_concat()
and a few array notation things but the result is the same, one lengthy array.
How can you make a pose-array? Would like to know for HDevelop as well as Halcon.NET.
答案1
得分: 1
在HDevelop中,与C#不同的仅仅是元组的语义类型。这可以通过以下过程进行更改:首先,连接所有的姿势;然后创建一个具有一个输入和一个输出元组的过程,只需将输入复制到输出中。在过程的设置中,将输出元组的sem_type设置为"pose"。然后,您可以使用该过程将您的元组转换为姿势数组。
英文:
I'm not sure about C#, but in HDevelop the difference is only the semantic type of the tuple. That can be changed using a procedure: First, concatenate all the poses; then make a procedure that has one input and one output tuple, and simply copies the input into the output. In the procedure's settings, set the sem_type of the output tuple to "pose". You can then use that procedure to convert your tuple into a pose array.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论