Convert Pixel Length to Real-World Distance

You are currently viewing the documentation for a pre-release version (2.2.0). To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

■ If you're unsure about the version of the product you are using, please contact Mech-Mind Technical Support for assistance.

Function

This Step is used to convert the measured pixel length in an image into its corresponding real-world distance.

Usage Scenario

This Step is applied to measure the size of relatively flat objects from 2D images.

Input and Output

Input

Input ports Data type Description

Pixel Length

Number[]

The pixel length measured from the image.

Output

Output ports Data type Description

Real-World Distance

Number[]

The converted real-world distance.

Parameter Description

Parameter Description

Port Count

Parameter description: This parameter specifies the number of input and output port pairs. Increasing the number of ports allows multiple pixel lengths to be processed, with each converted to a corresponding real-world distance output.
Default value: 1

Conversion Parameter Source

Parameter description: This parameter selects the source of the conversion parameters used to convert pixel length to real-world distance.

Value list

  • From user input: Manually set the Conversion Scale.

  • From Step: Obtain the conversion parameters from a Step. Please ensure that the Enable Calibration parameter is enabled in the 2D Smart Camera Step parameters and a valid calibration parameter group has been selected.

Conversion Scale

Parameter description: The scale for converting pixel length to real-world distance. This parameter needs to be set when Conversion Parameter Source is set to From user input.
Default value: 1.0000

Step Name

Parameter description: This parameter selects the Step used as the source of the conversion parameters. This parameter needs to be set when Conversion Parameter Source is set to From Step.

Corrective Compensation

Parameter description: A compensation value applied to the conversion result to offset measurement errors.
Default value: 0.0000

Is this page helpful?

You can give a feedback in any of the following ways:

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.