Measure Longest Line Segment

Function

This Step is used to locate and measure the longest line segment in the ROI.

Hint

Before using this Step, please refer to Getting Started with Measurement Mode to learn about basics of Measurement Mode.

Sample Application

../../../../../_images/sample_application10.png

Connect Read Images V2 with Measure Longest Line Segment to locate the longest line segment in the ROI and measure its length (in pixels in this sample application).

Connect Steps

Click on Measure Longest Line Segment, go to the Step Input Source Selection panel, and then select Read Images V2_1_Color Image as Input 1 (Color Image).

Configure parameters and read the result

Note

Please prepare color image(s) that contain object(s) to be measured in advance.

  • Configure in Read Images V2

    Click on the Step, and configure the Image Source, Image File/Folder Path, and other parameters in the Step Parameters panel. After completeing the configuration, click on Run to run the project.

  • Configure in Measure Longest Line Segment

    Click on the Step, and select an ROI in the sketchpad area.

    ../../../../../_images/longest_segment.png
  • The measurement result will be displayed in Measurement Output and Result View panel. You can also set the LSL (lower specification limit) and USL (upper specification limit) to check whether the measurement conforms to the specification.