Borrar filtros
Borrar filtros

How can I convert a file format FIG to PCD?

5 visualizaciones (últimos 30 días)
Motoki Hatsuda
Motoki Hatsuda el 1 de Ag. de 2022
Comentada: Motoki Hatsuda el 19 de Ag. de 2022
I'm new to matlab. I did the following to edit point cloud data.
After editing, the data is saved as a FIG file, how can I convert it to a PCD file?

Respuesta aceptada

Benjamin Thompson
Benjamin Thompson el 1 de Ag. de 2022
There is a function called pcwrite. The MATLAB documentation has a good article on it.
  14 comentarios
Walter Roberson
Walter Roberson el 9 de Ag. de 2022
There are 1832 points in one point cloud.
You might want to change the colormap to highlight more of the points. There are a lot of dark blue points in the front right.
Motoki Hatsuda
Motoki Hatsuda el 19 de Ag. de 2022
OH, I see.
fig = openfig('NameOfFig.fig'); outnamebase = "pcout_"; pcviewers = findobj(fig, 'tag', 'pcviewer'); for K = 1 : length(pcviewers) x = pcviewers(K).XData; y = pcviewers(K).YData; z = pcviewers(K).ZData; C = pcviewers(K).CData; xyz = [x(:),y(:),z(:)]; if size(C,2) == 1 ptc = pointCloud(xyz, 'Intensity', C); else ptc = pointCloud(xyz, 'Color', C); end outname = outnamebase + K + ".pcd"; pcwrite(ptc, outname); end
↑ I would like to know more about what each line of this code does.

Iniciar sesión para comentar.

Más respuestas (0)


Más información sobre Point Cloud Processing en Help Center y File Exchange.





Community Treasure Hunt

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

Start Hunting!

Translated by