主要内容

Edit Point Cloud

R2026b

Edit tab of the Point Cloud Analyzer app

To edit point cloud data, from the Point Cloud Analyzer app toolstrip, select Edit tab. You can use the built-in edit algorithms or create a custom algorithm.

Built-in Edit Algorithms

You can use these built-in algorithms, from the Algorithm section, to process your point cloud data.

The app removes noise from a 3-D point cloud by using the pcdenoise function.

The app downsamples a 3-D point cloud by using the pcdownsample function.

Crop a 3-D point cloud using cuboids. You can interactively adjust the cuboid limits, or specify them using the Cuboid Limits option. Select a Crop Method to specify whether to crop inside or outside the cuboid. Then, click Apply.

The app segments the ground plane from 3-D point cloud data. You can select from these algorithms:

  • SMRF (default) — Segment the ground plane using the segmentGroundSMRF function.

  • Plane Fitting — Fit and filter ground plane using the pcfitplane function.

The app applies a median filter on a 3-D point cloud by using the pcmedian function.

Custom Edit Algorithms

You can create a new custom edit algorithm, or import an existing one into the app.

Follow these steps to create and apply a custom algorithm to your data.

  1. Click on Create Algorithm. The app opens a new MATLAB® function in the MATLAB editor. The default name of the function is myAlgorithm.

  2. The myAlgorithm function contains a sample code to edit the input point cloud. Replace the sample code with the code for your custom algorithm.

  3. Rename the function if required, and then save the function as a MATLAB code file with .m extension.

  4. To import the custom algorithm into the app, click on Import Algorithm. Then, browse to and select the file that contains the algorithm you want to import.

  5. After you import the algorithm, the app adds it to the list of algorithms in the Algorithm section.

  6. To apply a custom algorithm to the input point cloud, select the desired custom algorithm from the Algorithm section. If the input point cloud contains multiple frames, the app opens the Confirm dialog. Select Yes to confirm that you want to apply the custom algorithm to all frames. Otherwise select, No.

Apply Edits

When you select a built-in edit algorithm, the app updates the point cloud using that algorithm and saves the edited point cloud as FileName_Edit in the Data Browser pane, where FileName is the name of the original point cloud. The Applied Algorithms pane lists applied algorithms and shows the tunable parameters for the selected algorithm. To restore default parameter values, click Reset. You can reorder or delete the listed applied algorithms.

Applied Algorithms pane

To view the processed output, toggle the View Output button on. To view the final output after applying all the algorithms, select View Output > Final. To view the output up to only the selected algorithm, select View Output > Intermediate. To view the original point cloud, toggle the View Output button off.

If the input point cloud contains multiple frames, you can choose to process only the current frame or all frames. To process all frames, toggle the Apply to All Frames button on. The app updates all frames to match the edits on the current frame. To process only the current frame, toggle the Apply to All Frames button off.

To export all applied edits as a MATLAB function, select Generate Function.

Tip

Use the Color and Camera options for better visualization while tuning the parameters. For more information, see Visualize Point Cloud Using Color and Camera Views.

See Also

Apps

Functions

Objects

See Also

Topics