DLR-RM / 3DObjectTracking

Algorithms and Publications on 3D Object Tracking
MIT License
637 stars 122 forks source link

Question about parameters #5

Closed lmuffang closed 3 years ago

lmuffang commented 3 years ago

Hello, Thank you for this amazing work! I am quite new to region-based tracking and I have some questions about the code.

I am trying your algorithm with a camera and in the run_on_camera_sequence.cpp I did not quite understood the difference between the body1_ptr and the body1_model_ptr.

The function Model::LoadModel tries to read several parameters form a .txt file (similar to the ones described in the readme.md for the body_ptr). The parameters read from this .txt file seem redundand form the ones set directly in run_on_camera_sequence.cpp when declaring the body1_ptr.

Edit: By the way, I also have a problem with the detection of contours, they are not any of them detected. This is a consequence of silhouette_image being all black pixels because the normal_image_ is also black. I can see my images in the viewer so the data seems to be properly fed.

lmuffang commented 3 years ago

My issue was with setting the geometry_unit_in_meterparameter to 1/1000 instead of 0.001f. All the vertices coordinates were equal to zero, thus no contours were detected when generating the model.

By fixing my issue and going trough the code, I think I pretty much understood the global concepts around the body1_ptr and body1_model_ptr variables. I would still apreciate any extra details about that, thanks!