Giter VIP home page Giter VIP logo

Comments (12)

royshil avatar royshil commented on June 10, 2024

Have you installed/built OpenCV with the GPU module?

There are some missing windows API, try to add

#include <windows.h>

It also seems you are missing an include from the SSBA library, did you download and build it?
http://www.inf.ethz.ch/personal/chzach/opensource.html

from code.

orgicus avatar orgicus commented on June 10, 2024

Initially I've used the prebuilt library downloaded from opencv.org. It has the opencv_gpu lib and dll files but I don't know what build settings were used. I've just finished compiling from and made sure the BUILD_opencv_gpu cmake flag was enabled. CUDA however was not installed on the system. I'm in the process of downloading/installing that. Can the GPU module run without it ?

I'll try #include <windows.h> and see how it goes. Also I did not have SSBA setup. I'll do that now and report with either a confirmation or more questions later :)

from code.

orgicus avatar orgicus commented on June 10, 2024

Quick update, I'm one step closer: I've found SURF_GPU in opencv2/nonfree/gpu.hpp so used that header instead of opencv2/gpu/gpu.hpp. Now I'm getting this:

2>------ Build started: Project: ExploringSfMLibrary, Configuration: Debug x64 ------
2>Build started 02/08/2013 21:30:12.
2>InitializeBuildStatus:
2>  Touching "ExploringSfMLibrary.dir\Debug\ExploringSfMLibrary.unsuccessfulbuild".
2>CustomBuild:
2>  All outputs are up-to-date.
2>ClCompile:
2>  Common.cpp
2>..\Common.cpp(166): error C2065: 'HANDLE' : undeclared identifier
2>..\Common.cpp(166): error C2146: syntax error : missing ';' before identifier 'hFind'
2>..\Common.cpp(166): error C2065: 'hFind' : undeclared identifier
2>..\Common.cpp(166): error C2065: 'INVALID_HANDLE_VALUE' : undeclared identifier
2>..\Common.cpp(167): error C2065: 'WIN32_FIND_DATA' : undeclared identifier
2>..\Common.cpp(167): error C2146: syntax error : missing ';' before identifier 'fdata'
2>..\Common.cpp(167): error C2065: 'fdata' : undeclared identifier
2>..\Common.cpp(173): error C2065: 'hFind' : undeclared identifier
2>..\Common.cpp(173): error C2065: 'fdata' : undeclared identifier
2>..\Common.cpp(173): error C3861: 'FindFirstFile': identifier not found
2>..\Common.cpp(174): error C2065: 'hFind' : undeclared identifier
2>..\Common.cpp(174): error C2065: 'INVALID_HANDLE_VALUE' : undeclared identifier
2>..\Common.cpp(178): error C2065: 'fdata' : undeclared identifier
2>..\Common.cpp(178): error C2228: left of '.cFileName' must have class/struct/union
2>          type is ''unknown-type''
2>..\Common.cpp(179): error C2065: 'fdata' : undeclared identifier
2>..\Common.cpp(179): error C2228: left of '.cFileName' must have class/struct/union
2>          type is ''unknown-type''
2>..\Common.cpp(181): error C2065: 'fdata' : undeclared identifier
2>..\Common.cpp(181): error C2228: left of '.dwFileAttributes' must have class/struct/union
2>          type is ''unknown-type''
2>..\Common.cpp(181): error C2065: 'FILE_ATTRIBUTE_DIRECTORY' : undeclared identifier
2>..\Common.cpp(187): error C2065: 'fdata' : undeclared identifier
2>..\Common.cpp(187): error C2228: left of '.cFileName' must have class/struct/union
2>          type is ''unknown-type''
2>..\Common.cpp(191): error C2065: 'hFind' : undeclared identifier
2>..\Common.cpp(191): error C2065: 'fdata' : undeclared identifier
2>..\Common.cpp(191): error C3861: 'FindNextFile': identifier not found
2>..\Common.cpp(197): error C2065: 'ERROR_NO_MORE_FILES' : undeclared identifier
2>..\Common.cpp(197): error C3861: 'GetLastError': identifier not found
2>..\Common.cpp(199): error C2065: 'hFind' : undeclared identifier
2>..\Common.cpp(199): error C3861: 'FindClose': identifier not found
2>..\Common.cpp(200): error C3861: 'GetLastError': identifier not found
2>..\Common.cpp(204): error C2065: 'hFind' : undeclared identifier
2>..\Common.cpp(204): error C3861: 'FindClose': identifier not found
2>..\Common.cpp(205): error C2065: 'hFind' : undeclared identifier
2>..\Common.cpp(205): error C2065: 'INVALID_HANDLE_VALUE' : undeclared identifier
2>  BundleAdjuster.cpp
2>..\BundleAdjuster.cpp(17): fatal error C1083: Cannot open include file: 'Math/v3d_linear.h': No such file or directory
2>  Generating Code...
2>
2>Build FAILED.
2>
2>Time Elapsed 00:00:01.50
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I'm guessing it's SSBA library, which I haven't managed to compile yet.
On that one I'm stuck again:

1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1>Build started 02/08/2013 21:42:40.
1>InitializeBuildStatus:
1>  Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>CustomBuild:
1>  Checking Build System
1>  CMake does not need to re-run because C:/Users/HM/Downloads/SSBA-3.0/Build/CMakeFiles/generate.stamp is up-to-date.
1>  CMake does not need to re-run because C:/Users/HM/Downloads/SSBA-3.0/Build/Apps/CMakeFiles/generate.stamp is up-to-date.
1>FinalizeBuildStatus:
1>  Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild".
1>  Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.10
2>------ Build started: Project: V3D, Configuration: Debug x64 ------
2>Build started 02/08/2013 21:42:40.
2>InitializeBuildStatus:
2>  Touching "V3D.dir\Debug\V3D.unsuccessfulbuild".
2>CustomBuild:
2>  Building Custom Rule C:/Users/HM/Downloads/SSBA-3.0/CMakeLists.txt
2>  CMake does not need to re-run because C:\Users\HM\Downloads\SSBA-3.0\Build\CMakeFiles\generate.stamp is up-to-date.
2>ClCompile:
2>  v3d_nonlinlsq.cpp
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(204): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(212): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(587): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(594): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(607): warning C4267: '+=' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(639): warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_mathutilities.h(423): error C3861: 'isinf': identifier not found
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_optimization.h(300): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_optimization.h(537): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_nonlinlsq.h(71): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_nonlinlsq.h(97): warning C4018: '<' : signed/unsigned mismatch
2>..\Math\v3d_nonlinlsq.cpp(6): fatal error C1083: Cannot open include file: 'colamd.h': No such file or directory
2>  v3d_optimization.cpp
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(204): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(212): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(587): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(594): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(607): warning C4267: '+=' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(639): warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_mathutilities.h(423): error C3861: 'isinf': identifier not found
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_optimization.h(300): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_optimization.h(537): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>..\Math\v3d_optimization.cpp(5): fatal error C1083: Cannot open include file: 'colamd.h': No such file or directory
2>  v3d_optimization_lm.cpp
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(204): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(212): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(587): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(594): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(607): warning C4267: '+=' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(639): warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_mathutilities.h(423): error C3861: 'isinf': identifier not found
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_optimization.h(300): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_optimization.h(537): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>..\Math\v3d_optimization_lm.cpp(5): fatal error C1083: Cannot open include file: 'colamd.h': No such file or directory
2>  v3d_metricbundle.cpp
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(204): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(212): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(587): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(594): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(607): warning C4267: '+=' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(639): warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_mathutilities.h(423): error C3861: 'isinf': identifier not found
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_optimization.h(300): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_optimization.h(537): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(33): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(33): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(331): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(332): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(362): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(363): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(394): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(395): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(418): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(419): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>  v3d_stereobundle.cpp
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(204): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(212): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(587): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(594): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(607): warning C4267: '+=' : conversion from 'size_t' to 'unsigned int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(639): warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_mathutilities.h(423): error C3861: 'isinf': identifier not found
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_optimization.h(300): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_optimization.h(537): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_stereobundle.h(43): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
2>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_stereobundle.h(43): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
2>  Generating Code...
2>
2>Build FAILED.
2>
2>Time Elapsed 00:00:02.42
3>------ Build started: Project: bundle_common, Configuration: Debug x64 ------
4>------ Build started: Project: bundle_varying, Configuration: Debug x64 ------
5>------ Build started: Project: bundle_varying_nonlinlsq, Configuration: Debug x64 ------
3>Build started 02/08/2013 21:42:42.
4>Build started 02/08/2013 21:42:42.
5>Build started 02/08/2013 21:42:42.
3>InitializeBuildStatus:
3>  Touching "bundle_common.dir\Debug\bundle_common.unsuccessfulbuild".
3>CustomBuild:
3>  Building Custom Rule C:/Users/HM/Downloads/SSBA-3.0/Apps/CMakeLists.txt
3>  CMake does not need to re-run because C:\Users\HM\Downloads\SSBA-3.0\Build\Apps\CMakeFiles\generate.stamp is up-to-date.
4>InitializeBuildStatus:
4>  Touching "bundle_varying.dir\Debug\bundle_varying.unsuccessfulbuild".
4>CustomBuild:
4>  Building Custom Rule C:/Users/HM/Downloads/SSBA-3.0/Apps/CMakeLists.txt
5>InitializeBuildStatus:
5>  Touching "bundle_varying_nonlinlsq.dir\Debug\bundle_varying_nonlinlsq.unsuccessfulbuild".
5>CustomBuild:
5>  Building Custom Rule C:/Users/HM/Downloads/SSBA-3.0/Apps/CMakeLists.txt
4>  CMake does not need to re-run because C:\Users\HM\Downloads\SSBA-3.0\Build\Apps\CMakeFiles\generate.stamp is up-to-date.
3>ClCompile:
3>  bundle_common.cpp
5>  CMake does not need to re-run because C:\Users\HM\Downloads\SSBA-3.0\Build\Apps\CMakeFiles\generate.stamp is up-to-date.
4>ClCompile:
4>  bundle_varying.cpp
5>ClCompile:
5>  bundle_varying_nonlinlsq.cpp
3>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(204): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
3>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(212): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
3>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(587): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
3>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(594): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
3>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(607): warning C4267: '+=' : conversion from 'size_t' to 'unsigned int', possible loss of data
3>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(639): warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(204): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(212): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(587): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(594): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(607): warning C4267: '+=' : conversion from 'size_t' to 'unsigned int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(204): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(212): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(639): warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(587): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(594): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(607): warning C4267: '+=' : conversion from 'size_t' to 'unsigned int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Base/v3d_serialization.h(639): warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss of data
3>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_mathutilities.h(423): error C3861: 'isinf': identifier not found
3>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_optimization.h(300): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
3>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_optimization.h(537): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_mathutilities.h(423): error C3861: 'isinf': identifier not found
3>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(33): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
3>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(33): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
3>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(331): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
3>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(332): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_mathutilities.h(423): error C3861: 'isinf': identifier not found
3>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(362): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
3>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(363): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
3>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(394): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
3>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(395): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
3>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(418): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
3>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(419): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
3>..\..\Apps\bundle_common.cpp(26): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_optimization.h(300): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_optimization.h(300): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_optimization.h(537): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
3>..\..\Apps\bundle_common.cpp(173): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_optimization.h(537): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_nonlinlsq.h(71): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Math/v3d_nonlinlsq.h(97): warning C4018: '<' : signed/unsigned mismatch
4>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(33): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_mviewutilities.h(140): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(33): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(331): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(332): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(362): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(363): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_mviewutilities.h(153): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_mviewutilities.h(307): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
3>..\..\Apps\bundle_common.cpp(240): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
3>..\..\Apps\bundle_common.cpp(255): warning C4244: 'initializing' : conversion from 'double' to 'const float', possible loss of data
3>..\..\Apps\bundle_common.cpp(256): warning C4244: 'initializing' : conversion from 'double' to 'const float', possible loss of data
3>..\..\Apps\bundle_common.cpp(259): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
3>..\..\Apps\bundle_common.cpp(259): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(394): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(395): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(418): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
4>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(419): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
4>..\..\Apps\bundle_varying.cpp(25): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_mviewutilities.h(346): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_mviewutilities.h(359): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(33): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
4>..\..\Apps\bundle_varying.cpp(179): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(33): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(331): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(332): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(362): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(363): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
3>
3>Build FAILED.
3>
3>Time Elapsed 00:00:01.02
5>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(394): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(395): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(418): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
5>C:\Users\HM\Downloads\SSBA-3.0\Geometry/v3d_metricbundle.h(419): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
5>..\..\Apps\bundle_varying_nonlinlsq.cpp(340): warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data
5>..\..\Apps\bundle_varying_nonlinlsq.cpp(489): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
5>..\..\Apps\bundle_varying_nonlinlsq.cpp(505): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
5>..\..\Apps\bundle_varying_nonlinlsq.cpp(506): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
5>..\..\Apps\bundle_varying_nonlinlsq.cpp(512): warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data
5>..\..\Apps\bundle_varying_nonlinlsq.cpp(513): warning C4018: '<' : signed/unsigned mismatch
5>..\..\Apps\bundle_varying_nonlinlsq.cpp(569): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
4>
4>Build FAILED.
4>
4>Time Elapsed 00:00:01.02
5>
5>Build FAILED.
5>
5>Time Elapsed 00:00:01.05
6>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------
6>Build started 02/08/2013 21:42:43.
6>InitializeBuildStatus:
6>  Creating "x64\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild" because "AlwaysCreate" was specified.
6>CustomBuild:
6>  Build all projects
6>FinalizeBuildStatus:
6>  Deleting file "x64\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild".
6>  Touching "x64\Debug\ALL_BUILD\ALL_BUILD.lastbuildstate".
6>
6>Build succeeded.
6>
6>Time Elapsed 00:00:00.09
========== Build: 2 succeeded, 4 failed, 0 up-to-date, 0 skipped ==========

I'm stuck at error C3861: 'isinf': identifier not found.
There was an isnan error before got resolved using this:

#ifndef isnan #define isnan(x) ((x)!=(x)) #endif

from here(http://stackoverflow.com/questions/7859105/infinity-and-nan-values)

from code.

royshil avatar royshil commented on June 10, 2024

try to solve first the problem of missing WIN32 includes, try to add to common.cpp

#include <windows.h>

isinf can be defined as well, have a look at stackoverflow
http://stackoverflow.com/questions/2249110/how-do-i-make-a-portable-isnan-isinf-function

from code.

orgicus avatar orgicus commented on June 10, 2024

Thanks for this!
I'm getting closer. The isnnan/isinf problems are resolved. Since I'm compiling for x64, although it's hacky, for now I've commented this block:

/*
#else
//open a directory the WIN32 way
    HANDLE hFind = INVALID_HANDLE_VALUE;
    WIN32_FIND_DATA fdata;

    if(dir_name_[dir_name_.size()-1] == '\\' || dir_name_[dir_name_.size()-1] == '/') {
        dir_name_ = dir_name_.substr(0,dir_name_.size()-1);
    }

    hFind = FindFirstFile(string(dir_name_).append("\\*").c_str(), &fdata); 
    if (hFind != INVALID_HANDLE_VALUE)
    {
        do
        {
            if (strcmp(fdata.cFileName, ".") != 0 &&
                strcmp(fdata.cFileName, "..") != 0)
            {
                if (fdata.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
                {
                    continue; // a diretory
                }
                else
                {
                    files_.push_back(fdata.cFileName);
                }
            }
        }
        while (FindNextFile(hFind, &fdata) != 0);
    } else {
        cerr << "can't open directory\n";
        return;
    }

    if (GetLastError() != ERROR_NO_MORE_FILES)
    {
        FindClose(hFind);
        cerr << "some other error with opening directory: " << GetLastError() << endl;
        return;
    }

    FindClose(hFind);
    hFind = INVALID_HANDLE_VALUE;
*/

Now it looks like it's down to SSBA. On that side I'm compiling SuiteSparse, but need to compile it's dependencies first.

from code.

shervinemami avatar shervinemami commented on June 10, 2024

Just a comment about this:

Initially I've used the prebuilt library downloaded from opencv.org. It has the opencv_gpu lib and dll files
but I don't know what build settings were used. I've just finished compiling from and made sure the
BUILD_opencv_gpu cmake flag was enabled. CUDA however was not installed on the system. I'm in the
process of downloading/installing that. Can the GPU module run without it ?

Actually this is an easy source of confusion with the recent OpenCV. The prebuilt versions of OpenCV don't come with GPU support anymore (since it would make the library around 1GB download!), but they still come with opencv_gpu lib & DLL files that are just empty wrappers. So if you need GPU support for current versions of OpenCV, you now need to install the CUDA Toolkit then build OpenCV from scratch (rather than just download prebuilt version).

Also, it is possible you might need to add the opencv_nonfree lib to your project, but if you only care about the GPU version of SURF then it probably doesn't need opencv_nonfree module.

from code.

orgicus avatar orgicus commented on June 10, 2024

Thank you for explaining this. I've downloaded the CUDA Toolkit but haven't installed it yet. I got a warning saying that my graphics card isn't supported (I'm using a laptop with an Intel HD Graphics 4000 chip). I'll install anyway now and recompile OpenCV

from code.

shervinemami avatar shervinemami commented on June 10, 2024

You will need an NVIDIA GPU to run the GPU module, but if you just want to build the code with GPU support on your laptop then you could install the CUDA Toolkit and build OpenCV with GPU support and run it on something that does have an NVIDIA GPU (either a desktop, or a laptop with an NVIDIA Optimus dual-GPU). If you need to run it on your laptop without a GPU, then you would have to modify the code to use the regular CPU version of SURF, and make sure you link to the opencv_nonfree module that contains SURF.

from code.

orgicus avatar orgicus commented on June 10, 2024

Ok, Think I will have to do that.
I've got a messy setup now with SSBA/SuiteSparse partially copiled (at least COLAMD is there).
COLAMD only had a Mafile so when msys picked that up it generated a .a library. I've made a copy
and renamed it to .lib so MSVS 2010 wouldn't complain, and it didn't, although I expect runtime errors
because of this. Now I also have to install Qt:

1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------
1>Build started 03/08/2013 10:24:58.
1>InitializeBuildStatus:
1>  Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>FinalizeBuildStatus:
1>  Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild".
1>  Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.07
2>------ Build started: Project: ExploringSfMExec, Configuration: Debug x64 ------
2>Build started 03/08/2013 10:24:58.
2>InitializeBuildStatus:
2>  Touching "ExploringSfMExec.dir\Debug\ExploringSfMExec.unsuccessfulbuild".
2>CustomBuild:
2>  All outputs are up-to-date.
2>ClCompile:
2>  All outputs are up-to-date.
2>ManifestResourceCompile:
2>  All outputs are up-to-date.
2>LINK : fatal error LNK1104: cannot open file 'C:\Qt\4.8.0\lib\QtGuid4.lib'
2>
2>Build FAILED.
2>
2>Time Elapsed 00:00:00.31
3>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------
3>Build started 03/08/2013 10:24:58.
3>InitializeBuildStatus:
3>  Creating "x64\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild" because "AlwaysCreate" was specified.
3>CustomBuild:
3>  Build all projects
3>FinalizeBuildStatus:
3>  Deleting file "x64\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild".
3>  Touching "x64\Debug\ALL_BUILD\ALL_BUILD.lastbuildstate".
3>
3>Build succeeded.
3>
3>Time Elapsed 00:00:00.09
========== Build: 2 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

I'll be happy once I manage to compile this, then I'll make a copy and change the GPU parts to CPU parts.
This is a bit of a stretch, but will this SfM solution be portable to Android ? I've started dabbing with Android and noticed the Java wrapper is missing quite a few functionalities compared to the full c++ version.

from code.

Joewang88 avatar Joewang88 commented on June 10, 2024

Hello. I can compile your code but I don't know how to run it. For example I store my image in the folder C:/ img / pic. What is the correct command in dos?

from code.

shervinemami avatar shervinemami commented on June 10, 2024

The README file in the folder of that code shows the command-line for running it.

from code.

orgicus avatar orgicus commented on June 10, 2024

Hi,

I'm revisiting this SfM chapter and the sample code, on OSX 10.10.5 this time.
So far I've managed to get past a lot of the issues I encountered last time on Windows.
I've compiled PCL from source, installed the CUDA SDK, then compiled OpenCV 2.4.11 from source with GPU support (earlier versions had an issue building libpng: [ 19%] Built target libpng [ 19%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_matrix_operations.cu.o nvcc fatal : Unsupported gpu architecture 'compute_11') and I've also added this include (#include <opencv2/nonfree/gpu.hpp>) to GPUSURFFeatureMatcher.h to get past the no member named 'SURF_GPU' in namespace 'cv::gpu' error (thanks to this answer).

Now I'm stuck towards the end of the compilation process:

[ 81%] Built target ExploringSfMLibrary
Scanning dependencies of target ExploringSfMExec
[ 87%] Building CXX object CMakeFiles/ExploringSfMExec.dir/Visualization.cpp.o
/Users/georgeprofenza/Downloads/Grouped/books/code-master/Chapter4_StructureFromMotion/Visualization.cpp:97:7: error: no member named 'toROSMsg' in
      namespace 'pcl'
        pcl::toROSMsg(mesh_cld,pm.cloud);
        ~~~~~^
1 error generated.
make[2]: *** [CMakeFiles/ExploringSfMExec.dir/Visualization.cpp.o] Error 1
make[1]: *** [CMakeFiles/ExploringSfMExec.dir/all] Error 2
make: *** [all] Error 2

I'm not exprienced with PCL and ROS so could really use any hints/tips here.

I did have a peak at the PCL docs and found this section:

pcl::PCL_DEPRECATED (   inline void     toROSMsgconst pcl::PCLPointCloud2 &cloud, pcl::PCLImage &msg,
"pcl::fromROSMsg is     deprecated,
please use fromPCLPointCloud2 instead."      
)       
Copy the RGB fields of a PCLPointCloud2 msg into pcl::PCLImage format.

Parameters
cloud   the point cloud message
msg the resultant pcl::PCLImage will throw std::runtime_error if there is a problem

I've tried blindly swapping toROSMsg with fromPCLPointCloud2, but no joy:

/Users/georgeprofenza/Downloads/Grouped/books/code-master/Chapter4_StructureFromMotion/Visualization.cpp:100:2: error: no matching function for call to
      'fromPCLPointCloud2'
        pcl::fromPCLPointCloud2(mesh_cld,pm.cloud);

For now I've tried commenting out this section of the visualizerShowCamera function to check for other errors and I did, but linking this time:

100%] Linking CXX executable ExploringSfMExec
ld: library not found for -lopencv_dep_cudart
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [ExploringSfMExec] Error 1
make[1]: *** [CMakeFiles/ExploringSfMExec.dir/all] Error 2
make: *** [all] Error 2

I thought I compiled opencv with CUDA correctly, but I can't see libopencv_dep_cudart.dylib anywhere.
Anyway I can check if I've compiled OpenCV with CUDA correctly (including this dep_cudart lib) ?

In short:

  1. How can I fix the no member named 'toROSMsg' in namespace 'pcl' error ?
  2. How can I fix the library not found for -lopencv_dep_cudart linking error ?

Update

I've found CMakeFiles/ExploringSfMExec.dir/link.txt where -lopencv_dep_cudart was.
In a pretty hacky manner, I removed it and managed to link the application.
However, I ran into runtime errors when running the application with a single argument (the path to the images dir):

=========================== Load Images ===========================
...........................................................................................
 -------------------- extract feature points for all images -------------------
 ------------------------------------- done -----------------------------------
------------ Match frame_0000.png,frame_0001.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 20 points (descriptors 20)
F keeping 18 / 18
18 matches before, 18 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0002.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 19 points (descriptors 19)
F keeping 16 / 16
16 matches before, 16 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0003.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 20 points (descriptors 20)
F keeping 10 / 13
13 matches before, 10 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0004.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 22 points (descriptors 22)
F keeping 16 / 16
16 matches before, 16 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0005.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 21 points (descriptors 21)
F keeping 14 / 15
15 matches before, 14 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0006.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 22 points (descriptors 22)
F keeping 8 / 14
14 matches before, 8 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0007.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 21 points (descriptors 21)
F keeping 7 / 12
12 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0008.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 23 points (descriptors 23)
F keeping 7 / 13
13 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0009.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 21 points (descriptors 21)
F keeping 7 / 11
11 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0010.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 21 points (descriptors 21)
F keeping 7 / 9
9 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0011.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 24 points (descriptors 24)
F keeping 7 / 12
12 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0012.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 24 points (descriptors 24)
F keeping 7 / 11
11 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0013.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 20 points (descriptors 20)
F keeping 7 / 8
8 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0014.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 19 points (descriptors 19)
F keeping 7 / 9
9 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0015.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 16 points (descriptors 16)
F keeping 7 / 9
9 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0016.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 18 points (descriptors 18)
F keeping 7 / 10
10 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0017.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 18 points (descriptors 18)
F keeping 7 / 9
9 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0018.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 18 points (descriptors 18)
F keeping 7 / 8
8 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0019.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 20 points (descriptors 20)
F keeping 7 / 10
10 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0020.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 21 points (descriptors 21)
F keeping 7 / 12
12 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0021.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 21 points (descriptors 21)
F keeping 7 / 10
10 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0022.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 20 points (descriptors 20)
F keeping 7 / 12
12 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0023.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 20 points (descriptors 20)
F keeping 10 / 12
12 matches before, 10 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0024.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 20 points (descriptors 20)
F keeping 8 / 14
14 matches before, 8 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0025.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 21 points (descriptors 21)
F keeping 9 / 14
14 matches before, 9 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0026.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 22 points (descriptors 22)
F keeping 7 / 13
13 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0027.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 22 points (descriptors 22)
F keeping 7 / 12
12 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0028.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 22 points (descriptors 22)
F keeping 7 / 11
11 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0029.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 25 points (descriptors 25)
F keeping 7 / 11
11 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0030.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 24 points (descriptors 24)
F keeping 7 / 12
12 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0031.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 20 points (descriptors 20)
F keeping 7 / 9
9 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0032.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 21 points (descriptors 21)
F keeping 7 / 9
9 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0033.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 18 points (descriptors 18)
F keeping 7 / 9
9 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0034.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 17 points (descriptors 17)
F keeping 7 / 8
8 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0035.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 17 points (descriptors 17)
F keeping 7 / 8
8 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0036.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 18 points (descriptors 18)
F keeping 7 / 7
7 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0037.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 19 points (descriptors 19)
F keeping 7 / 10
10 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0038.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 16 points (descriptors 16)
F keeping 7 / 9
9 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0039.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 24 points (descriptors 24)
F keeping 7 / 11
11 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0040.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 22 points (descriptors 22)
F keeping 7 / 12
12 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0041.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 23 points (descriptors 23)
2015-12-15 01:09:31.489 ExploringSfMExec[43867:3462323] *** Assertion failure in +[NSUndoManager _endTopLevelGroupings], /SourceCache/Foundation/Foundation-1154/Misc.subproj/NSUndoManager.m:340
2015-12-15 01:09:31.490 ExploringSfMExec[43867:3462323] +[NSUndoManager(NSInternal) _endTopLevelGroupings] is only safe to invoke on the main thread.
F keeping 7 / 12
12 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0042.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 21 points (descriptors 21)
F keeping 7 / 8
8 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0043.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 22 points (descriptors 22)
2015-12-15 01:09:31.500 ExploringSfMExec[43867:3462323] (
    0   CoreFoundation                      0x00007fff88bb503c __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00007fff9091976e objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff88bb4e1a +[NSException raise:format:arguments:] + 106
    3   Foundation                          0x00007fff8974199b -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
    4   Foundation                          0x00007fff896c364f +[NSUndoManager(NSPrivate) _endTopLevelGroupings] + 156
    5   AppKit                              0x00007fff8fc78b95 -[NSApplication run] + 756
    6   libpcl_visualization.1.8.dylib      0x000000010f5d0705 _ZN3pcl13visualization13PCLVisualizer8spinOnceEib + 565
    7   ExploringSfMExec                    0x0000000107613bce _Z20RunVisualizationOnlyv + 4974
    8   ExploringSfMExec                    0x0000000107630e16 _ZN5boost6detail11thread_dataIPFvvEE3runEv + 22
    9   libboost_thread-mt.dylib            0x0000000107ab4ae4 _ZN5boost12_GLOBAL__N_112thread_proxyEPv + 52
    10  libsystem_pthread.dylib             0x00007fff8cf6b05a _pthread_body + 131
    11  libsystem_pthread.dylib             0x00007fff8cf6afd7 _pthread_body + 0
    12  libsystem_pthread.dylib             0x00007fff8cf683ed thread_start + 13
)
2015-12-15 01:09:31.502 ExploringSfMExec[43867:3462323] *** Assertion failure in +[NSUndoManager _endTopLevelGroupings], /SourceCache/Foundation/Foundation-1154/Misc.subproj/NSUndoManager.m:340
2015-12-15 01:09:31.503 ExploringSfMExec[43867:3462323] An uncaught exception was raised
2015-12-15 01:09:31.504 ExploringSfMExec[43867:3462323] +[NSUndoManager(NSInternal) _endTopLevelGroupings] is only safe to invoke on the main thread.
2015-12-15 01:09:31.504 ExploringSfMExec[43867:3462323] (
    0   CoreFoundation                      0x00007fff88bb503c __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00007fff9091976e objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff88bb4e1a +[NSException raise:format:arguments:] + 106
    3   Foundation                          0x00007fff8974199b -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
    4   Foundation                          0x00007fff896c364f +[NSUndoManager(NSPrivate) _endTopLevelGroupings] + 156
    5   AppKit                              0x00007fff8fc78c41 -[NSApplication run] + 928
    6   libpcl_visualization.1.8.dylib      0x000000010f5d0705 _ZN3pcl13visualization13PCLVisualizer8spinOnceEib + 565
    7   ExploringSfMExec                    0x0000000107613bce _Z20RunVisualizationOnlyv + 4974
    8   ExploringSfMExec                    0x0000000107630e16 _ZN5boost6detail11thread_dataIPFvvEE3runEv + 22
    9   libboost_thread-mt.dylib            0x0000000107ab4ae4 _ZN5boost12_GLOBAL__N_112thread_proxyEPv + 52
    10  libsystem_pthread.dylib             0x00007fff8cf6b05a _pthread_body + 131
    11  libsystem_pthread.dylib             0x00007fff8cf6afd7 _pthread_body + 0
    12  libsystem_pthread.dylib             0x00007fff8cf683ed thread_start + 13
)
F keeping 7 / 11
11 matches before, 7 new matches after Fundamental Matrix
------------ Match frame_0000.png,frame_0044.png ------------
imgpts1 has 22 points (descriptors 22)
imgpts2 has 20 points (descriptors 20)
2015-12-15 01:09:31.505 ExploringSfMExec[43867:3462323] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+[NSUndoManager(NSInternal) _endTopLevelGroupings] is only safe to invoke on the main thread.'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff88bb503c __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00007fff9091976e objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff88bb4e1a +[NSException raise:format:arguments:] + 106
    3   Foundation                          0x00007fff8974199b -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
    4   Foundation                          0x00007fff896c364f +[NSUndoManager(NSPrivate) _endTopLevelGroupings] + 156
    5   AppKit                              0x00007fff8fc78c41 -[NSApplication run] + 928
    6   libpcl_visualization.1.8.dylib      0x000000010f5d0705 _ZN3pcl13visualization13PCLVisualizer8spinOnceEib + 565
    7   ExploringSfMExec                    0x0000000107613bce _Z20RunVisualizationOnlyv + 4974
    8   ExploringSfMExec                    0x0000000107630e16 _ZN5boost6detail11thread_dataIPFvvEE3runEv + 22
    9   libboost_thread-mt.dylib            0x0000000107ab4ae4 _ZN5boost12_GLOBAL__N_112thread_proxyEPv + 52
    10  libsystem_pthread.dylib             0x00007fff8cf6b05a _pthread_body + 131
    11  libsystem_pthread.dylib             0x00007fff8cf6afd7 _pthread_body + 0
    12  libsystem_pthread.dylib             0x00007fff8cf683ed thread_start + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

I have no idea what these Obj-C errors are about. Maybe there's something in the UI code that causes it, but I wouldn't even know where to begin.

I ran into some CUDA related errors when using the RICH GPU options:

=========================== Load Images ===========================
...........................................................................................
 -------------------- extract feature points for all images (GPU) -------------------
OpenCV Error: Gpu API call (CUDA driver version is insufficient for CUDA runtime version) in mallocPitch, file /Users/georgeprofenza/Downloads/Grouped/cv/OpenCV-2.4.12/modules/dynamicuda/include/opencv2/dynamicuda/dynamicuda.hpp, line 1134
libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /Users/georgeprofenza/Downloads/Grouped/cv/OpenCV-2.4.12/modules/dynamicuda/include/opencv2/dynamicuda/dynamicuda.hpp:1134: error: (-217) CUDA driver version is insufficient for CUDA runtime version in function mallocPitch

Abort trap: 6

I did install CUDA Toolkit 7.5.20 for OSX 10.10 (and made sure all it's components (including the driver) is installed). The graphics card on this computer is NVIDIA GeForce GT 330M 512 MB which might not be a card supporting CUDA well.

Running the application with the CPU and the OF or RICH options produces the uncaught NSInternalInconsistencyException behaviour.

What is the correct/recommended way of running this code for Chapter 4 ?

Thank you for your time,
George

from code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.