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
95d659a3
Commit
95d659a3
authored
Dec 27, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored Tegra related macro usage
parent
4fee5ef8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
17 deletions
+5
-17
morph.cpp
modules/imgproc/src/morph.cpp
+4
-4
sumpixels.cpp
modules/imgproc/src/sumpixels.cpp
+1
-13
No files found.
modules/imgproc/src/morph.cpp
View file @
95d659a3
...
@@ -585,11 +585,11 @@ struct MorphNoVec
...
@@ -585,11 +585,11 @@ struct MorphNoVec
};
};
#ifdef HAVE_TEGRA_OPTIMIZATION
#ifdef HAVE_TEGRA_OPTIMIZATION
typedef
tegra
::
MorphRowIVec
<
tegra
::
VMin8u
>
ErodeRowVec8u
;
using
tegra
::
ErodeRowVec8u
;
typedef
tegra
::
MorphRowIVec
<
tegra
::
VMax8u
>
DilateRowVec8u
;
using
tegra
::
DilateRowVec8u
;
typedef
tegra
::
MorphColumnIVec
<
tegra
::
VMin8u
>
ErodeColumnVec8u
;
using
tegra
::
ErodeColumnVec8u
;
typedef
tegra
::
MorphColumnIVec
<
tegra
::
VMax8u
>
DilateColumnVec8u
;
using
tegra
::
DilateColumnVec8u
;
#else
#else
typedef
MorphRowNoVec
ErodeRowVec8u
;
typedef
MorphRowNoVec
ErodeRowVec8u
;
typedef
MorphRowNoVec
DilateRowVec8u
;
typedef
MorphRowNoVec
DilateRowVec8u
;
...
...
modules/imgproc/src/sumpixels.cpp
View file @
95d659a3
...
@@ -211,19 +211,7 @@ void integral_##suffix( T* src, size_t srcstep, ST* sum, size_t sumstep, QT* sqs
...
@@ -211,19 +211,7 @@ void integral_##suffix( T* src, size_t srcstep, ST* sum, size_t sumstep, QT* sqs
ST* tilted, size_t tiltedstep, Size size, int cn ) \
ST* tilted, size_t tiltedstep, Size size, int cn ) \
{ integral_(src, srcstep, sum, sumstep, sqsum, sqsumstep, tilted, tiltedstep, size, cn); }
{ integral_(src, srcstep, sum, sumstep, sqsum, sqsumstep, tilted, tiltedstep, size, cn); }
#ifdef HAVE_TEGRA_OPTIMIZATION
DEF_INTEGRAL_FUNC
(
8u32
sOCV
,
uchar
,
int
,
double
)
void
integral_8u32s
(
uchar
*
src
,
size_t
srcstep
,
int
*
sum
,
size_t
sumstep
,
double
*
sqsum
,
size_t
sqsumstep
,
int
*
tilted
,
size_t
tiltedstep
,
Size
size
,
int
cn
)
{
if
(
tegra
::
integral_8u32s
(
src
,
srcstep
,
sum
,
sumstep
,
sqsum
,
sqsumstep
,
tilted
,
tiltedstep
,
size
,
cn
))
return
;
integral_8u32sOCV
(
src
,
srcstep
,
sum
,
sumstep
,
sqsum
,
sqsumstep
,
tilted
,
tiltedstep
,
size
,
cn
);
}
#else
DEF_INTEGRAL_FUNC
(
8u32
s
,
uchar
,
int
,
double
)
DEF_INTEGRAL_FUNC
(
8u32
s
,
uchar
,
int
,
double
)
#endif
DEF_INTEGRAL_FUNC
(
8u32
f
,
uchar
,
float
,
double
)
DEF_INTEGRAL_FUNC
(
8u32
f
,
uchar
,
float
,
double
)
DEF_INTEGRAL_FUNC
(
8u64
f
,
uchar
,
double
,
double
)
DEF_INTEGRAL_FUNC
(
8u64
f
,
uchar
,
double
,
double
)
DEF_INTEGRAL_FUNC
(
32
f
,
float
,
float
,
double
)
DEF_INTEGRAL_FUNC
(
32
f
,
float
,
float
,
double
)
...
@@ -264,7 +252,7 @@ void cv::integral( InputArray _src, OutputArray _sum, OutputArray _sqsum, Output
...
@@ -264,7 +252,7 @@ void cv::integral( InputArray _src, OutputArray _sum, OutputArray _sqsum, Output
IntegralFunc
func
=
0
;
IntegralFunc
func
=
0
;
if
(
depth
==
CV_8U
&&
sdepth
==
CV_32S
)
if
(
depth
==
CV_8U
&&
sdepth
==
CV_32S
)
func
=
(
IntegralFunc
)
integral_8u32s
;
func
=
(
IntegralFunc
)
GET_OPTIMIZED
(
integral_8u32s
)
;
else
if
(
depth
==
CV_8U
&&
sdepth
==
CV_32F
)
else
if
(
depth
==
CV_8U
&&
sdepth
==
CV_32F
)
func
=
(
IntegralFunc
)
integral_8u32f
;
func
=
(
IntegralFunc
)
integral_8u32f
;
else
if
(
depth
==
CV_8U
&&
sdepth
==
CV_64F
)
else
if
(
depth
==
CV_8U
&&
sdepth
==
CV_64F
)
...
...
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