json87 / SphereSfM

SfM for sphere images in the ERP format within the framework of ColMap
BSD 3-Clause "New" or "Revised" License
106 stars 15 forks source link

How to integrate with the exisiting colmap installation? #22

Open Qcatbot opened 1 month ago

Qcatbot commented 1 month ago

Hello, I have already installed colmap in my machine. How can I integrate this repo with it? so that I can use for spherical images? I did as follow; ./testSphereSfM git clone https://github.com/json87/spheresfm.git cd spheresfm mkdir build cd build cmake .. make

I built it without any problem, but I still can't use the "--ImageReader.camera_model SPHERE ".. Maybe this is a basic thing, but I am new to the software domain. Any help would be appreciated. Thanks.

Qcatbot commented 1 month ago

This is what I did, but no success! add the following things to my CMakeLists.txt in the colmap source folder

include_directories( lib src /path_to/SphereSfM/src /path_to/SphereSfM/lib ${COLMAP_INCLUDE_DIRS} )

link_directories( ${COLMAP_LINK_DIRS} /path_to/SphereSfM/build/lib )

add_library(colmap INTERFACE) target_link_libraries(colmap INTERFACE ${COLMAP_EXPORT_LIBS} spheresfm)

cd ./colmap/build cmake .. make sudo make install

But still I dont see SPHERE in my colmap gui (step 2 mentioned in the repo) or in command line options.

json87 commented 1 month ago

You can just clone and build this repo for spheresfm.