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
e467ece1
Commit
e467ece1
authored
Apr 25, 2012
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merged bug fix from r8174 (GPU_NVidia/NCV.Visualization test)
parent
916d07cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
29 deletions
+29
-29
main_nvidia.cpp
modules/gpu/test/nvidia/main_nvidia.cpp
+28
-28
test_nvidia.cpp
modules/gpu/test/test_nvidia.cpp
+1
-1
No files found.
modules/gpu/test/nvidia/main_nvidia.cpp
View file @
e467ece1
#pragma warning (disable : 4408 4201 4100)
#pragma warning (disable : 4408 4201 4100)
#include <cstdio>
#include <cstdio>
#include "NCV.hpp"
#include "NCV.hpp"
...
@@ -290,11 +290,11 @@ static void devNullOutput(const std::string& msg)
...
@@ -290,11 +290,11 @@ static void devNullOutput(const std::string& msg)
bool
nvidia_NPPST_Integral_Image
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
bool
nvidia_NPPST_Integral_Image
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
{
{
path
=
test_data_path
;
path
=
test_data_path
;
ncvSetDebugOutputHandler
(
devNullOutput
);
ncvSetDebugOutputHandler
(
devNullOutput
);
NCVAutoTestLister
testListerII
(
"NPPST Integral Image"
,
outputLevel
);
NCVAutoTestLister
testListerII
(
"NPPST Integral Image"
,
outputLevel
);
NCVTestSourceProvider
<
Ncv8u
>
testSrcRandom_8u
(
2010
,
0
,
255
,
4096
,
4096
);
NCVTestSourceProvider
<
Ncv8u
>
testSrcRandom_8u
(
2010
,
0
,
255
,
4096
,
4096
);
NCVTestSourceProvider
<
Ncv32f
>
testSrcRandom_32f
(
2010
,
-
1.0
f
,
1.0
f
,
4096
,
4096
);
NCVTestSourceProvider
<
Ncv32f
>
testSrcRandom_32f
(
2010
,
-
1.0
f
,
1.0
f
,
4096
,
4096
);
...
@@ -306,7 +306,7 @@ bool nvidia_NPPST_Integral_Image(const std::string& test_data_path, OutputLevel
...
@@ -306,7 +306,7 @@ bool nvidia_NPPST_Integral_Image(const std::string& test_data_path, OutputLevel
bool
nvidia_NPPST_Squared_Integral_Image
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
bool
nvidia_NPPST_Squared_Integral_Image
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
{
{
path
=
test_data_path
;
path
=
test_data_path
;
ncvSetDebugOutputHandler
(
devNullOutput
);
ncvSetDebugOutputHandler
(
devNullOutput
);
NCVAutoTestLister
testListerSII
(
"NPPST Squared Integral Image"
,
outputLevel
);
NCVAutoTestLister
testListerSII
(
"NPPST Squared Integral Image"
,
outputLevel
);
...
@@ -320,11 +320,11 @@ bool nvidia_NPPST_Squared_Integral_Image(const std::string& test_data_path, Outp
...
@@ -320,11 +320,11 @@ bool nvidia_NPPST_Squared_Integral_Image(const std::string& test_data_path, Outp
bool
nvidia_NPPST_RectStdDev
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
bool
nvidia_NPPST_RectStdDev
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
{
{
path
=
test_data_path
;
path
=
test_data_path
;
ncvSetDebugOutputHandler
(
devNullOutput
);
ncvSetDebugOutputHandler
(
devNullOutput
);
NCVAutoTestLister
testListerRStdDev
(
"NPPST RectStdDev"
,
outputLevel
);
NCVAutoTestLister
testListerRStdDev
(
"NPPST RectStdDev"
,
outputLevel
);
NCVTestSourceProvider
<
Ncv8u
>
testSrcRandom_8u
(
2010
,
0
,
255
,
4096
,
4096
);
NCVTestSourceProvider
<
Ncv8u
>
testSrcRandom_8u
(
2010
,
0
,
255
,
4096
,
4096
);
generateRectStdDevTests
(
testListerRStdDev
,
testSrcRandom_8u
,
4096
,
4096
);
generateRectStdDevTests
(
testListerRStdDev
,
testSrcRandom_8u
,
4096
,
4096
);
...
@@ -334,7 +334,7 @@ bool nvidia_NPPST_RectStdDev(const std::string& test_data_path, OutputLevel outp
...
@@ -334,7 +334,7 @@ bool nvidia_NPPST_RectStdDev(const std::string& test_data_path, OutputLevel outp
bool
nvidia_NPPST_Resize
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
bool
nvidia_NPPST_Resize
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
{
{
path
=
test_data_path
;
path
=
test_data_path
;
ncvSetDebugOutputHandler
(
devNullOutput
);
ncvSetDebugOutputHandler
(
devNullOutput
);
NCVAutoTestLister
testListerResize
(
"NPPST Resize"
,
outputLevel
);
NCVAutoTestLister
testListerResize
(
"NPPST Resize"
,
outputLevel
);
...
@@ -350,11 +350,11 @@ bool nvidia_NPPST_Resize(const std::string& test_data_path, OutputLevel outputLe
...
@@ -350,11 +350,11 @@ bool nvidia_NPPST_Resize(const std::string& test_data_path, OutputLevel outputLe
bool
nvidia_NPPST_Vector_Operations
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
bool
nvidia_NPPST_Vector_Operations
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
{
{
path
=
test_data_path
;
path
=
test_data_path
;
ncvSetDebugOutputHandler
(
devNullOutput
);
ncvSetDebugOutputHandler
(
devNullOutput
);
NCVAutoTestLister
testListerNPPSTVectorOperations
(
"NPPST Vector Operations"
,
outputLevel
);
NCVAutoTestLister
testListerNPPSTVectorOperations
(
"NPPST Vector Operations"
,
outputLevel
);
NCVTestSourceProvider
<
Ncv32u
>
testSrcRandom_32u
(
2010
,
0
,
0xFFFFFFFF
,
4096
,
4096
);
NCVTestSourceProvider
<
Ncv32u
>
testSrcRandom_32u
(
2010
,
0
,
0xFFFFFFFF
,
4096
,
4096
);
generateNPPSTVectorTests
(
testListerNPPSTVectorOperations
,
testSrcRandom_32u
,
4096
*
4096
);
generateNPPSTVectorTests
(
testListerNPPSTVectorOperations
,
testSrcRandom_32u
,
4096
*
4096
);
...
@@ -364,11 +364,11 @@ bool nvidia_NPPST_Vector_Operations(const std::string& test_data_path, OutputLev
...
@@ -364,11 +364,11 @@ bool nvidia_NPPST_Vector_Operations(const std::string& test_data_path, OutputLev
bool
nvidia_NPPST_Transpose
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
bool
nvidia_NPPST_Transpose
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
{
{
path
=
test_data_path
;
path
=
test_data_path
;
ncvSetDebugOutputHandler
(
devNullOutput
);
ncvSetDebugOutputHandler
(
devNullOutput
);
NCVAutoTestLister
testListerTranspose
(
"NPPST Transpose"
,
outputLevel
);
NCVAutoTestLister
testListerTranspose
(
"NPPST Transpose"
,
outputLevel
);
NCVTestSourceProvider
<
Ncv32u
>
testSrcRandom_32u
(
2010
,
0
,
0xFFFFFFFF
,
4096
,
4096
);
NCVTestSourceProvider
<
Ncv32u
>
testSrcRandom_32u
(
2010
,
0
,
0xFFFFFFFF
,
4096
,
4096
);
NCVTestSourceProvider
<
Ncv64u
>
testSrcRandom_64u
(
2010
,
0
,
-
1
,
4096
,
4096
);
NCVTestSourceProvider
<
Ncv64u
>
testSrcRandom_64u
(
2010
,
0
,
-
1
,
4096
,
4096
);
...
@@ -380,13 +380,13 @@ bool nvidia_NPPST_Transpose(const std::string& test_data_path, OutputLevel outpu
...
@@ -380,13 +380,13 @@ bool nvidia_NPPST_Transpose(const std::string& test_data_path, OutputLevel outpu
bool
nvidia_NCV_Vector_Operations
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
bool
nvidia_NCV_Vector_Operations
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
{
{
path
=
test_data_path
;
path
=
test_data_path
;
ncvSetDebugOutputHandler
(
devNullOutput
);
ncvSetDebugOutputHandler
(
devNullOutput
);
NCVAutoTestLister
testListerVectorOperations
(
"Vector Operations"
,
outputLevel
);
NCVAutoTestLister
testListerVectorOperations
(
"Vector Operations"
,
outputLevel
);
NCVTestSourceProvider
<
Ncv32u
>
testSrcRandom_32u
(
2010
,
0
,
0xFFFFFFFF
,
4096
,
4096
);
NCVTestSourceProvider
<
Ncv32u
>
testSrcRandom_32u
(
2010
,
0
,
0xFFFFFFFF
,
4096
,
4096
);
generateVectorTests
(
testListerVectorOperations
,
testSrcRandom_32u
,
4096
*
4096
);
generateVectorTests
(
testListerVectorOperations
,
testSrcRandom_32u
,
4096
*
4096
);
return
testListerVectorOperations
.
invoke
();
return
testListerVectorOperations
.
invoke
();
...
@@ -394,11 +394,11 @@ bool nvidia_NCV_Vector_Operations(const std::string& test_data_path, OutputLevel
...
@@ -394,11 +394,11 @@ bool nvidia_NCV_Vector_Operations(const std::string& test_data_path, OutputLevel
bool
nvidia_NCV_Haar_Cascade_Loader
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
bool
nvidia_NCV_Haar_Cascade_Loader
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
{
{
path
=
test_data_path
;
path
=
test_data_path
;
ncvSetDebugOutputHandler
(
devNullOutput
);
ncvSetDebugOutputHandler
(
devNullOutput
);
NCVAutoTestLister
testListerHaarLoader
(
"Haar Cascade Loader"
,
outputLevel
);
NCVAutoTestLister
testListerHaarLoader
(
"Haar Cascade Loader"
,
outputLevel
);
generateHaarLoaderTests
(
testListerHaarLoader
);
generateHaarLoaderTests
(
testListerHaarLoader
);
return
testListerHaarLoader
.
invoke
();
return
testListerHaarLoader
.
invoke
();
...
@@ -406,13 +406,13 @@ bool nvidia_NCV_Haar_Cascade_Loader(const std::string& test_data_path, OutputLev
...
@@ -406,13 +406,13 @@ bool nvidia_NCV_Haar_Cascade_Loader(const std::string& test_data_path, OutputLev
bool
nvidia_NCV_Haar_Cascade_Application
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
bool
nvidia_NCV_Haar_Cascade_Application
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
{
{
path
=
test_data_path
;
path
=
test_data_path
;
ncvSetDebugOutputHandler
(
devNullOutput
);
ncvSetDebugOutputHandler
(
devNullOutput
);
NCVAutoTestLister
testListerHaarAppl
(
"Haar Cascade Application"
,
outputLevel
);
NCVAutoTestLister
testListerHaarAppl
(
"Haar Cascade Application"
,
outputLevel
);
NCVTestSourceProvider
<
Ncv8u
>
testSrcFacesVGA_8u
(
path
+
"group_1_640x480_VGA.pgm"
);
NCVTestSourceProvider
<
Ncv8u
>
testSrcFacesVGA_8u
(
path
+
"group_1_640x480_VGA.pgm"
);
generateHaarApplicationTests
(
testListerHaarAppl
,
testSrcFacesVGA_8u
,
1280
,
720
);
generateHaarApplicationTests
(
testListerHaarAppl
,
testSrcFacesVGA_8u
,
1280
,
720
);
return
testListerHaarAppl
.
invoke
();
return
testListerHaarAppl
.
invoke
();
...
@@ -420,11 +420,11 @@ bool nvidia_NCV_Haar_Cascade_Application(const std::string& test_data_path, Outp
...
@@ -420,11 +420,11 @@ bool nvidia_NCV_Haar_Cascade_Application(const std::string& test_data_path, Outp
bool
nvidia_NCV_Hypotheses_Filtration
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
bool
nvidia_NCV_Hypotheses_Filtration
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
{
{
path
=
test_data_path
;
path
=
test_data_path
;
ncvSetDebugOutputHandler
(
devNullOutput
);
ncvSetDebugOutputHandler
(
devNullOutput
);
NCVAutoTestLister
testListerHypFiltration
(
"Hypotheses Filtration"
,
outputLevel
);
NCVAutoTestLister
testListerHypFiltration
(
"Hypotheses Filtration"
,
outputLevel
);
NCVTestSourceProvider
<
Ncv32u
>
testSrcRandom_32u
(
2010
,
0
,
0xFFFFFFFF
,
4096
,
4096
);
NCVTestSourceProvider
<
Ncv32u
>
testSrcRandom_32u
(
2010
,
0
,
0xFFFFFFFF
,
4096
,
4096
);
generateHypothesesFiltrationTests
(
testListerHypFiltration
,
testSrcRandom_32u
,
1024
);
generateHypothesesFiltrationTests
(
testListerHypFiltration
,
testSrcRandom_32u
,
1024
);
...
@@ -434,14 +434,14 @@ bool nvidia_NCV_Hypotheses_Filtration(const std::string& test_data_path, OutputL
...
@@ -434,14 +434,14 @@ bool nvidia_NCV_Hypotheses_Filtration(const std::string& test_data_path, OutputL
bool
nvidia_NCV_Visualization
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
bool
nvidia_NCV_Visualization
(
const
std
::
string
&
test_data_path
,
OutputLevel
outputLevel
)
{
{
path
=
test_data_path
;
path
=
test_data_path
;
ncvSetDebugOutputHandler
(
devNullOutput
);
ncvSetDebugOutputHandler
(
devNullOutput
);
NCVAutoTestLister
testListerVisualize
(
"Visualization"
,
outputLevel
);
NCVAutoTestLister
testListerVisualize
(
"Visualization"
,
outputLevel
);
NCVTestSourceProvider
<
Ncv8u
>
testSrcRandom_8u
(
2010
,
0
,
255
,
4096
,
4096
);
NCVTestSourceProvider
<
Ncv8u
>
testSrcRandom_8u
(
2010
,
0
,
255
,
4096
,
4096
);
NCVTestSourceProvider
<
Ncv32u
>
testSrcRandom_32u
(
2010
,
0
,
0xFFFFFFFF
,
4096
,
4096
);
NCVTestSourceProvider
<
Ncv32u
>
testSrcRandom_32u
(
2010
,
0
,
RAND_MAX
,
4096
,
4096
);
generateDrawRectsTests
(
testListerVisualize
,
testSrcRandom_8u
,
testSrcRandom_32u
,
4096
,
4096
);
generateDrawRectsTests
(
testListerVisualize
,
testSrcRandom_8u
,
testSrcRandom_32u
,
4096
,
4096
);
generateDrawRectsTests
(
testListerVisualize
,
testSrcRandom_32u
,
testSrcRandom_32u
,
4096
,
4096
);
generateDrawRectsTests
(
testListerVisualize
,
testSrcRandom_32u
,
testSrcRandom_32u
,
4096
,
4096
);
...
...
modules/gpu/test/test_nvidia.cpp
View file @
e467ece1
...
@@ -156,7 +156,7 @@ TEST_P(NCV, HypothesesFiltration)
...
@@ -156,7 +156,7 @@ TEST_P(NCV, HypothesesFiltration)
ASSERT_TRUE
(
res
);
ASSERT_TRUE
(
res
);
}
}
TEST_P
(
NCV
,
DISABLED_
Visualization
)
TEST_P
(
NCV
,
Visualization
)
{
{
// this functionality doesn't used in gpu module
// this functionality doesn't used in gpu module
bool
res
=
nvidia_NCV_Visualization
(
path
,
nvidiaTestOutputLevel
);
bool
res
=
nvidia_NCV_Visualization
(
path
,
nvidiaTestOutputLevel
);
...
...
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