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
2c0c887f
Commit
2c0c887f
authored
Apr 03, 2014
by
Ilya Lavrenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cv::accumulateWeighted
parent
5ddff235
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
accum.cpp
modules/imgproc/src/accum.cpp
+33
-0
No files found.
modules/imgproc/src/accum.cpp
View file @
2c0c887f
...
...
@@ -512,6 +512,39 @@ void cv::accumulateWeighted( InputArray _src, InputOutputArray _dst,
Mat
src
=
_src
.
getMat
(),
dst
=
_dst
.
getMat
(),
mask
=
_mask
.
getMat
();
#ifdef HAVE_IPP
typedef
IppStatus
(
CV_STDCALL
*
ippiAddWeighted
)(
const
void
*
pSrc
,
int
srcStep
,
Ipp32f
*
pSrcDst
,
int
srcdstStep
,
IppiSize
roiSize
,
Ipp32f
alpha
);
typedef
IppStatus
(
CV_STDCALL
*
ippiAddWeightedMask
)(
const
void
*
pSrc
,
int
srcStep
,
const
Ipp8u
*
pMask
,
int
maskStep
,
Ipp32f
*
pSrcDst
,
int
srcDstStep
,
IppiSize
roiSize
,
Ipp32f
alpha
);
ippiAddWeighted
ippFunc
=
0
;
ippiAddWeightedMask
ippFuncMask
=
0
;
if
(
mask
.
empty
())
{
ippFunc
=
sdepth
==
CV_8U
&&
ddepth
==
CV_32F
?
(
ippiAddWeighted
)
ippiAddWeighted_8u32f_C1IR
:
sdepth
==
CV_16U
&&
ddepth
==
CV_32F
?
(
ippiAddWeighted
)
ippiAddWeighted_16u32f_C1IR
:
sdepth
==
CV_32F
&&
ddepth
==
CV_32F
?
(
ippiAddWeighted
)
ippiAddWeighted_32f_C1IR
:
0
;
}
else
{
ippFuncMask
=
sdepth
==
CV_8U
&&
ddepth
==
CV_32F
?
(
ippiAddWeightedMask
)
ippiAddWeighted_8u32f_C1IMR
:
sdepth
==
CV_16U
&&
ddepth
==
CV_32F
?
(
ippiAddWeightedMask
)
ippiAddWeighted_16u32f_C1IMR
:
sdepth
==
CV_32F
&&
ddepth
==
CV_32F
?
(
ippiAddWeightedMask
)
ippiAddWeighted_32f_C1IMR
:
0
;
}
if
(
ippFunc
||
ippFuncMask
)
{
IppStatus
status
=
ippStsNoErr
;
if
(
mask
.
empty
())
status
=
ippFunc
(
src
.
data
,
(
int
)
src
.
step
,
(
Ipp32f
*
)
dst
.
data
,
(
int
)
dst
.
step
,
ippiSize
(
src
.
cols
*
scn
,
src
.
rows
),
(
Ipp32f
)
alpha
);
else
status
=
ippFuncMask
(
src
.
data
,
(
int
)
src
.
step
,
(
Ipp8u
*
)
mask
.
data
,
(
int
)
mask
.
step
,
(
Ipp32f
*
)
dst
.
data
,
(
int
)
dst
.
step
,
ippiSize
(
src
.
cols
*
scn
,
src
.
rows
),
(
Ipp32f
)
alpha
);
if
(
status
==
ippStsNoErr
)
return
;
}
#endif
int
fidx
=
getAccTabIdx
(
sdepth
,
ddepth
);
AccWFunc
func
=
fidx
>=
0
?
accWTab
[
fidx
]
:
0
;
CV_Assert
(
func
!=
0
);
...
...
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