Align Point Cloud to Image Shape

Description

This operator is used to reorganize an organized point cloud data structure from a 1D list (or arbitrary shape) into a 2D grid shape that is completely consistent with the input image dimensions (height x width).

It does not change the coordinate or normal information of each point in the point cloud, but only changes its arrangement in the data array.

Overview

Aligns point cloud shape with image shape, outputting a point cloud with consistent dimensions and structure as the image.

Scenarios

As a data preprocessing step, it adapts the input format with image shape required by certain operators, making the point cloud data have the same dimensions and structure as the corresponding image.

Inputs and Outputs

Inputs

Image: The input image. Its height and width are used as the target dimensions for reshaping the point cloud.

Point Cloud: The input organized point cloud whose shape will be reshaped to match the height and width of the input image.

Outputs

Output Point Cloud: The point cloud data structure is "height x width x number of channels", where the height and width are the same as the input image.