Use “Track Line Editor”

In Mech-MSR, a track refers to the target of measurement, and the track line refers to the path that the track should follow. You can use the track line editor to set one or more track lines for a track.

Prerequisites

When the Measure Surface Track Step is used in a vision project, you can use the track line editor to create and adjust the track lines.

In the parameter configuration panel of this Step, click the Open the editor button under “Track Line Settings” to open the editor.

Before using the track line editor, make sure that there is valid surface data input in the “Measure Surface Track” Step; otherwise, subsequent operations cannot proceed.

Usage Workflow

one Create a Track Line File

  1. Navigate to the File list in the upper left corner of the editor and click + New to create a new file.

    create a file
  2. Enter the file name in the pop-up dialog box, and then click OK.

    file name

    At this point, the editor will automatically get the input from the Step, and the acquired image will be displayed in the center of the interface.

  3. (Optional) Navigate to the upper-right corner of the interface, click Get Step Input to update the image.

  4. (Optional) To the right of the image, drag the slider to set the depth range to highlight the key area of the image.

After selecting a file, you can perform the Rename, Create a Copy, Delete operations via the right-click menu.

two Draw a Track Line

Use the tools in the toolbar to draw and adjust track lines:

  • select tool: Select Tool, mainly used to select and adjust a track line.

  • track line drawing tool: Track Line Drawing Tool, for drawing track lines.

You can draw a track line by the following steps:

  1. Select the “Track Line Drawing Tool” track line drawing tool, and then move the cursor to the target track.

  2. Click the left mouse button to set the first vertex, and then move the cursor and continue clicking the left mouse button to add other vertices.

  3. Right-click to finish.

    first line
  • The drawn track line should be as close to the centerline of the actual track as possible and parallel to the actual track.

  • Repeat the above steps to draw multiple track lines.

Navigate to the lower left corner of the interface, and you can find the drawn track line(s) under “List of track lines.” Click ▶ to expand a track line to see all the segments of that track line. (A segment is formed between two adjacent vertices).

three Adjust a Track Line

After drawing a track line, you can perform operations such as move the line, add vertices, and delete vertices.

Detailed operational instructions are as follows:

Operation Description

Move a track line

  1. Click the “Select Tool,” and then hover the cursor over the track line.

  2. When the cursor becomes move track line, hold down the left mouse button and drag the mouse to move the track line.

Select a segment

You can select a segment in any of the following ways:

  • In the “List of track lines” area, select the desired segment.

  • In the drawing area, select the “Select Tool” and hover the cursor over the desired segment. After the cursor becomes select a segment, click the left mouse button to select the segment.

Add a vertex

  1. Click the “Select Tool” and hover the cursor over the target segment.

  2. Press and hold the Ctrl key, and the cursor becomes add vertex.

  3. Click the left mouse button to add a vertex.

Delete a vertex

  1. Click the “Select Tool.”

  2. Press and hold the Alt key, and then hover the cursor over the target vertex. At this time, the cursor becomes delete vertex.

  3. Click the left mouse button to delete the vertex.

four Parameter Settings

During track line drawing, you can see many “small boxes” evenly spaced along the track line. Each “small box” can be used to extract a section profile from the track.

After selecting a track line in the lower-left corner, you can set the relevant parameters on the far right side of the interface.

Section Profile Settings

Set the parameters related to section profiles to determine the profile span, the width for averaging profiles, and the profile spacing.

Parameter Description

Batch setting

After the batch setting is enabled, the configured parameters will be applied to the entire track line, and you are not allowed to set parameters for segments. It is enabled by default.

Disable Batch setting to set parameters for each segment.

Length

Length refers to the profile span, perpendicular to the track line. The unit is pixels (px).

The set length should be slightly greater than the track width (for example, 1.5 times the track width) to ensure the section profile includes some points on the surrounding surface of the track.

Width

Width refers to the number of pixels considered in the direction perpendicular to profiles. Each point on a profile is the average of the pixels in that column. The unit is pixels (px).

When the quality of the image data is high, you can set the Width to 1 to reduce the influence of averaging on the measurement results.

Spacing

The distance between adjacent profiles. The unit is pixels (px).

section profile settings

section profiles

Track line settings

Visual results of the “Measure Surface Track” Step

As shown in the figure above, you can use the track lines set in the track line editor and run the “Measure Surface Track” Step to obtain the section profile (light blue).

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.