Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
f529a1df
Commit
f529a1df
authored
Dec 15, 2015
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed HAL headers location
parent
fc5be800
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
14 deletions
+17
-14
dictionary.cpp
modules/aruco/src/dictionary.cpp
+4
-4
motempl.cpp
modules/optflow/src/motempl.cpp
+2
-1
sift.cpp
modules/xfeatures2d/src/sift.cpp
+7
-6
fgs_filter.cpp
modules/ximgproc/src/fgs_filter.cpp
+1
-1
precomp.hpp
modules/ximgproc/src/precomp.hpp
+0
-0
sparse_match_interpolators.cpp
modules/ximgproc/src/sparse_match_interpolators.cpp
+2
-1
grayworld_white_balance.cpp
modules/xphoto/src/grayworld_white_balance.cpp
+1
-1
No files found.
modules/aruco/src/dictionary.cpp
View file @
f529a1df
...
...
@@ -41,7 +41,7 @@ the use of this software, even if advised of the possibility of such damage.
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include "predefined_dictionaries.hpp"
#include "opencv2/core/hal/hal.hpp"
namespace
cv
{
namespace
aruco
{
...
...
@@ -77,7 +77,7 @@ bool Dictionary::identify(const Mat &onlyBits, int &idx, int &rotation,
int
currentMinDistance
=
markerSize
*
markerSize
+
1
;
int
currentRotation
=
-
1
;
for
(
unsigned
int
r
=
0
;
r
<
4
;
r
++
)
{
int
currentHamming
=
hal
::
normHamming
(
int
currentHamming
=
cv
::
hal
::
normHamming
(
bytesList
.
ptr
(
m
)
+
r
*
candidateBytes
.
cols
,
candidateBytes
.
ptr
(),
candidateBytes
.
cols
);
...
...
@@ -112,7 +112,7 @@ int Dictionary::getDistanceToId(InputArray bits, int id, bool allRotations) cons
Mat
candidateBytes
=
getByteListFromBits
(
bits
.
getMat
());
int
currentMinDistance
=
int
(
bits
.
total
()
*
bits
.
total
());
for
(
unsigned
int
r
=
0
;
r
<
nRotations
;
r
++
)
{
int
currentHamming
=
hal
::
normHamming
(
int
currentHamming
=
cv
::
hal
::
normHamming
(
bytesList
.
ptr
(
id
)
+
r
*
candidateBytes
.
cols
,
candidateBytes
.
ptr
(),
candidateBytes
.
cols
);
...
...
@@ -331,7 +331,7 @@ static int _getSelfDistance(const Mat &marker) {
Mat
bytes
=
Dictionary
::
getByteListFromBits
(
marker
);
int
minHamming
=
(
int
)
marker
.
total
()
+
1
;
for
(
int
r
=
1
;
r
<
4
;
r
++
)
{
int
currentHamming
=
hal
::
normHamming
(
bytes
.
ptr
(),
bytes
.
ptr
()
+
bytes
.
cols
*
r
,
bytes
.
cols
);
int
currentHamming
=
cv
::
hal
::
normHamming
(
bytes
.
ptr
(),
bytes
.
ptr
()
+
bytes
.
cols
*
r
,
bytes
.
cols
);
if
(
currentHamming
<
minHamming
)
minHamming
=
currentHamming
;
}
return
minHamming
;
...
...
modules/optflow/src/motempl.cpp
View file @
f529a1df
...
...
@@ -41,6 +41,7 @@
#include "precomp.hpp"
#include "opencv2/core/utility.hpp"
#include "opencv2/core/hal/hal.hpp"
#include "opencl_kernels_optflow.hpp"
namespace
cv
{
...
...
@@ -212,7 +213,7 @@ void calcMotionGradient( InputArray _mhi, OutputArray _mask,
float
*
orient_row
=
orient
.
ptr
<
float
>
(
y
);
uchar
*
mask_row
=
mask
.
ptr
<
uchar
>
(
y
);
hal
::
fastAtan2
(
dY_max_row
,
dX_min_row
,
orient_row
,
size
.
width
,
true
);
cv
::
hal
::
fastAtan2
(
dY_max_row
,
dX_min_row
,
orient_row
,
size
.
width
,
true
);
// make orientation zero where the gradient is very small
for
(
x
=
0
;
x
<
size
.
width
;
x
++
)
...
...
modules/xfeatures2d/src/sift.cpp
View file @
f529a1df
...
...
@@ -105,6 +105,7 @@
#include "precomp.hpp"
#include <iostream>
#include <stdarg.h>
#include <opencv2/core/hal/hal.hpp>
namespace
cv
{
...
...
@@ -337,9 +338,9 @@ static float calcOrientationHist( const Mat& img, Point pt, int radius,
len
=
k
;
// compute gradient values, orientations and the weights over the pixel neighborhood
hal
::
exp
(
W
,
W
,
len
);
hal
::
fastAtan2
(
Y
,
X
,
Ori
,
len
,
true
);
hal
::
magnitude
(
X
,
Y
,
Mag
,
len
);
cv
::
hal
::
exp32f
(
W
,
W
,
len
);
cv
::
hal
::
fastAtan2
(
Y
,
X
,
Ori
,
len
,
true
);
cv
::
hal
::
magnitude32f
(
X
,
Y
,
Mag
,
len
);
for
(
k
=
0
;
k
<
len
;
k
++
)
{
...
...
@@ -620,9 +621,9 @@ static void calcSIFTDescriptor( const Mat& img, Point2f ptf, float ori, float sc
}
len
=
k
;
hal
::
fastAtan2
(
Y
,
X
,
Ori
,
len
,
true
);
hal
::
magnitude
(
X
,
Y
,
Mag
,
len
);
hal
::
exp
(
W
,
W
,
len
);
cv
::
hal
::
fastAtan2
(
Y
,
X
,
Ori
,
len
,
true
);
cv
::
hal
::
magnitude32f
(
X
,
Y
,
Mag
,
len
);
cv
::
hal
::
exp32f
(
W
,
W
,
len
);
for
(
k
=
0
;
k
<
len
;
k
++
)
{
...
...
modules/ximgproc/src/fgs_filter.cpp
View file @
f529a1df
...
...
@@ -35,7 +35,7 @@
*/
#include "precomp.hpp"
#include "opencv2/hal/intrin.hpp"
#include "opencv2/
core/
hal/intrin.hpp"
#include <vector>
namespace
cv
{
...
...
modules/ximgproc/src/precomp.hpp
View file @
f529a1df
modules/ximgproc/src/sparse_match_interpolators.cpp
View file @
f529a1df
...
...
@@ -38,6 +38,7 @@
#include "opencv2/ximgproc/sparse_match_interpolator.hpp"
#include <algorithm>
#include <vector>
#include "opencv2/core/hal/hal.hpp"
using
namespace
std
;
...
...
@@ -768,7 +769,7 @@ void EdgeAwareInterpolatorImpl::RansacInterpolation_ParBody::operator() (const R
KNNdistances
=
inst
->
NNdistances
.
ptr
<
float
>
(
i
);
if
(
inc
>
0
)
//forward pass
{
hal
::
exp
(
KNNdistances
,
KNNdistances
,
inst
->
k
);
cv
::
hal
::
exp32f
(
KNNdistances
,
KNNdistances
,
inst
->
k
);
Point2f
average
=
Point2f
(
0.0
f
,
0.0
f
);
for
(
int
j
=
0
;
j
<
inst
->
k
;
j
++
)
...
...
modules/xphoto/src/grayworld_white_balance.cpp
View file @
f529a1df
...
...
@@ -40,7 +40,7 @@
#include "opencv2/xphoto.hpp"
#include "opencv2/core.hpp"
#include "opencv2/hal/intrin.hpp"
#include "opencv2/
core/
hal/intrin.hpp"
namespace
cv
{
namespace
xphoto
{
...
...
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