Skip to content

Commit 27eaecf

Browse files
committed
progress getting rid of opencv
1 parent 815deac commit 27eaecf

34 files changed

+43
-302
lines changed

.lgtm.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ extraction:
1010
- "cmake"
1111
- "libwxgtk3.0-dev"
1212
- "libwxgtk3.0-gtk3-dev"
13-
- "libopencv-dev"
1413
- "libeigen3-dev"
1514
- "libgtest-dev"
1615
- "libftdi1-dev"
@@ -23,7 +22,6 @@ extraction:
2322
- "libavformat-dev"
2423
- "libswscale-dev"
2524
- "libassimp-dev"
26-
- "libjpeg-dev"
2725
- "libsuitesparse-dev"
2826
- "libpcap-dev"
2927
- "liboctomap-dev"

apps/features-matching/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ add_executable(${PROJECT_NAME}
1818
${MRPT_VERSION_RC_FILE}
1919
)
2020

21-
# Add the required libraries for linking:
22-
target_link_libraries(${PROJECT_NAME} imp_opencv)
23-
2421
# Dependencies on MRPT libraries:
2522
# Just mention the top-level dependency, the rest will be detected automatically,
2623
# and all the needed #include<> dirs added (see the script DeclareAppDependencies.cmake for further details)

apps/mrpt-performance/perf-feature_matching.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,8 @@ void register_tests_feature_matching()
267267
"feature_matching [640x480]: Harris + CC", feature_matching_test_Harris_CC, 640, 480);
268268
lstTests.emplace_back(
269269
"feature_matching [640x480]: Harris + SAD", feature_matching_test_Harris_SAD, 640, 480);
270-
#if 0 // crash in opencv 3.1?
271-
lstTests.push_back( TestData("feature_matching [640x480]: SIFT", feature_matching_test_SIFT, 640, 480 ) );
272-
#endif
270+
lstTests.push_back(
271+
TestData("feature_matching [640x480]: SIFT", feature_matching_test_SIFT, 640, 480));
273272
lstTests.emplace_back("feature_matching [640x480]: SURF", feature_matching_test_SURF, 640, 480);
274273
lstTests.emplace_back(
275274
"feature_matching [640x480]: FAST + CC", feature_matching_test_FAST_CC, 640, 480);

apps/mrpt-performance/perf-images.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,6 @@ double image_test_2(int w, int h)
159159
{
160160
CImage img(w, h, mrpt::img::CH_RGB), img2;
161161

162-
#if MRPT_HAS_OPENCV
163-
// int oldVal = cvUseOptimized(1);
164-
#endif
165-
166162
for (int i = 0; i < 5000; i++)
167163
img.line(
168164
getRandomGenerator().drawUniform(0, w - 1), getRandomGenerator().drawUniform(0, h - 1),
@@ -178,9 +174,6 @@ double image_test_2(int w, int h)
178174

179175
double R = tictac.Tac() / N;
180176

181-
#if MRPT_HAS_OPENCV
182-
// cvUseOptimized(oldVal);
183-
#endif
184177
return R;
185178
}
186179

apps/track-video-features/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ add_executable(${PROJECT_NAME}
1818
${MRPT_VERSION_RC_FILE}
1919
)
2020

21-
# Add the required libraries for linking:
22-
target_link_libraries(${PROJECT_NAME} imp_opencv)
23-
2421
# Dependencies on MRPT libraries:
2522
# Just mention the top-level dependency, the rest will be detected automatically,
2623
# and all the needed #include<> dirs added (see the script DeclareAppDependencies.cmake for further details)

appveyor.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@ build_script:
3535
- dir
3636

3737
install:
38-
# ====== Install OpenCV
39-
- choco upgrade chocolatey
40-
- choco install opencv -y
41-
- tree c:\tools\opencv\build /F
42-
- set OPENCVDIR=C:\tools\opencv\build\
43-
# This variable is parsed by MRPT/cmakemodules/script_opencv.cmake:
44-
- set OPENCV_DLLS_TO_INSTALL_DIRS=%OPENCVDIR%bin;%OPENCVDIR%x64\vc16\bin
45-
- set PATH=%PATH%;%OPENCVDIR%\bin;%OPENCVDIR%\x64\vc16\bin
4638
# ====== Install wxWidgets
4739
- cd c:\
4840
- ps: Start-FileDownload 'https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.3/wxMSW-3.1.3_vc14x_x64_Dev.7z'
@@ -69,7 +61,7 @@ before_build:
6961
# AppVeyor has a 90 minutes limit: disable some parts.
7062
- cmake -S. -Bbuild -G "Visual Studio 16 2019" \
7163
-DMRPT_EIGEN_USE_EMBEDDED_VERSION=ON -DMRPT_BUILD_ASSIMP=OFF \
72-
-DOpenCV_DIR=%OPENCVDIR% -DwxWidgets_ROOT_DIR=%WXWIDGETSDIR% -DwxWidgets_LIB_DIR=%WXWIDGETSLIBDIR% \
64+
-DwxWidgets_ROOT_DIR=%WXWIDGETSDIR% -DwxWidgets_LIB_DIR=%WXWIDGETSLIBDIR% \
7365
-DBUILD_APP_DifOdometry-Camera=OFF -DBUILD_APP_DifOdometry-Datasets=OFF \
7466
-DBUILD_APP_benchmarking-image-features=OFF \
7567
-DBUILD_APP_carmen2rawlog=OFF \

cmakemodules/DeclareMRPTLib.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,6 @@ macro(internal_define_mrpt_lib name headers_only )
368368
else()
369369
# Use cotire module for GCC/CLANG:
370370
list(APPEND COTIRE_PREFIX_HEADER_IGNORE_PATH
371-
"${OpenCV_INCLUDE_DIR}"
372371
"${MRPT_LIBS_ROOT}/${name}/src"
373372
"/usr/" # avoid problems with Cotire trying to include internal GCC headers, not suitable for direct use.
374373
)

cmakemodules/script_show_final_summary.cmake

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,8 @@ SHOW_CONFIG_LINE_SYSTEM("ffmpeg libs (Video streaming) " CMAKE_MRPT_HAS_FF
130130
SHOW_CONFIG_LINE_SYSTEM("fyaml (YAML/JSON parsing) " CMAKE_MRPT_HAS_LIBFYAML)
131131
SHOW_CONFIG_LINE_SYSTEM("gtest (Google unit testing library) " CMAKE_MRPT_HAS_GTEST)
132132
SHOW_CONFIG_LINE_SYSTEM("jsoncpp (JSON format serialization) " CMAKE_MRPT_HAS_JSONCPP "[Version: ${jsoncpp_VERSION}]")
133-
SHOW_CONFIG_LINE_SYSTEM("libjpeg (jpeg) " CMAKE_MRPT_HAS_JPEG)
134133
SHOW_CONFIG_LINE ("mexplus " CMAKE_MRPT_HAS_MATLAB)
135134
SHOW_CONFIG_LINE_SYSTEM("Octomap " CMAKE_MRPT_HAS_OCTOMAP "[Version: ${OCTOMAP_VERSION}]")
136-
SHOW_CONFIG_LINE_SYSTEM("OpenCV (Image manipulation) " CMAKE_MRPT_HAS_OPENCV "[Version: ${MRPT_OPENCV_VERSION}]")
137135
SHOW_CONFIG_LINE_SYSTEM("OpenGL " CMAKE_MRPT_HAS_OPENGL_GLUT)
138136
SHOW_CONFIG_LINE_SYSTEM("OpenGL EGL " CMAKE_MRPT_HAS_EGL "[Version: ${EGL_VERSION}]")
139137
SHOW_CONFIG_LINE_SYSTEM("OpenGL GLES " CMAKE_MRPT_HAS_GLES "[Version: ${GLESV2_VERSION}]")
@@ -189,13 +187,3 @@ SHOW_CONFIG_LINE_SYSTEM("xSENS MT " CMAKE_MRPT_HAS_xS
189187
SHOW_CONFIG_LINE_SYSTEM("Intersense sensors " CMAKE_MRPT_HAS_INTERSENSE)
190188
message(STATUS "")
191189

192-
# Final warnings:
193-
if (NOT CMAKE_MRPT_HAS_OPENCV AND NOT DISABLE_OPENCV)
194-
message(STATUS "")
195-
message(STATUS "***********************************************************************")
196-
message(STATUS "* WARNING: It's STRONGLY recommended to build MRPT with OpenCV support.")
197-
message(STATUS "* To do so, set OpenCV_DIR to its CMake build dir. If you want to go ")
198-
message(STATUS "* on without OpenCV, proceed to build instead. ")
199-
message(STATUS "***********************************************************************")
200-
message(STATUS "")
201-
endif()

doc/source/Doxyfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2094,7 +2094,6 @@ PREDEFINED = MRPT_HAS_SSE2 \
20942094
MRPT_HAS_SSE4 \
20952095
MRPT_HAS_MATLAB=1 \
20962096
MRPT_HAS_WXWIDGETS=1 \
2097-
MRPT_HAS_OPENCV=1 \
20982097
MRPT_HAS_NANOGUI=1
20992098

21002099
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this

doc/source/compiling.rst

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ Minimum compiler requisites:
3333
3434
# All Ubuntu versions:
3535
sudo apt install build-essential pkg-config cmake \
36-
libopencv-dev libeigen3-dev zlib1g-dev \
37-
libsuitesparse-dev libjpeg-dev
38-
36+
libeigen3-dev zlib1g-dev
37+
3938
# plus, only for Ubuntu < 22.10:
4039
sudo apt install libwxgtk3.0-gtk3-dev
4140
@@ -127,12 +126,6 @@ Minimum compiler requisites:
127126
nmake -f makefile.vc BUILD=release SHARED=1 RUNTIME_LIBS=dynamic DEBUG_INFO=0 VENDOR=mrpt USE_OPENGL=1 TARGET_CPU=amd64
128127
nmake -f makefile.vc BUILD=debug SHARED=1 RUNTIME_LIBS=dynamic DEBUG_INFO=1 VENDOR=mrpt USE_OPENGL=1 TARGET_CPU=amd64
129128
130-
**OpenCV (Optional, but strongly recommended)**
131-
132-
Download the `latest OpenCV release <https://github.com/opencv/opencv/releases/latest>`_
133-
either as source code and compile it, or (easier) install the provided
134-
``opencv-x.y.z-vcZZ.exe`` installer.
135-
136129
**FFmpeg for Win32 (Optional)**
137130

138131
These libraries are optional, you will need them only if you plan to read

0 commit comments

Comments
 (0)