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
e435674a
Commit
e435674a
authored
Oct 11, 2012
by
Daniil Osokin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added perf test for gabor filter
parent
f1e025dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletion
+32
-1
perf_filter2d.cpp
modules/imgproc/perf/perf_filter2d.cpp
+32
-1
No files found.
modules/imgproc/perf/perf_filter2d.cpp
View file @
e435674a
...
...
@@ -11,7 +11,7 @@ using std::tr1::get;
CV_ENUM
(
BorderMode
,
BORDER_CONSTANT
,
BORDER_REPLICATE
,
BORDER_REFLECT_101
);
typedef
TestBaseWithParam
<
tr1
::
tuple
<
Size
,
int
,
BorderMode
>
>
TestFilter2d
;
typedef
TestBaseWithParam
<
tr1
::
tuple
<
String
,
int
>
>
Image_KernelSize
;
PERF_TEST_P
(
TestFilter2d
,
Filter2d
,
Combine
(
...
...
@@ -42,4 +42,35 @@ PERF_TEST_P( TestFilter2d, Filter2d,
SANITY_CHECK
(
dst
);
}
PERF_TEST_P
(
Image_KernelSize
,
GaborFilter2d
,
Combine
(
Values
(
"stitching/a1.png"
,
"cv/shared/pic5.png"
),
Values
(
16
,
32
,
64
)
)
)
{
String
fileName
=
getDataPath
(
get
<
0
>
(
GetParam
()));
Mat
sourceImage
=
imread
(
fileName
,
IMREAD_GRAYSCALE
);
if
(
sourceImage
.
empty
()
)
{
FAIL
()
<<
"Unable to load source image"
<<
fileName
;
}
int
kernelSize
=
get
<
1
>
(
GetParam
());
double
sigma
=
4
;
double
lambda
=
11
;
double
theta
=
47
;
double
gamma
=
0.5
;
Mat
gaborKernel
=
getGaborKernel
(
Size
(
kernelSize
,
kernelSize
),
sigma
,
theta
,
lambda
,
gamma
);
Mat
filteredImage
;
declare
.
in
(
sourceImage
);
TEST_CYCLE
()
{
filter2D
(
sourceImage
,
filteredImage
,
CV_32F
,
gaborKernel
);
}
SANITY_CHECK
(
filteredImage
);
}
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