projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be5c910
)
Use sincos instead of sin and cos.
author
Yan Wang
<yan.wang@linux.intel.com>
Thu, 4 Dec 2014 07:48:23 +0000
(15:48 +0800)
committer
Yan Wang
<yan.wang@linux.intel.com>
Thu, 4 Dec 2014 07:48:23 +0000
(15:48 +0800)
Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
modules/features2d/src/opencl/orb.cl
patch
|
blob
|
history
diff --git
a/modules/features2d/src/opencl/orb.cl
b/modules/features2d/src/opencl/orb.cl
index
f058daf
..
3beb43a
100644
(file)
--- a/
modules/features2d/src/opencl/orb.cl
+++ b/
modules/features2d/src/opencl/orb.cl
@@
-148,8
+148,8
@@
ORB_computeDescriptor(__global const uchar* imgbuf, int imgstep, int imgoffset0,
float angle = as_float(kpt[KEYPOINT_ANGLE]);
angle *= 0.01745329251994329547f;
- float
sina = sin(angle)
;
- float
cosa = cos(angle
);
+ float
cosa
;
+ float
sina = sincos(angle, &cosa
);
__global uchar* desc = _desc + idx*dsize;