expand the ICP (Iterative Closest Point) code

1 view (last 30 days)
Hi. I would like to plot the 3D overlay graphs for this code: https://it.mathworks.com/matlabcentral/fileexchange/81273-simpleicp?s_tid=srchtitle
How can they be created?
Is it also possible to import own 3D images (.stl format)?
Thanks

Answers (1)

Vidip Jain
Vidip Jain on 27 Sep 2023
I understand you want to plot 3D overlay graphs for the SimpleICP code and want to know that is it possible to import 3D images of .stl format.
You can follow the following steps to plot 3D overlay graphs:
  1. Load the data: The SimpleICP code returns two-point clouds, source and target. These point clouds contain the 3D coordinates of the points in the source and target images, respectively.
  2. Create a figure: Create a new figure in MATLAB.
  3. Plot the source point cloud: Plot the source point cloud using the ‘plot3()’ function.
  4. Plot the target point cloud: Plot the target point cloud using the ‘plot3()’ function.
  5. Plot the overlay graph: To plot the overlay graph, simply plot both the source and target point clouds in the same figure by using ‘hold on’.
You can also import 3D images of .stl format into MATLAB and plot them using the ‘stlread()’.
For further information, refer to the documentation links below:

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!