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
134ae8e2
Commit
134ae8e2
authored
Jan 19, 2011
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updates protected code testing for gpu HOGDescriptor
parent
186b1fc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
7 deletions
+33
-7
hog.cpp
tests/gpu/src/hog.cpp
+33
-7
No files found.
tests/gpu/src/hog.cpp
View file @
134ae8e2
...
...
@@ -51,9 +51,9 @@ using namespace std;
ts
->
set_failed_test_info
(
err
);
\
return
;
}
struct
CV_GpuHogDetect
ionTest
:
public
CvTest
,
public
cv
::
gpu
::
HOGDescriptor
struct
CV_GpuHogDetect
TestRunner
:
cv
::
gpu
::
HOGDescriptor
{
CV_GpuHogDetect
ionTest
()
:
CvTest
(
"GPU-HOG-detect"
,
"HOGDescriptorDetection"
)
{}
CV_GpuHogDetect
TestRunner
(
CvTS
*
ts_
)
:
ts
(
ts_
)
{}
void
run
(
int
)
{
...
...
@@ -185,13 +185,25 @@ struct CV_GpuHogDetectionTest: public CvTest, public cv::gpu::HOGDescriptor
std
::
ifstream
f
;
#endif
}
gpu_hog_detection_test
;
CvTS
*
ts
;
};
struct
CV_GpuHog
GetDescriptorsTest
:
public
CvTest
,
public
cv
::
gpu
::
HOGDescriptor
struct
CV_GpuHog
DetectTest
:
CvTest
{
CV_GpuHogGetDescriptorsTest
()
:
CvTest
(
"GPU-HOG-getDescriptors"
,
"HOGDescriptorGetDescriptors"
),
HOGDescriptor
(
cv
::
Size
(
64
,
128
))
{}
CV_GpuHogDetectTest
()
:
CvTest
(
"GPU-HogDetectTest"
,
"HOGDescriptor::detect"
)
{}
void
run
(
int
i
)
{
CV_GpuHogDetectTestRunner
runner
(
ts
);
runner
.
run
(
i
);
}
}
CV_GpuHogDetectTest_inst
;
struct
CV_GpuHogGetDescriptorsTestRunner
:
cv
::
gpu
::
HOGDescriptor
{
CV_GpuHogGetDescriptorsTestRunner
(
CvTS
*
ts_
)
:
HOGDescriptor
(
cv
::
Size
(
64
,
128
)),
ts
(
ts_
)
{}
void
run
(
int
)
{
...
...
@@ -303,5 +315,18 @@ struct CV_GpuHogGetDescriptorsTest: public CvTest, public cv::gpu::HOGDescriptor
int
blocks_per_win_x
;
int
blocks_per_win_y
;
int
block_hist_size
;
}
gpu_hog_get_descriptors_test
;
CvTS
*
ts
;
};
struct
CV_GpuHogGetDescriptorsTest
:
CvTest
{
CV_GpuHogGetDescriptorsTest
()
:
CvTest
(
"GPU-HogGetDescriptorsTest"
,
"HOGDescriptor::getDescriptors"
)
{}
void
run
(
int
i
)
{
CV_GpuHogGetDescriptorsTestRunner
runner
(
ts
);
runner
.
run
(
i
);
}
}
CV_GpuHogGetDescriptorsTest_inst
;
\ No newline at end of file
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