zoukankan      html  css  js  c++  java
  • halcon算子翻译——measure_projection

    名称

    measure_projection - 提取垂直于矩形或圆弧的灰度值分布。

    用法

    measure_projection(Image : : MeasureHandle : GrayValues)

    描述

      measure_projection提取垂直于矩形或环形弧的一维灰度值分布。 这是通过平均垂直于矩形或弧长轴的“切片”中的灰度值来完成的。 采样是在矩形中心的整数行和列距离(在矩形的坐标系中)的图像Image中的亚像素位置完成的。 由于这涉及到可以在多个投影中重复使用的一些计算,因此算子gen_measure_rectangle2初始化这些计算,从而显著提高了measure_projection的速度。 由于在灰度值的亚像素计算中存在精度和速度之间的折衷,所以在gen_measure_rectangle2中可以选择不同的插值方案(插值仅影响与图像轴不对齐的矩形)。 用gen_measure_rectangle2生成的measure对象在MeasureHandle中传递。

    注意

      应该记住,为了效率的原因,measure_projection 会忽略Image的ROI域。 如果图像中的特定区域应该从measurement中排除,则应该生成具有适当修改的参数的新measure对象。

    并行

    ●  多线程类型:可重入(与非独占算子并行运行)。

    ●  多线程范围:全局(可以从任何线程调用)。

    ●  不并行处理。

    参数

    Image (input_object) singlechannelimage → object (byte / uint2 / real)
      输入图像。
    MeasureHandle (input_control) measure_id → (integer)
      measure对象句柄。
    GrayValues (output_control) number-array → (real)
      灰度值分布。

    结果

    如果参数值正确,则算子measure_projection返回值2(H_MSG_TRUE)。 否则会引发异常。

    Possible Predecessors

    gen_measure_rectangle2

    Possible Successors

    close_measure

    Alternatives

    gray_projections

    模块

    1D Metrology

    HDevelop例程

    measure_caliper.hdev      测量卡尺的间距线之间的距离

    count_fish_sticks.hdev   鱼棒的完整性检查
    check_smd_tilt.hdev       检查SMD是否倾斜

  • 相关阅读:
    leetcode[9]Palindrome Number
    leetcode[10]Regular Expression Matching
    leetcode[11]Container With Most Water
    leetcode[12]Integer to Roman
    leetcode[13]Roman to Integer
    leetcode[14]Longest Common Prefix
    leetcode[15]3Sum
    leetcode[16]3Sum Closest
    leetcode[17]Letter Combinations of a Phone Number
    leetcode[18]4Sum
  • 原文地址:https://www.cnblogs.com/xhiong/p/measure_projection.html
Copyright © 2011-2022 走看看