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
66d98647
Commit
66d98647
authored
Dec 30, 2012
by
cuda-geek
Committed by
OpenCV Buildbot
Dec 30, 2012
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #276 from cuda-geek:fix-precomps
parents
bb07e271
e53d5766
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
21 deletions
+14
-21
CMakeLists.txt
CMakeLists.txt
+3
-2
CMakeLists.txt
modules/gpu/CMakeLists.txt
+1
-1
ffmpeg_video_source.cpp
modules/gpu/src/ffmpeg_video_source.cpp
+2
-2
gpu_init.cpp
modules/gpu/src/gpu_init.cpp
+1
-1
softcascade.cpp
modules/gpu/src/softcascade.cpp
+2
-10
icf.cpp
modules/objdetect/src/icf.cpp
+1
-1
objdetect_init.cpp
modules/objdetect/src/objdetect_init.cpp
+1
-1
softcascade.cpp
modules/objdetect/src/softcascade.cpp
+3
-3
No files found.
CMakeLists.txt
View file @
66d98647
...
@@ -769,8 +769,9 @@ if(HAVE_CUDA)
...
@@ -769,8 +769,9 @@ if(HAVE_CUDA)
status
(
""
)
status
(
""
)
status
(
" NVIDIA CUDA"
)
status
(
" NVIDIA CUDA"
)
status
(
" Use CUFFT:"
HAVE_CUFFT THEN YES ELSE NO
)
status
(
" Use CUFFT:"
HAVE_CUFFT THEN YES ELSE NO
)
status
(
" Use CUBLAS:"
HAVE_CUBLAS THEN YES ELSE NO
)
status
(
" Use CUBLAS:"
HAVE_CUBLAS THEN YES ELSE NO
)
status
(
" USE NVCUVID:"
HAVE_NVCUVID THEN YES ELSE NO
)
status
(
" NVIDIA GPU arch:"
${
OPENCV_CUDA_ARCH_BIN
}
)
status
(
" NVIDIA GPU arch:"
${
OPENCV_CUDA_ARCH_BIN
}
)
status
(
" NVIDIA PTX archs:"
${
OPENCV_CUDA_ARCH_PTX
}
)
status
(
" NVIDIA PTX archs:"
${
OPENCV_CUDA_ARCH_PTX
}
)
status
(
" Use fast math:"
CUDA_FAST_MATH THEN YES ELSE NO
)
status
(
" Use fast math:"
CUDA_FAST_MATH THEN YES ELSE NO
)
...
...
modules/gpu/CMakeLists.txt
View file @
66d98647
...
@@ -5,7 +5,7 @@ endif()
...
@@ -5,7 +5,7 @@ endif()
set
(
the_description
"GPU-accelerated Computer Vision"
)
set
(
the_description
"GPU-accelerated Computer Vision"
)
ocv_add_module
(
gpu opencv_imgproc opencv_calib3d opencv_objdetect opencv_video opencv_nonfree opencv_photo opencv_legacy
)
ocv_add_module
(
gpu opencv_imgproc opencv_calib3d opencv_objdetect opencv_video opencv_nonfree opencv_photo opencv_legacy
)
ocv_module_include_directories
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/cuda"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../highgui/src"
)
ocv_module_include_directories
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/cuda"
)
file
(
GLOB lib_hdrs
"include/opencv2/
${
name
}
/*.hpp"
"include/opencv2/
${
name
}
/*.h"
)
file
(
GLOB lib_hdrs
"include/opencv2/
${
name
}
/*.hpp"
"include/opencv2/
${
name
}
/*.h"
)
file
(
GLOB lib_device_hdrs
"include/opencv2/
${
name
}
/device/*.hpp"
"include/opencv2/
${
name
}
/device/*.h"
)
file
(
GLOB lib_device_hdrs
"include/opencv2/
${
name
}
/device/*.hpp"
"include/opencv2/
${
name
}
/device/*.h"
)
...
...
modules/gpu/src/ffmpeg_video_source.cpp
View file @
66d98647
...
@@ -45,9 +45,9 @@
...
@@ -45,9 +45,9 @@
#if defined(HAVE_CUDA) && defined(HAVE_NVCUVID)
#if defined(HAVE_CUDA) && defined(HAVE_NVCUVID)
#if defined(HAVE_FFMPEG) && defined(BUILD_SHARED_LIBS)
#if defined(HAVE_FFMPEG) && defined(BUILD_SHARED_LIBS)
#include "cap_ffmpeg_impl.hpp"
#include "
../src/
cap_ffmpeg_impl.hpp"
#else
#else
#include "cap_ffmpeg_api.hpp"
#include "
../src/
cap_ffmpeg_api.hpp"
#endif
#endif
namespace
namespace
...
...
modules/gpu/src/gpu_init.cpp
View file @
66d98647
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
//
//
//M*/
//M*/
#include
<precomp.hpp>
#include
"precomp.hpp"
namespace
cv
{
namespace
gpu
namespace
cv
{
namespace
gpu
{
{
...
...
modules/gpu/src/softcascade.cpp
View file @
66d98647
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
//
//
//M*/
//M*/
#include
<precomp.hpp>
#include
"precomp.hpp"
#if !defined (HAVE_CUDA)
#if !defined (HAVE_CUDA)
cv
::
gpu
::
SCascade
::
SCascade
(
const
double
,
const
double
,
const
int
,
const
int
)
{
throw_nogpu
();
}
cv
::
gpu
::
SCascade
::
SCascade
(
const
double
,
const
double
,
const
int
,
const
int
)
{
throw_nogpu
();
}
...
@@ -60,7 +60,7 @@ cv::Ptr<cv::gpu::ChannelsProcessor> cv::gpu::ChannelsProcessor::create(const int
...
@@ -60,7 +60,7 @@ cv::Ptr<cv::gpu::ChannelsProcessor> cv::gpu::ChannelsProcessor::create(const int
{
throw_nogpu
();
return
cv
::
Ptr
<
cv
::
gpu
::
ChannelsProcessor
>
(
0
);
}
{
throw_nogpu
();
return
cv
::
Ptr
<
cv
::
gpu
::
ChannelsProcessor
>
(
0
);
}
#else
#else
# include
<icf.hpp>
# include
"icf.hpp"
cv
::
gpu
::
device
::
icf
::
Level
::
Level
(
int
idx
,
const
Octave
&
oct
,
const
float
scale
,
const
int
w
,
const
int
h
)
cv
::
gpu
::
device
::
icf
::
Level
::
Level
(
int
idx
,
const
Octave
&
oct
,
const
float
scale
,
const
int
w
,
const
int
h
)
:
octave
(
idx
),
step
(
oct
.
stages
),
relScale
(
scale
/
oct
.
scale
)
:
octave
(
idx
),
step
(
oct
.
stages
),
relScale
(
scale
/
oct
.
scale
)
...
@@ -95,14 +95,6 @@ namespace icf {
...
@@ -95,14 +95,6 @@ namespace icf {
void
shrink
(
const
cv
::
gpu
::
PtrStepSzb
&
channels
,
cv
::
gpu
::
PtrStepSzb
shrunk
);
void
shrink
(
const
cv
::
gpu
::
PtrStepSzb
&
channels
,
cv
::
gpu
::
PtrStepSzb
shrunk
);
}
}
// namespace imgproc {
// void shfl_integral_gpu_buffered(PtrStepSzb, PtrStepSz<uint4>, PtrStepSz<unsigned int>, int, cudaStream_t);
// template <typename T>
// void resize_gpu(PtrStepSzb src, PtrStepSzb srcWhole, int xoff, int yoff, float fx, float fy,
// PtrStepSzb dst, int interpolation, cudaStream_t stream);
// }
}}}
}}}
struct
cv
::
gpu
::
SCascade
::
Fields
struct
cv
::
gpu
::
SCascade
::
Fields
...
...
modules/objdetect/src/icf.cpp
View file @
66d98647
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
//
//
//M*/
//M*/
#include
<precomp.hpp>
#include
"precomp.hpp"
cv
::
SCascade
::
Channels
::
Channels
(
int
shr
)
:
shrinkage
(
shr
)
{}
cv
::
SCascade
::
Channels
::
Channels
(
int
shr
)
:
shrinkage
(
shr
)
{}
...
...
modules/objdetect/src/objdetect_init.cpp
View file @
66d98647
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
//
//
//M*/
//M*/
#include
<precomp.hpp>
#include
"precomp.hpp"
namespace
cv
namespace
cv
{
{
...
...
modules/objdetect/src/softcascade.cpp
View file @
66d98647
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
//
//
//M*/
//M*/
#include
<precomp.hpp>
#include
"precomp.hpp"
namespace
{
namespace
{
...
@@ -568,11 +568,11 @@ void cv::SCascade::detect(InputArray _image, InputArray _rois, OutputArray _rec
...
@@ -568,11 +568,11 @@ void cv::SCascade::detect(InputArray _image, InputArray _rois, OutputArray _rec
std
::
vector
<
Detection
>
objects
;
std
::
vector
<
Detection
>
objects
;
detect
(
_image
,
_rois
,
objects
);
detect
(
_image
,
_rois
,
objects
);
_rects
.
create
(
1
,
objects
.
size
(),
CV_32SC4
);
_rects
.
create
(
1
,
(
int
)
objects
.
size
(),
CV_32SC4
);
cv
::
Mat_
<
cv
::
Rect
>
rects
=
(
cv
::
Mat_
<
cv
::
Rect
>
)
_rects
.
getMat
();
cv
::
Mat_
<
cv
::
Rect
>
rects
=
(
cv
::
Mat_
<
cv
::
Rect
>
)
_rects
.
getMat
();
cv
::
Rect
*
rectPtr
=
rects
.
ptr
<
cv
::
Rect
>
(
0
);
cv
::
Rect
*
rectPtr
=
rects
.
ptr
<
cv
::
Rect
>
(
0
);
_confs
.
create
(
1
,
objects
.
size
(),
CV_32F
);
_confs
.
create
(
1
,
(
int
)
objects
.
size
(),
CV_32F
);
cv
::
Mat
confs
=
_confs
.
getMat
();
cv
::
Mat
confs
=
_confs
.
getMat
();
float
*
confPtr
=
rects
.
ptr
<
float
>
(
0
);
float
*
confPtr
=
rects
.
ptr
<
float
>
(
0
);
...
...
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