Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
a1174005
Commit
a1174005
authored
Sep 17, 2013
by
Ozan Tonkal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ignore viz tutorials when BUILD_opencv_viz is not set
parent
e3e5fd5b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
test_viz3d.cpp
modules/viz/test/test_viz3d.cpp
+2
-2
CMakeLists.txt
samples/cpp/CMakeLists.txt
+11
-0
No files found.
modules/viz/test/test_viz3d.cpp
View file @
a1174005
...
...
@@ -124,8 +124,8 @@ TEST(Viz_viz3d, accuracy)
int
row_max
=
img
.
rows
/
downSample
;
int
col_max
=
img
.
cols
/
downSample
;
cv
::
Mat
clouds
[
img
.
cols
/
downSample
];
cv
::
Mat
colors
[
img
.
cols
/
downSample
];
cv
::
Mat
*
clouds
=
new
cv
::
Mat
[
img
.
cols
/
downSample
];
cv
::
Mat
*
colors
=
new
cv
::
Mat
[
img
.
cols
/
downSample
];
for
(
int
col
=
0
;
col
<
col_max
;
++
col
)
{
...
...
samples/cpp/CMakeLists.txt
View file @
a1174005
...
...
@@ -28,6 +28,9 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
if
(
HAVE_opencv_gpufilters
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpufilters/include"
)
endif
()
if
(
HAVE_opencv_viz
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/viz/include"
)
endif
()
if
(
CMAKE_COMPILER_IS_GNUCXX AND NOT ENABLE_NOISY_WARNINGS
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-Wno-unused-function"
)
...
...
@@ -56,6 +59,10 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
target_link_libraries
(
${
the_target
}
opencv_gpuarithm opencv_gpufilters
)
endif
()
if
(
HAVE_opencv_viz
)
target_link_libraries
(
${
the_target
}
opencv_viz
)
endif
()
set_target_properties
(
${
the_target
}
PROPERTIES
OUTPUT_NAME
"cpp-
${
sample_kind
}
-
${
name
}
"
PROJECT_LABEL
"(
${
sample_KIND
}
)
${
name
}
"
)
...
...
@@ -83,6 +90,10 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
ocv_list_filterout
(
cpp_samples
"/gpu/"
)
endif
()
if
(
NOT HAVE_opencv_viz
)
ocv_list_filterout
(
cpp_samples
"viz"
)
endif
()
foreach
(
sample_filename
${
cpp_samples
}
)
get_filename_component
(
sample
${
sample_filename
}
NAME_WE
)
OPENCV_DEFINE_CPP_EXAMPLE
(
${
sample
}
${
sample_filename
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment