本文共 1230 字,大约阅读时间需要 4 分钟。
00. 目录
文章目录
01. 概述
convert_vector_to_tuple - 将容器的元素连接到单个元组。
02. 签名
convert_vector_to_tuple( : : InputVector : ResultTuple)
03. 描述
convert_vector_to_tuple将一个容器转换成一个元组。 输入容器InputVector的元素被连接并存储在输出元组ResultTuple中。 如果InputVector具有2或更大的维度,则其元素将在深度优先搜索中收集。 例如,输入容器{
{ {1},{2}},{ {3},{4}}}'将被转换为结果元组[1,2,3,4]。原文描述:
convert_vector_to_tuple transforms a vector into a tuple. The elements of the input vector InputVector get concatenated and stored in the output tuple ResultTuple. If InputVector has a dimension of 2 or greater its elements are collected in a depth-first search. E.g., the input vector ‘{
{ {1},{2}},{ {3},{4}}}’ will be turned into the result tuple [1,2,3,4].04. 注意
略
05. 参数
InputVector (input_control) number-vector → (real / integer / string)
输入容器ResultTuple (output_control) real(-array) → (real / integer / string)
输出元组06. 结果
如果指定参数的值正确,则convert_vector_to_tuple返回2(H_MSG_TRUE)。 否则会引发异常并返回错误代码。
HDevelop例程
vector_variables.hdev Use vector variables pipeline_multiple_threads_per_stage.hdev Show how to implement a pipeline with multiple threads per stage message_queue_producer_consumer.hdev Use a message queue to exchange data between threads running in parallel (producer consumer)程序示例
07. 附录
7.1 机器视觉博客汇总
网址:转载地址:https://dengjin.blog.csdn.net/article/details/117933902 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!