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
f4ae0cf1
Commit
f4ae0cf1
authored
Apr 09, 2013
by
Andrey Kamaev
Committed by
OpenCV Buildbot
Apr 09, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #790 from jet47:fix-gpu-build
parents
36bf8af8
ba1a1aec
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
14 deletions
+15
-14
hough.cpp
modules/gpu/src/hough.cpp
+4
-4
test_hough.cpp
modules/gpu/test/test_hough.cpp
+1
-1
cascadeclassifier_nvidia_api.cpp
samples/gpu/cascadeclassifier_nvidia_api.cpp
+5
-5
driver_api_stereo_multi.cpp
samples/gpu/driver_api_stereo_multi.cpp
+2
-2
opticalflow_nvidia_api.cpp
samples/gpu/opticalflow_nvidia_api.cpp
+1
-0
stereo_multi.cpp
samples/gpu/stereo_multi.cpp
+2
-2
No files found.
modules/gpu/src/hough.cpp
View file @
f4ae0cf1
...
...
@@ -1334,19 +1334,19 @@ Ptr<GeneralizedHough_GPU> cv::gpu::GeneralizedHough_GPU::create(int method)
{
switch
(
method
)
{
case
GHT_POSITION
:
case
cv
:
:
GeneralizedHough
::
GHT_POSITION
:
CV_Assert
(
!
GHT_Ballard_Pos_info_auto
.
name
().
empty
()
);
return
new
GHT_Ballard_Pos
();
case
(
GHT_POSITION
|
GHT_SCALE
):
case
(
cv
:
:
GeneralizedHough
::
GHT_POSITION
|
cv
::
GeneralizedHough
::
GHT_SCALE
)
:
CV_Assert
(
!
GHT_Ballard_PosScale_info_auto
.
name
().
empty
()
);
return
new
GHT_Ballard_PosScale
();
case
(
GHT_POSITION
|
GHT_ROTATION
):
case
(
cv
:
:
GeneralizedHough
::
GHT_POSITION
|
cv
::
GeneralizedHough
::
GHT_ROTATION
)
:
CV_Assert
(
!
GHT_Ballard_PosRotation_info_auto
.
name
().
empty
()
);
return
new
GHT_Ballard_PosRotation
();
case
(
GHT_POSITION
|
GHT_SCALE
|
GHT_ROTATION
):
case
(
cv
:
:
GeneralizedHough
::
GHT_POSITION
|
cv
::
GeneralizedHough
::
GHT_SCALE
|
cv
::
GeneralizedHough
::
GHT_ROTATION
)
:
CV_Assert
(
!
GHT_Guil_Full_info_auto
.
name
().
empty
()
);
return
new
GHT_Guil_Full
();
}
...
...
modules/gpu/test/test_hough.cpp
View file @
f4ae0cf1
...
...
@@ -214,7 +214,7 @@ GPU_TEST_P(GeneralizedHough, POSITION)
templ
.
copyTo
(
imageROI
);
}
cv
::
Ptr
<
cv
::
gpu
::
GeneralizedHough_GPU
>
hough
=
cv
::
gpu
::
GeneralizedHough_GPU
::
create
(
cv
::
GHT_POSITION
);
cv
::
Ptr
<
cv
::
gpu
::
GeneralizedHough_GPU
>
hough
=
cv
::
gpu
::
GeneralizedHough_GPU
::
create
(
cv
::
G
eneralizedHough
::
G
HT_POSITION
);
hough
->
set
(
"votesThreshold"
,
200
);
hough
->
setTemplate
(
loadMat
(
templ
,
useRoi
));
...
...
samples/gpu/cascadeclassifier_nvidia_api.cpp
View file @
f4ae0cf1
...
...
@@ -27,7 +27,7 @@ int main( int, const char** )
const
Size2i
preferredVideoFrameSize
(
640
,
480
);
const
s
tring
wndTitle
=
"NVIDIA Computer Vision :: Haar Classifiers Cascade"
;
const
cv
::
S
tring
wndTitle
=
"NVIDIA Computer Vision :: Haar Classifiers Cascade"
;
static
void
matPrint
(
Mat
&
img
,
int
lineOffsY
,
Scalar
fontColor
,
const
string
&
ss
)
...
...
@@ -286,7 +286,7 @@ int main(int argc, const char** argv)
do
{
Mat
gray
;
cvtColor
((
image
.
empty
()
?
frame
:
image
),
gray
,
CV
_BGR2GRAY
);
cvtColor
((
image
.
empty
()
?
frame
:
image
),
gray
,
cv
::
COLOR
_BGR2GRAY
);
//
// process
...
...
@@ -334,12 +334,12 @@ int main(int argc, const char** argv)
avgTime
=
(
Ncv32f
)
ncvEndQueryTimerMs
(
timer
);
cvtColor
(
gray
,
frameDisp
,
CV
_GRAY2BGR
);
cvtColor
(
gray
,
frameDisp
,
cv
::
COLOR
_GRAY2BGR
);
displayState
(
frameDisp
,
bHelpScreen
,
bUseGPU
,
bLargestObject
,
bFilterRects
,
1000.0
f
/
avgTime
);
imshow
(
wndTitle
,
frameDisp
);
//handle input
switch
(
cv
W
aitKey
(
3
))
switch
(
cv
::
w
aitKey
(
3
))
{
case
' '
:
bUseGPU
=
!
bUseGPU
;
...
...
@@ -372,7 +372,7 @@ int main(int argc, const char** argv)
}
}
while
(
!
bQuit
);
cv
DestroyWindow
(
wndTitle
.
c_str
()
);
cv
::
destroyWindow
(
wndTitle
);
return
0
;
}
...
...
samples/gpu/driver_api_stereo_multi.cpp
View file @
f4ae0cf1
...
...
@@ -124,12 +124,12 @@ int main(int argc, char** argv)
{
if
(
string
(
argv
[
i
])
==
"--left"
)
{
left
=
imread
(
argv
[
++
i
],
CV_LOAD_IMAGE
_GRAYSCALE
);
left
=
imread
(
argv
[
++
i
],
cv
::
IMREAD
_GRAYSCALE
);
CV_Assert
(
!
left
.
empty
());
}
else
if
(
string
(
argv
[
i
])
==
"--right"
)
{
right
=
imread
(
argv
[
++
i
],
CV_LOAD_IMAGE
_GRAYSCALE
);
right
=
imread
(
argv
[
++
i
],
cv
::
IMREAD
_GRAYSCALE
);
CV_Assert
(
!
right
.
empty
());
}
else
if
(
string
(
argv
[
i
])
==
"--help"
)
...
...
samples/gpu/opticalflow_nvidia_api.cpp
View file @
f4ae0cf1
...
...
@@ -13,6 +13,7 @@
#include <iomanip>
#include "opencv2/gpu/gpu.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/highgui/highgui_c.h"
#ifdef HAVE_CUDA
#include "NPP_staging/NPP_staging.hpp"
...
...
samples/gpu/stereo_multi.cpp
View file @
f4ae0cf1
...
...
@@ -93,12 +93,12 @@ int main(int argc, char** argv)
{
if
(
string
(
argv
[
i
])
==
"--left"
)
{
left
=
imread
(
argv
[
++
i
],
CV_LOAD_IMAGE
_GRAYSCALE
);
left
=
imread
(
argv
[
++
i
],
cv
::
IMREAD
_GRAYSCALE
);
CV_Assert
(
!
left
.
empty
());
}
else
if
(
string
(
argv
[
i
])
==
"--right"
)
{
right
=
imread
(
argv
[
++
i
],
CV_LOAD_IMAGE
_GRAYSCALE
);
right
=
imread
(
argv
[
++
i
],
cv
::
IMREAD
_GRAYSCALE
);
CV_Assert
(
!
right
.
empty
());
}
else
if
(
string
(
argv
[
i
])
==
"--help"
)
...
...
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