Surface matching detector.trainModel(pc) segmentation fault

asked 2016-03-09 09:48:07 -0600

Hello everyone, I have some problems in executing the surface matching example: if I run the algorithm with the input model file and scene file provided in the samples/data directory, then everything works fine. If I switch to an other model file, it crashes when executing the instruction


returning a Segmentation fault error. I have tried to execute the code with several other models, but the result is always the same. Also, I have checked the model files, and they contain the same information (almost same number of vertices, faces, no texture, etc.).

Does anyone have the same problem?

Regards Denis

edit retag flag offensive close merge delete


Have you found a solution yet? I'm getting a seg fault at detector.match(pcTest, results, 1.0/40.0, 0.05);

adamwtow gravatar imageadamwtow ( 2016-03-17 05:29:46 -0600 )edit

I've been able to get passed the segfaults above but am now getting one at the ICP step. Solution is to save the ply point clouds in ASCII format. In meshlab when saving, make sure to deselect save as Binary.

adamwtow gravatar imageadamwtow ( 2016-03-17 05:58:02 -0600 )edit