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
40959fcc
Commit
40959fcc
authored
Jan 18, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13637 from berak:fix_openvx
parents
55770c98
53c2ebf7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
openvx_hal.cpp
3rdparty/openvx/hal/openvx_hal.cpp
+2
-2
ivx.hpp
3rdparty/openvx/include/ivx.hpp
+2
-3
median_blur.cpp
modules/imgproc/src/median_blur.cpp
+2
-0
No files found.
3rdparty/openvx/hal/openvx_hal.cpp
View file @
40959fcc
...
@@ -188,8 +188,8 @@ int ovx_hal_mul(const T *a, size_t astep, const T *b, size_t bstep, T *c, size_t
...
@@ -188,8 +188,8 @@ int ovx_hal_mul(const T *a, size_t astep, const T *b, size_t bstep, T *c, size_t
refineStep
(
w
,
h
,
ivx
::
TypeToEnum
<
T
>::
imgType
,
astep
);
refineStep
(
w
,
h
,
ivx
::
TypeToEnum
<
T
>::
imgType
,
astep
);
refineStep
(
w
,
h
,
ivx
::
TypeToEnum
<
T
>::
imgType
,
bstep
);
refineStep
(
w
,
h
,
ivx
::
TypeToEnum
<
T
>::
imgType
,
bstep
);
refineStep
(
w
,
h
,
ivx
::
TypeToEnum
<
T
>::
imgType
,
cstep
);
refineStep
(
w
,
h
,
ivx
::
TypeToEnum
<
T
>::
imgType
,
cstep
);
#ifdef _
MSC_VER
#ifdef _
WIN32
const
float
MAGIC_SCALE
=
0x0
.01010102
;
const
float
MAGIC_SCALE
=
0x0
.01010102
p0
;
#else
#else
const
float
MAGIC_SCALE
=
0x1
.010102
p
-
8
;
const
float
MAGIC_SCALE
=
0x1
.010102
p
-
8
;
#endif
#endif
...
...
3rdparty/openvx/include/ivx.hpp
View file @
40959fcc
...
@@ -1718,8 +1718,7 @@ static const vx_enum
...
@@ -1718,8 +1718,7 @@ static const vx_enum
}
}
#ifdef IVX_USE_OPENCV
#ifdef IVX_USE_OPENCV
/// Convert image format (fourcc) to cv::Mat type
/// Convert image format (fourcc) to cv::Mat type, throws WrapperError if not possible
/// \return CV_USRTYPE1 for unknown image formats
static
int
formatToMatType
(
vx_df_image
format
,
vx_uint32
planeIdx
=
0
)
static
int
formatToMatType
(
vx_df_image
format
,
vx_uint32
planeIdx
=
0
)
{
{
switch
(
format
)
switch
(
format
)
...
@@ -1739,7 +1738,7 @@ static const vx_enum
...
@@ -1739,7 +1738,7 @@ static const vx_enum
case
VX_DF_IMAGE_YUYV
:
return
CV_8UC2
;
case
VX_DF_IMAGE_YUYV
:
return
CV_8UC2
;
case
VX_DF_IMAGE_NV12
:
case
VX_DF_IMAGE_NV12
:
case
VX_DF_IMAGE_NV21
:
return
planeIdx
==
0
?
CV_8UC1
:
CV_8UC2
;
case
VX_DF_IMAGE_NV21
:
return
planeIdx
==
0
?
CV_8UC1
:
CV_8UC2
;
default
:
return
CV_USRTYPE1
;
default
:
throw
WrapperError
(
std
::
string
(
__func__
)
+
"(): unsupported image format"
)
;
}
}
}
}
...
...
modules/imgproc/src/median_blur.cpp
View file @
40959fcc
...
@@ -990,9 +990,11 @@ static bool ocl_medianFilter(InputArray _src, OutputArray _dst, int m)
...
@@ -990,9 +990,11 @@ static bool ocl_medianFilter(InputArray _src, OutputArray _dst, int m)
#endif
#endif
#ifdef HAVE_OPENVX
#ifdef HAVE_OPENVX
}
// close anonymous namespace #13634
namespace
ovx
{
namespace
ovx
{
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_MEDIAN_3x3
>
(
int
w
,
int
h
)
{
return
w
*
h
<
1280
*
720
;
}
template
<>
inline
bool
skipSmallImages
<
VX_KERNEL_MEDIAN_3x3
>
(
int
w
,
int
h
)
{
return
w
*
h
<
1280
*
720
;
}
}
}
namespace
{
// reopen it
static
bool
openvx_medianFilter
(
InputArray
_src
,
OutputArray
_dst
,
int
ksize
)
static
bool
openvx_medianFilter
(
InputArray
_src
,
OutputArray
_dst
,
int
ksize
)
{
{
if
(
_src
.
type
()
!=
CV_8UC1
||
_dst
.
type
()
!=
CV_8U
if
(
_src
.
type
()
!=
CV_8UC1
||
_dst
.
type
()
!=
CV_8U
...
...
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