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
4f5d5851
Commit
4f5d5851
authored
Dec 04, 2015
by
Vitaly Tuzov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update call to Tegra optimized morphology filtering
parent
c01fd162
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
morph.cpp
modules/imgproc/src/morph.cpp
+11
-8
No files found.
modules/imgproc/src/morph.cpp
View file @
4f5d5851
...
@@ -584,19 +584,11 @@ typedef MorphFVec<VMax32f> DilateVec32f;
...
@@ -584,19 +584,11 @@ typedef MorphFVec<VMax32f> DilateVec32f;
#else
#else
#ifdef HAVE_TEGRA_OPTIMIZATION
using
tegra
::
ErodeRowVec8u
;
using
tegra
::
DilateRowVec8u
;
using
tegra
::
ErodeColumnVec8u
;
using
tegra
::
DilateColumnVec8u
;
#else
typedef
MorphRowNoVec
ErodeRowVec8u
;
typedef
MorphRowNoVec
ErodeRowVec8u
;
typedef
MorphRowNoVec
DilateRowVec8u
;
typedef
MorphRowNoVec
DilateRowVec8u
;
typedef
MorphColumnNoVec
ErodeColumnVec8u
;
typedef
MorphColumnNoVec
ErodeColumnVec8u
;
typedef
MorphColumnNoVec
DilateColumnVec8u
;
typedef
MorphColumnNoVec
DilateColumnVec8u
;
#endif
typedef
MorphRowNoVec
ErodeRowVec16u
;
typedef
MorphRowNoVec
ErodeRowVec16u
;
typedef
MorphRowNoVec
DilateRowVec16u
;
typedef
MorphRowNoVec
DilateRowVec16u
;
...
@@ -1114,6 +1106,17 @@ public:
...
@@ -1114,6 +1106,17 @@ public:
Mat
srcStripe
=
src
.
rowRange
(
row0
,
row1
);
Mat
srcStripe
=
src
.
rowRange
(
row0
,
row1
);
Mat
dstStripe
=
dst
.
rowRange
(
row0
,
row1
);
Mat
dstStripe
=
dst
.
rowRange
(
row0
,
row1
);
#if defined HAVE_TEGRA_OPTIMIZATION
//Iterative separable filters are converted to single iteration filters
//But anyway check that we really get 1 iteration prior to processing
if
(
countNonZero
(
kernel
)
==
kernel
.
rows
*
kernel
.
cols
&&
iterations
==
1
&&
src
.
depth
()
==
CV_8U
&&
(
op
==
MORPH_ERODE
||
op
==
MORPH_DILATE
)
&&
tegra
::
morphology
(
srcStripe
,
dstStripe
,
op
,
kernel
,
anchor
,
rowBorderType
,
columnBorderType
,
borderValue
)
)
return
;
#endif
Ptr
<
FilterEngine
>
f
=
createMorphologyFilter
(
op
,
src
.
type
(),
kernel
,
anchor
,
Ptr
<
FilterEngine
>
f
=
createMorphologyFilter
(
op
,
src
.
type
(),
kernel
,
anchor
,
rowBorderType
,
columnBorderType
,
borderValue
);
rowBorderType
,
columnBorderType
,
borderValue
);
...
...
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