Point Cloud Scale Transform With Normals

Description

This operator performs a uniform scale (zooming) transformation on the input point cloud data. It multiplies the X, Y, and Z coordinates of each point in the point cloud by a user-specified scale factor, thereby achieving magnification or reduction of the point cloud.

Overview

Scales point cloud coordinates according to a configured ratio.

Scenarios

  • Unit conversion: When the unit of point cloud data is inconsistent with the unit required by subsequent processing flows (e.g., converting from meters to millimeters, or vice versa), this operator can be used for conversion. For example, magnifying a point cloud in meters by 1000 times to obtain a point cloud in millimeters.

  • Thermal drift correction: When thermal drift occurs in some scenarios, point cloud correction can be performed using the dimensions obtained from the "Calibration Board Detection" or "Generate Pose from Sphere Fitting Results" nodes.

Inputs and Outputs

Inputs

Camera coordinate system point cloud: The point cloud data requiring scale transformation.

Ratio: Description

Specifies the scale factor for the point cloud. Each coordinate value (X, Y, Z) of the point cloud will be multiplied by this value.

Tuning Instructions

  • ratio > 1: Magnify the point cloud. For example, setting it to 1000 can convert units from meters to millimeters.

  • ratio = 1: The point cloud remains unchanged.

  • 0 < ratio < 1: Shrink the point cloud. For example, setting it to 0.001 can convert units from millimeters to meters.

  • ratio = 0: Changes all points to the origin (0, 0, 0), which usually has no practical significance.

Outputs

Camera coordinate system point cloud: The point cloud data after scale transformation.

Parameters

Enable Node

Description

Controls whether this operator performs the scale transformation operation.

Tuning Instructions

The switch is Enabled by default, and the operator performs the scaling function normally; if this switch is disabled, the operator performs no operation and passes the input point cloud directly through to the output port.

Parameter Range

Default: True

Ratio

Description

Specifies the scale factor for the point cloud. Each coordinate value (X, Y, Z) of the point cloud will be multiplied by this value.

Tuning Instructions

  • ratio > 1: Magnify the point cloud. For example, setting it to 1000 can convert units from meters to millimeters.

  • ratio = 1: The point cloud remains unchanged.

  • 0 < ratio < 1: Shrink the point cloud. For example, setting it to 0.001 can convert units from millimeters to meters.

  • ratio = 0: Changes all points to the origin (0, 0, 0), which usually has no practical significance.

  • Priority: If the input port "Ratio (ratio)" is connected to data, the operator will prioritize using the value from the input port and ignore the value set in this parameter. If the input port is not connected, a valid ratio value must be set in this parameter; otherwise, the operator will report an error.

Parameter Range

[0, 10], Default value is empty, please set according to actual needs.

Parameter Range

Values/Range: [0.0, 1000.0]

Default: 1