You're reading the documentation for a development version. For the latest released version, please have a look at master.

Metrology Node

Overview

The Metrology node is used to define, detect or calculate features such as edge, circle, and point on a gray image.
It can also calculate value information such as length of a segment and radius of a circle or arc.
../../_images/metrology_overview_1.png ../../_images/metrology_overview_2.png

Inputs and Outputs

Input

Type

Description

Image

png

The image to be measured (Camera, Reader etc.).

Timeout

Double

The maximum measurement and validation time for calculating in milliseconds.

Use Reference Frame

String

The name of the mod finder node to use the reference frame from.

Show Interactive Display

Bool

Whether Interactive Display is being used.

Output

Type

Description

allTolerancesPassed

bool

Whether all tolerances are passed.

numFailedTolerances

int

The number of tolerances that are failed.

numWarningTolerances

int

The number of tolerances that are in warning.

toleranceResult

SMetrologyResult

The metrology results.

Node Settings

Data Source

../../_images/metrology_node_settings_data_source.png

  • Image:

    The image to be measured (From Camera, Reader etc.).

Metrology Settings

../../_images/metrology_node_settings_metrology_settings.png

  • Timeout (Default: Disable):

    The maximum measurement and validation time for calculating in milliseconds.

  • Use Reference Fixture (Default: False):

    Check this box to use reference fixture (e.g. from Mod Finder). Please refer to Reference Fixture System for more information.

  • Show Interactive Display (Default: False):

    Check this box to edit features on images.


Features

../../_images/metrology_node_settings_features.png

There are three types of features: Parametric, Measured, Constructed.
After a feature is defined, the feature (or region for measurement features) will appear in the interactive display at position (0,0).
You can drag it to the proper position or change its position by typing in the values.
  • Parametric Feature:
    • Define fixture in absolute position by drawing in the image.

    • Parametric features are displayed in green colour.

    • Available parametric features: Local Frame, Arc, Line, Segment, Edgel, Point, Circle.

../../_images/metrology_node_settings_parametric_features.png

  • Measured Feature:
    • Define a feature by finding it from the search region (relatively fixed with global frame), which is defined by the user.

    • Region setting: decides the blue search region of the feature (one of Ring/Ring Sector/Rectangle/Segment/Arc).

      • The arrow indicates the detection direction of the search region.

      • For Ring and Ring Sector region, the arrow’s direction indicates the Start Radius and End Radius. (Tail: Start Radius; Head: End Radius)

      • Red = detected geometry; Blue = search region.

    • Available measured features: Segment, Edgel, Arc, Circle, Point.

Measured Feature Parameters

  • Threshold:
    • A high threshold only keeps edge with strong contrast. A low threshold will include fainter edges.

  • Smoothness:
    • Strength of the noise reduction filter when detecting edges.

    • Range [0.0 ~ 100.0]

  • Data Angle Tolerance:
    • Whether edges along a transition are considered is based on the angle (direction) of the transition compared to the scan direction of the search region.

    • This angle tolerance determines the range of accepted angle (direction).

  • Edge Selection Rank:
    • Setting rank “1” will fit the segment to the edges closest to the beginning of the search box.

    • Setting “Disable” will fit to all the edges found in the search-box.

../../_images/metrology_node_settings_measured_features.png

  • Constructed Feature:
    • Define fixture from other base features, such as define a mid_point from a segment, or define a circle base on 2 points.

    • The base features used can be a combination of Parametric, Measured, and Constructed features.

    • Available constructed features: Local Frame, Arc, Line, Segment, Edgel, Point, Circle.

../../_images/metrology_node_settings_constructed_features.png

Tolerances

../../_images/metrology_node_settings_tolerances.png

Tolerances’ labels will be displayed when “Show Interactive Display” is not checked.

  • Green: Passed

    pass_min > value > pass_max

  • Yellow: Warning

    warning_min > value > warning_max

  • Red: Failed

    value < warning_min OR value > warning_max

  1. Tolerance Type

    Pick a Tolearnce Type from the list.

  2. From Features

    Select a method to calculate the tolerance value.

  3. Select Features

    Select the Features to be used to calculate the tolerance. (Follow Step 2’s Feature Type)

Example:
  1. Angularity

  2. One Linear, One Edgel

  3. Select 1 ParametricLine & 1 Parametric Edgel

Procedure to Use

  1. We will need a few more nodes to demonstrate the Metrology node. Insert Reader, (2D) Mod Finder, Metrology.
    ../../_images/metrology_procedure_1_1.png

../../_images/metrology_procedure_1_2.png

  1. In Reader node, select the metrology node sample data folder. You can get the data here.
    ../../_images/metrology_procedure_2_1.png

../../_images/metrology_procedure_2_2.png

  1. In Mod Finder, link the Reader’s image output, define a model, and click “Define Ref Point” to define a reference point.
    ../../_images/metrology_procedure_3_1.png

../../_images/metrology_procedure_3_2.png

  1. In Metrology, link Reader’s image output. Then check “Use Reference Fixture” and “Show Interactive Display”. Select the Mod Finder node as the Reference Fixture Node.
    ../../_images/metrology_procedure_4_1.png

../../_images/metrology_procedure_4_2.png

../../_images/metrology_procedure_4_3.png

  1. Add a measured circle feature. The red circle with label is the circle found in the blue search region.
    ../../_images/metrology_procedure_5_1.png

../../_images/metrology_procedure_5_2.png

  1. Add a parametric point feature. Drag it on the image to change its location.
    ../../_images/metrology_procedure_6_1.png

../../_images/metrology_procedure_6_2.png

  1. Add a Distance Max tolerance. Change its name to “t_distMax” with the following settings. Uncheck the “Show Interactive Display”. The tolerance is shown in red (failed) in the image.
    ../../_images/metrology_procedure_7_1.png

../../_images/metrology_procedure_7_2.png

../../_images/metrology_procedure_7_3.png

  1. Check the t_distMax’s value from Quick Evaluate. Enter “t_distMax” as the tolerance_name and click “Re-Evaluate”.
    ../../_images/metrology_procedure_8_1.png

../../_images/metrology_procedure_8_2.png

../../_images/metrology_procedure_8_3.png

  1. Change t_distMax’s Min pass to 100, and Max pass value to 200. Since tolerance value is between 100 and 200, it is now passed (green).
    ../../_images/metrology_procedure_9_1.png

../../_images/metrology_procedure_9_2.png

../../_images/metrology_procedure_9_3.png

  1. Click “Run to Selected Step”. You should see that the features are moved relatively to the reference fixture and a new tolerance is calculated.
    ../../_images/metrology_procedure_10_1.png

../../_images/metrology_procedure_10_2.png

../../_images/metrology_procedure_10_3.png

Exercise

In steps, explain how to use the Metrology node that check if a hook’s circle’s Y position is less than 200.
















Answers for Exercise

  1. Insert a Reader node and Metrology node. Link a hook image in Reader, and in Metrology link the image input to Reader’s image output. (Refer to Procedure to Use section for detailed steps)
    ../../_images/metrology_exercise_add_nodes.png

  1. Add a parametric local frame at the position (0,0).
    ../../_images/metrology_exercise_add_local_frame.png

  1. Add a measured circle.
    ../../_images/metrology_exercise_add_circle.png

  1. Add a tolerance (“t1”) with the Position Y Tolerance Type.
    ../../_images/metrology_exercise_add_tolerance.png

  1. Change t1’s max pass to 200.
    ../../_images/metrology_exercise_edit_tolerance.png

  1. Disable “Show Interactive Display” and run the node. The tolerance is failed.
    ../../_images/metrology_exercise_fail_tolerance.png

  1. Evaluate the tolerance value from Quick Evaluate. 334.48 > 200, hence it fails the tolerance.
    ../../_images/metrology_exercise_evaluate_tolerance.png