Openmvg: SfM: main_ComputeMatches with anything but -g e (f or h) results in Invalid matches file

Created on 6 Oct 2015  路  2Comments  路  Source: openMVG/openMVG

When using a different setting for -g with "openMVG_main_ComputeMatches" (f or h), results in error: "Invalid matches file"

Code:
pMatches = subprocess.Popen( [os.path.join(OPENMVG_SFM_BIN, "openMVG_main_ComputeMatches"), "-i", matches_dir+"/sfm_data.json", "-o", matches_dir, "-r", "0.8", "-g", "f"] )
pMatches.wait()

enhancement

Most helpful comment

It because you modify the python script that are made to run a specific toolchain.

-g f (fundamental matrix filtering) => matches.f.txt => Sequential/Incremental SfM
-g e (essential matrix filtering) => matches.e.txt => GlobalSfM
-g h (homography filtering) => matches.h.txt

As you see each SfM pipeline expects a specific matches.X.txt file.
If you want try the one from matches.f.txt in GlobalSfM, rename it to matches.e.txt and everything will run fine.

All 2 comments

It because you modify the python script that are made to run a specific toolchain.

-g f (fundamental matrix filtering) => matches.f.txt => Sequential/Incremental SfM
-g e (essential matrix filtering) => matches.e.txt => GlobalSfM
-g h (homography filtering) => matches.h.txt

As you see each SfM pipeline expects a specific matches.X.txt file.
If you want try the one from matches.f.txt in GlobalSfM, rename it to matches.e.txt and everything will run fine.

thanks for the help!

Was this page helpful?
0 / 5 - 0 ratings