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
9c22d488
Commit
9c22d488
authored
Dec 20, 2013
by
Leszek Swirski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imgproc: IPP compilation fix and minor cleanup
parent
b4bd5bab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
43 deletions
+27
-43
deriv.cpp
modules/imgproc/src/deriv.cpp
+1
-1
sumpixels.cpp
modules/imgproc/src/sumpixels.cpp
+26
-42
No files found.
modules/imgproc/src/deriv.cpp
View file @
9c22d488
...
...
@@ -472,7 +472,7 @@ void cv::Scharr( InputArray _src, OutputArray _dst, int ddepth, int dx, int dy,
#endif
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
if
(
dx
<
2
&&
dy
<
2
&&
src
.
channels
()
==
1
&&
borderType
==
1
)
if
(
dx
<
2
&&
dy
<
2
&&
_
src
.
channels
()
==
1
&&
borderType
==
1
)
{
Mat
src
=
_src
.
getMat
(),
dst
=
_dst
.
getMat
();
if
(
IPPDerivScharr
(
src
,
dst
,
ddepth
,
dx
,
dy
,
scale
))
...
...
modules/imgproc/src/sumpixels.cpp
View file @
9c22d488
...
...
@@ -350,62 +350,46 @@ void cv::integral( InputArray _src, OutputArray _sum, OutputArray _sqsum, Output
}
}
Size
ssize
=
_src
.
size
(),
isize
(
ssize
.
width
+
1
,
ssize
.
height
+
1
);
_sum
.
create
(
isize
,
CV_MAKETYPE
(
sdepth
,
cn
)
);
Mat
src
=
_src
.
getMat
(),
sum
=
_sum
.
getMat
(),
sqsum
,
tilted
;
if
(
_sqsum
.
needed
()
)
{
_sqsum
.
create
(
isize
,
CV_MAKETYPE
(
sqdepth
,
cn
)
);
sqsum
=
_sqsum
.
getMat
();
};
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
if
(
(
depth
==
CV_8U
)
&&
(
!
_tilted
.
needed
()
)
)
if
(
(
depth
==
CV_8U
)
&&
(
sdepth
==
CV_32F
||
sdepth
==
CV_32S
)
&&
(
!
_tilted
.
needed
()
)
&&
(
!
_sqsum
.
needed
()
||
sqdepth
==
CV_64F
)
&&
(
cn
==
1
)
)
{
IppiSize
srcRoiSize
=
ippiSize
(
src
.
cols
,
src
.
rows
);
if
(
sdepth
==
CV_32F
)
{
if
(
cn
==
1
)
if
(
_sqsum
.
needed
()
)
{
IppiSize
srcRoiSize
=
ippiSize
(
src
.
cols
,
src
.
rows
);
_sum
.
create
(
isize
,
CV_MAKETYPE
(
sdepth
,
cn
)
);
sum
=
_sum
.
getMat
();
if
(
_sqsum
.
needed
()
&&
sqdepth
==
CV_64F
)
{
_sqsum
.
create
(
isize
,
CV_MAKETYPE
(
sqdepth
,
cn
)
);
sqsum
=
_sqsum
.
getMat
();
ippiSqrIntegral_8u32f64f_C1R
(
(
const
Ipp8u
*
)
src
.
data
,
(
int
)
src
.
step
,
(
Ipp32f
*
)
sum
.
data
,
(
int
)
sum
.
step
,
(
Ipp64f
*
)
sqsum
.
data
,
(
int
)
sqsum
.
step
,
srcRoiSize
,
0
,
0
);
}
else
{
ippiIntegral_8u32f_C1R
(
(
const
Ipp8u
*
)
src
.
data
,
(
int
)
src
.
step
,
(
Ipp32f
*
)
sum
.
data
,
(
int
)
sum
.
step
,
srcRoiSize
,
0
);
}
return
;
ippiSqrIntegral_8u32f64f_C1R
(
(
const
Ipp8u
*
)
src
.
data
,
(
int
)
src
.
step
,
(
Ipp32f
*
)
sum
.
data
,
(
int
)
sum
.
step
,
(
Ipp64f
*
)
sqsum
.
data
,
(
int
)
sqsum
.
step
,
srcRoiSize
,
0
,
0
);
}
else
{
ippiIntegral_8u32f_C1R
(
(
const
Ipp8u
*
)
src
.
data
,
(
int
)
src
.
step
,
(
Ipp32f
*
)
sum
.
data
,
(
int
)
sum
.
step
,
srcRoiSize
,
0
);
}
}
if
(
sdepth
==
CV_32S
)
else
if
(
sdepth
==
CV_32S
)
{
if
(
cn
==
1
)
if
(
_sqsum
.
needed
()
)
{
IppiSize
srcRoiSize
=
ippiSize
(
src
.
cols
,
src
.
rows
);
_sum
.
create
(
isize
,
CV_MAKETYPE
(
sdepth
,
cn
)
);
sum
=
_sum
.
getMat
();
if
(
_sqsum
.
needed
()
&&
sqdepth
==
CV_64F
)
{
_sqsum
.
create
(
isize
,
CV_MAKETYPE
(
sqdepth
,
cn
)
);
sqsum
=
_sqsum
.
getMat
();
ippiSqrIntegral_8u32s64f_C1R
(
(
const
Ipp8u
*
)
src
.
data
,
(
int
)
src
.
step
,
(
Ipp32s
*
)
sum
.
data
,
(
int
)
sum
.
step
,
(
Ipp64f
*
)
sqsum
.
data
,
(
int
)
sqsum
.
step
,
srcRoiSize
,
0
,
0
);
}
else
{
ippiIntegral_8u32s_C1R
(
(
const
Ipp8u
*
)
src
.
data
,
(
int
)
src
.
step
,
(
Ipp32s
*
)
sum
.
data
,
(
int
)
sum
.
step
,
srcRoiSize
,
0
);
}
return
;
ippiSqrIntegral_8u32s64f_C1R
(
(
const
Ipp8u
*
)
src
.
data
,
(
int
)
src
.
step
,
(
Ipp32s
*
)
sum
.
data
,
(
int
)
sum
.
step
,
(
Ipp64f
*
)
sqsum
.
data
,
(
int
)
sqsum
.
step
,
srcRoiSize
,
0
,
0
);
}
else
{
ippiIntegral_8u32s_C1R
(
(
const
Ipp8u
*
)
src
.
data
,
(
int
)
src
.
step
,
(
Ipp32s
*
)
sum
.
data
,
(
int
)
sum
.
step
,
srcRoiSize
,
0
);
}
}
return
;
}
#endif
Size
ssize
=
_src
.
size
(),
isize
(
ssize
.
width
+
1
,
ssize
.
height
+
1
);
_sum
.
create
(
isize
,
CV_MAKETYPE
(
sdepth
,
cn
)
);
Mat
src
=
_src
.
getMat
(),
sum
=
_sum
.
getMat
(),
sqsum
,
tilted
;
if
(
_sqsum
.
needed
()
)
{
_sqsum
.
create
(
isize
,
CV_MAKETYPE
(
sqdepth
,
cn
)
);
sqsum
=
_sqsum
.
getMat
();
}
if
(
_tilted
.
needed
()
)
{
_tilted
.
create
(
isize
,
CV_MAKETYPE
(
sdepth
,
cn
)
);
...
...
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