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
0f1a56da
Commit
0f1a56da
authored
Mar 29, 2017
by
Vitaly Tuzov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed restrictions for OpenVX HAL calls on small images
parent
bf62dca4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
openvx_hal.cpp
3rdparty/openvx/hal/openvx_hal.cpp
+4
-3
ovx_defs.hpp
modules/core/include/opencv2/core/openvx/ovx_defs.hpp
+4
-4
deriv.cpp
modules/imgproc/src/deriv.cpp
+2
-2
No files found.
3rdparty/openvx/hal/openvx_hal.cpp
View file @
0f1a56da
...
...
@@ -82,9 +82,10 @@ inline bool dimTooBig(int size)
}
//OpenVX calls have essential overhead so it make sense to skip them for small images
template
<
int
kernel_id
>
inline
bool
skipSmallImages
(
int
w
,
int
h
)
{
return
w
*
h
<
7680
*
4320
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_MULTIPLY
>
(
int
w
,
int
h
)
{
return
w
*
h
<
640
*
480
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_COLOR_CONVERT
>
(
int
w
,
int
h
)
{
return
w
*
h
<
2048
*
1536
;
}
template
<
int
kernel_id
>
inline
bool
skipSmallImages
(
int
w
,
int
h
)
{
return
w
*
h
<
7680
*
4320
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_MULTIPLY
>
(
int
w
,
int
h
)
{
return
w
*
h
<
640
*
480
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_COLOR_CONVERT
>
(
int
w
,
int
h
)
{
return
w
*
h
<
2048
*
1536
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_INTEGRAL_IMAGE
>
(
int
w
,
int
h
)
{
return
w
*
h
<
640
*
480
;
}
inline
void
setConstantBorder
(
ivx
::
border_t
&
border
,
vx_uint8
val
)
{
...
...
modules/core/include/opencv2/core/openvx/ovx_defs.hpp
View file @
0f1a56da
...
...
@@ -28,11 +28,11 @@ CV_EXPORTS_W ivx::Context& getOpenVXContext();
template
<
int
kernel_id
>
inline
bool
skipSmallImages
(
int
w
,
int
h
)
{
return
w
*
h
<
3840
*
2160
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_MINMAXLOC
>
(
int
w
,
int
h
)
{
return
w
*
h
<
3840
*
2160
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_MEDIAN_3x3
>
(
int
w
,
int
h
)
{
return
w
*
h
<
1280
*
720
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_GAUSSIAN_3x3
>
(
int
w
,
int
h
)
{
return
w
*
h
<
1280
*
72
0
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_BOX_3x3
>
(
int
w
,
int
h
)
{
return
w
*
h
<
1920
*
10
80
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_GAUSSIAN_3x3
>
(
int
w
,
int
h
)
{
return
w
*
h
<
320
*
24
0
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_BOX_3x3
>
(
int
w
,
int
h
)
{
return
w
*
h
<
640
*
4
80
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_HISTOGRAM
>
(
int
w
,
int
h
)
{
return
w
*
h
<
2048
*
1536
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_SOBEL_3x3
>
(
int
w
,
int
h
)
{
return
w
*
h
<
1280
*
72
0
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_CUSTOM_CONVOLUTION
>
(
int
w
,
int
h
)
{
return
w
*
h
<
1280
*
72
0
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_SOBEL_3x3
>
(
int
w
,
int
h
)
{
return
w
*
h
<
320
*
24
0
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_CUSTOM_CONVOLUTION
>
(
int
w
,
int
h
)
{
return
w
*
h
<
640
*
48
0
;
}
}}
...
...
modules/imgproc/src/deriv.cpp
View file @
0f1a56da
...
...
@@ -234,8 +234,8 @@ namespace cv
border
=
VX_BORDER_CONSTANT
;
break
;
case
BORDER_REPLICATE
:
border
=
VX_BORDER_REPLICATE
;
break
;
//
border = VX_BORDER_REPLICATE;
//
break;
default
:
return
false
;
}
...
...
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