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
b2f851af
Commit
b2f851af
authored
Jan 12, 2015
by
Ilya Lavrenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cornerMinEigenVal
parent
d87457a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
3 deletions
+30
-3
corner.cpp
modules/imgproc/src/corner.cpp
+30
-1
smooth.cpp
modules/imgproc/src/smooth.cpp
+0
-2
No files found.
modules/imgproc/src/corner.cpp
View file @
b2f851af
...
...
@@ -12,7 +12,7 @@
//
// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
// Copyright (C) 2014, Itseez Inc., all rights reserved.
// Copyright (C) 2014
-2015
, Itseez Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
...
...
@@ -271,6 +271,8 @@ cornerEigenValsVecs( const Mat& src, Mat& eigenv, int block_size,
#ifdef HAVE_TEGRA_OPTIMIZATION
if
(
tegra
::
cornerEigenValsVecs
(
src
,
eigenv
,
block_size
,
aperture_size
,
op_type
,
k
,
borderType
))
return
;
#elif CV_SSE2
bool
haveSSE2
=
checkHardwareSupport
(
CV_CPU_SSE2
);
#endif
int
depth
=
src
.
depth
();
...
...
@@ -319,6 +321,33 @@ cornerEigenValsVecs( const Mat& src, Mat& eigenv, int block_size,
vst3q_f32
(
cov_data
+
j
*
3
,
v_dst
);
}
#elif CV_SSE2
if
(
haveSSE2
)
{
for
(
;
j
<=
size
.
width
-
8
;
j
+=
8
)
{
__m128
v_dx_0
=
_mm_loadu_ps
(
dxdata
+
j
);
__m128
v_dx_1
=
_mm_loadu_ps
(
dxdata
+
j
+
4
);
__m128
v_dy_0
=
_mm_loadu_ps
(
dydata
+
j
);
__m128
v_dy_1
=
_mm_loadu_ps
(
dydata
+
j
+
4
);
__m128
v_dx2_0
=
_mm_mul_ps
(
v_dx_0
,
v_dx_0
);
__m128
v_dxy_0
=
_mm_mul_ps
(
v_dx_0
,
v_dy_0
);
__m128
v_dy2_0
=
_mm_mul_ps
(
v_dy_0
,
v_dy_0
);
__m128
v_dx2_1
=
_mm_mul_ps
(
v_dx_1
,
v_dx_1
);
__m128
v_dxy_1
=
_mm_mul_ps
(
v_dx_1
,
v_dy_1
);
__m128
v_dy2_1
=
_mm_mul_ps
(
v_dy_1
,
v_dy_1
);
_mm_interleave_ps
(
v_dx2_0
,
v_dx2_1
,
v_dxy_0
,
v_dxy_1
,
v_dy2_0
,
v_dy2_1
);
_mm_storeu_ps
(
cov_data
+
j
*
3
,
v_dx2_0
);
_mm_storeu_ps
(
cov_data
+
j
*
3
+
4
,
v_dx2_1
);
_mm_storeu_ps
(
cov_data
+
j
*
3
+
8
,
v_dxy_0
);
_mm_storeu_ps
(
cov_data
+
j
*
3
+
12
,
v_dxy_1
);
_mm_storeu_ps
(
cov_data
+
j
*
3
+
16
,
v_dy2_0
);
_mm_storeu_ps
(
cov_data
+
j
*
3
+
20
,
v_dy2_1
);
}
}
#endif
for
(
;
j
<
size
.
width
;
j
++
)
...
...
modules/imgproc/src/smooth.cpp
View file @
b2f851af
...
...
@@ -736,8 +736,6 @@ struct ColumnSum<int, int> :
bool
haveScale
=
scale
!=
1
;
double
_scale
=
scale
;
printf
(
"bgfbffbbfg
\n
"
);
#if CV_SSE2
bool
haveSSE2
=
checkHardwareSupport
(
CV_CPU_SSE2
);
#endif
...
...
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