Support Website Contact Support Blog

Point cloud color problem in Matlab

Hi Folks,

I encounter a problem when loading a point cloud (in ply format) into Matlab using the ‘pcread’ command. Because the return point cloud object cannot read the color points and therefore, they have no color to display in Matlab. 

After doing some research on this problem, I found that there is an unperfect solution on this problem in one of the posts on the Matlab Community:

"A friend of mine has just found a solution to this, which I will add in case anyone else encounters this problem.

If I open the .PLY file from Pix4D in notepad the colours are called e.g. " property uchar diffuse_red", which different to what pcread is expecting.

By changing the colour names to e.g. " property uchar red" and saving the .PLY file, pcread was able to read the point cloud with correct colours."


This solution works for a small point cloud that I have (~100mb). But when I want to open a much bigger point cloud (~1.5Gb), its size exceeded the maximum size can be read by the notepad and I can’t make the modification. Does anyone have any other solutions to this?


Thank you so much!



Can you please try one of the suggested text editors from here and let me know how it goes?