Hello!
I'm an engineer working for 3D vision.I'm very interested in CloudCompare for its powerful function.But now I have a question with it,I want to use only the RegistrationTools to compare two cloud points,can I only use CC_CORE_LIBd.lib to build my application?
I have all ready built the all CloudCompare,and all the lib have been built.How can I use it with my own application?I haven't got the document for how to use the lib to compare two cloud points.such as the other 3D vision library has its own examples.
Thanks!
How to Use CC_CORE_LIBd.lib
Re: How to Use CC_CORE_LIBd.lib
Well, it's clear that very few people has done that before. But I know at least one project which uses CC_Core_Lib like that.
You can first take a look at the code documentation: http://www.cloudcompare.org/doc/CCLib/h ... tated.html. It's not up-to-date, but CC_Core_Lib doesn't change a lot so it should be ok (if you need it to be up-to-date you can run doxygen anytime on the trunk version - simply use the script file 'CC/doc/CCLib_doxygen_file').
Then, you should definitely look at how CloudCompare uses CC_Core_Lib (look at 'ccRegistrationTools.cpp' first).
Eventually, the most important point to understand that CC_Core-Lib is an algorithm only library. It doesn't provide many implementations of 3D entities (clouds, meshes, etc.) and rely on interfaces (GenericCloud, etc.). This lets you use your own point cloud implementation (you simply have to inherit from the corresponding CC_Core_Lib interface - GenericIndexedCloudPersist in the case of ICP registration). But if you don't have a specific cloud class, you can use the basic ChunkedPointCloud class of CC_Core_Lib. You can also use the more advanced ccPointCloud class of QCC_DB_LIB library.
Don't hesitate to ask more questions!
You can first take a look at the code documentation: http://www.cloudcompare.org/doc/CCLib/h ... tated.html. It's not up-to-date, but CC_Core_Lib doesn't change a lot so it should be ok (if you need it to be up-to-date you can run doxygen anytime on the trunk version - simply use the script file 'CC/doc/CCLib_doxygen_file').
Then, you should definitely look at how CloudCompare uses CC_Core_Lib (look at 'ccRegistrationTools.cpp' first).
Eventually, the most important point to understand that CC_Core-Lib is an algorithm only library. It doesn't provide many implementations of 3D entities (clouds, meshes, etc.) and rely on interfaces (GenericCloud, etc.). This lets you use your own point cloud implementation (you simply have to inherit from the corresponding CC_Core_Lib interface - GenericIndexedCloudPersist in the case of ICP registration). But if you don't have a specific cloud class, you can use the basic ChunkedPointCloud class of CC_Core_Lib. You can also use the more advanced ccPointCloud class of QCC_DB_LIB library.
Don't hesitate to ask more questions!
Daniel, CloudCompare admin