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
6c326eb4
Commit
6c326eb4
authored
Nov 17, 2010
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added gpu HOG sample
parent
4568d702
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
0 deletions
+60
-0
CMakeLists.txt
samples/CMakeLists.txt
+1
-0
CMakeLists.txt
samples/gpu/CMakeLists.txt
+59
-0
gpu_hog.cpp
samples/gpu/gpu_hog.cpp
+0
-0
road.png
samples/gpu/road.png
+0
-0
No files found.
samples/CMakeLists.txt
View file @
6c326eb4
...
...
@@ -7,3 +7,4 @@ add_subdirectory(c)
add_subdirectory
(
cpp
)
add_subdirectory
(
swig_python
)
add_subdirectory
(
octave
)
#add_subdirectory(gpu)
samples/gpu/CMakeLists.txt
0 → 100644
View file @
6c326eb4
if
(
BUILD_EXAMPLES
)
project
(
gpu_samples
)
include_directories
(
"
${
CMAKE_SOURCE_DIR
}
/modules/core/include"
"
${
CMAKE_SOURCE_DIR
}
/modules/flann/include"
"
${
CMAKE_SOURCE_DIR
}
/modules/imgproc/include"
"
${
CMAKE_SOURCE_DIR
}
/modules/video/include"
"
${
CMAKE_SOURCE_DIR
}
/modules/highgui/include"
"
${
CMAKE_SOURCE_DIR
}
/modules/ml/include"
"
${
CMAKE_SOURCE_DIR
}
/modules/calib3d/include"
"
${
CMAKE_SOURCE_DIR
}
/modules/features2d/include"
"
${
CMAKE_SOURCE_DIR
}
/modules/objdetect/include"
"
${
CMAKE_SOURCE_DIR
}
/modules/legacy/include"
"
${
CMAKE_SOURCE_DIR
}
/modules/contrib/include"
"
${
CMAKE_SOURCE_DIR
}
/modules/gpu/include"
)
if
(
CMAKE_COMPILER_IS_GNUCXX
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-Wno-unused-function"
)
endif
()
# ---------------------------------------------
# Define executable targets
# ---------------------------------------------
MACRO
(
MY_DEFINE_EXAMPLE name srcs
)
set
(
the_target
"example_
${
name
}
"
)
add_executable
(
${
the_target
}
${
srcs
}
)
set_target_properties
(
${
the_target
}
PROPERTIES
OUTPUT_NAME
"
${
name
}
"
PROJECT_LABEL
"(EXAMPLE)
${
name
}
"
)
add_dependencies
(
${
the_target
}
opencv_core opencv_flann opencv_imgproc opencv_highgui
opencv_ml opencv_video opencv_objdetect opencv_features2d
opencv_calib3d opencv_legacy opencv_contrib opencv_gpu
)
target_link_libraries
(
${
the_target
}
${
OPENCV_LINKER_LIBS
}
opencv_core
opencv_flann opencv_imgproc opencv_highgui opencv_ml opencv_video opencv_objdetect
opencv_features2d opencv_calib3d opencv_legacy opencv_contrib opencv_gpu
)
if
(
WIN32
)
install
(
TARGETS
${
the_target
}
RUNTIME DESTINATION
"samples/gpu"
COMPONENT main
)
endif
()
ENDMACRO
(
MY_DEFINE_EXAMPLE
)
file
(
GLOB gpu_samples RELATIVE
${
CMAKE_CURRENT_SOURCE_DIR
}
*.cpp
)
foreach
(
sample_filename
${
gpu_samples
}
)
get_filename_component
(
sample
${
sample_filename
}
NAME_WE
)
MY_DEFINE_EXAMPLE
(
${
sample
}
${
sample_filename
}
)
endforeach
()
endif
(
BUILD_EXAMPLES
)
if
(
NOT WIN32
)
file
(
GLOB GPU_FILES *.c *.cpp *.jpg *.png *.data makefile.* build_all.sh *.dsp *.cmd
)
install
(
FILES
${
GPU_FILES
}
DESTINATION share/opencv/samples/gpu
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ
)
endif
()
samples/gpu/gpu_hog.cpp
0 → 100644
View file @
6c326eb4
This diff is collapsed.
Click to expand it.
samples/gpu/road.png
0 → 100644
View file @
6c326eb4
675 KB
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