mdaiter / openMVG

openMVG with a LATCH descriptor, an ORB descriptor, DEEP descriptors from the cvpr15compare repo, PNNet/Torch loader and a GPU-based L2 matcher integrated
Other
31 stars 20 forks source link

Fixed path resolution for deep network train files. #13

Closed donlk closed 8 years ago

donlk commented 8 years ago

So last time i came cross this i thought of a cmake definition based solution, requesting the absolute path from the user and propagating it into a temporary build file to be read from source at compile time. Its transparent and error prone to path changes. But since these binaries are part of the source tree a much simpler solution is to just use the preprocessor macro for the current compile directory. When you add dynamic retrieval for these train files though, you might consider the upper approach.