victorprad / InfiniTAM

A Framework for the Volumetric Integration of Depth Images
http://www.infinitam.org
Other
930 stars 351 forks source link

what's the meaning of LocalMapId ? #101

Open 627633854 opened 6 years ago

627633854 commented 6 years ago

try to output the model which be labeled(spaint).(not good at this =_=) when i follow the (spaint\apps\spaintgui\Application.cpp .751) m_meshingEngine->MeshScene(mesh.get(), scene.get()), i find the (InfiniTAM\ITMLib\Engines\Meshing\CPU\ITMMultiMeshingEngine_CPU.tpp .20) int localMapId = 0; localMapId < numLocalMaps; ++localMapId, want to know it's meaning and numLocalMaps . Thanks a lot.

sgolodetz commented 6 years ago

Hmm, interesting. Which branch are you on? In Application.cpp, m_meshingEngine is initialised in the original code to point to an ITMMeshingEngine, not an ITMMultiMeshingEngine:

m_meshingEngine.reset(ITMMeshingEngineFactory::MakeMeshingEngine<SpaintVoxel,ITMVoxelBlockHash>(settings->deviceType));

(See also the implementation of ITMMeshingEngineFactory.)

Did you change it to point to an ITMMultiMeshingEngine? That's the meshing engine for Olaf's loop closure pipeline, which builds lots of local maps and optimises the relative poses between them to form a global map.

sgolodetz commented 6 years ago

Is your Intellisense broken by any chance? It might have jumped to the wrong function.

627633854 commented 6 years ago

sorry to reply late .>_<|||....hmm, i use the ITMMeshingEngine this time . But i don't konw how the label which in the SpaintVoxel be transmited to the meshsence which in the ITMLIb. need some help!

sgolodetz commented 6 years ago

@627633854 Tommaso just made some changes to ITMMeshingEngine (see https://github.com/victorprad/InfiniTAM/commit/cf41db75396c2bac1ba6fe8e565c0605dee63cf7) which colour the vertices using VoxelColorReader. As such, you might be able to achieve what you need by specialising that for SpaintVoxel.