From a93fe9dbb984a24dfb212b3994ef615b82d3e36f Mon Sep 17 00:00:00 2001 From: Ankit Agrawal Date: Thu, 26 Sep 2013 17:57:12 +0530 Subject: [PATCH] Correcting the orientation bug --- skimage/feature/orb_cy.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skimage/feature/orb_cy.pyx b/skimage/feature/orb_cy.pyx index e7197797..21126fbd 100644 --- a/skimage/feature/orb_cy.pyx +++ b/skimage/feature/orb_cy.pyx @@ -6,7 +6,7 @@ cimport numpy as cnp import numpy as np -from libc.math cimport sin, cos, M_PI, round +from libc.math cimport sin, cos, round pos = np.loadtxt("orb_descriptor_positions.txt", dtype=np.int8) @@ -28,8 +28,8 @@ def _orb_loop(double[:, ::1] image, Py_ssize_t[:, ::1] keypoints, for i in range(descriptors.shape[0]): angle = orientations[i] - sin_a = sin(angle * M_PI / 180.) - cos_a = cos(angle * M_PI / 180.) + sin_a = sin(angle) + cos_a = cos(angle) kr = keypoints[i, 0] kc = keypoints[i, 1]