get_found_component_model

在Halcon中,get_found_component_model是一个用于获取基于组件的形状模型匹配结果的算子。该算子用于提取从find_component_modelfind_scaled_shape_models等操作中获取到的匹配结果的详细信息。

以下是get_found_component_model算子的参数解释:

get_found_component_model (
  FoundComponents: tuple,           // 输入参数,表示匹配结果的元组
  ComponentModelID: int,            // 输入参数,表示之前创建的组件模型的ID
  ModelStart: int,                  // 输入参数,表示匹配模型的起始点索引
  ModelEnd: int,                    // 输入参数,表示匹配模型的结束点索引
  RowComp: real,                    // 输入参数,表示匹配的中心行坐标
  ColumnComp: real,                 // 输入参数,表示匹配的中心列坐标
  AngleComp: real,                  // 输入参数,表示匹配的角度
  ScoreComp: real,                  // 输入参数,表示匹配的得分
  ModelComp: int,                   // 输入参数,表示匹配模型的索引
  Match: int,                       // 输入参数,表示匹配的索引号
  AdditionalResult: string,         // 输入参数,表示是否返回额外结果信息(例如:"true"或"false")
  RowCompInst: real,                // 输出参数,表示匹配实例的中心行坐标
  ColumnCompInst: real,             // 输出参数,表示匹配实例的中心列坐标
  AngleCompInst: real,              // 输出参数,表示匹配实例的角度
  ScoreCompInst: real               // 输出参数,表示匹配实例的得分
)

通过使用get_found_component_model算子,你可以从匹配结果中获取匹配实例的详细信息,包括实例的中心位置、角度、得分等。

希望以上回答对你有所帮助。如果你有其他问题,请随时询问。

猜你喜欢

转载自blog.csdn.net/xiaogongzhu001/article/details/131899153
今日推荐