Permalink
Browse files

Changing approach for jacobian calc

  • Loading branch information...
Tim Sheerman-Chase
Tim Sheerman-Chase committed Apr 18, 2012
1 parent aabd04a commit 82f2af6886bbc49203148963dd74310a19cce87e
Showing with 2 additions and 2 deletions.
  1. +2 −2 trackFeaturesUtils.pyx
View
@@ -311,7 +311,7 @@ def jacobian(xData, np.ndarray[np.float32_t,ndim=2] img1Patch,
np.ndarray[np.float32_t,ndim=2] gradx2,
np.ndarray[np.float32_t,ndim=2] grady2):
- cdef np.ndarray[np.float32_t,ndim=1] gradx, grady
+ #cdef np.ndarray[np.float32_t,ndim=1] gradx, grady
cdef float x2 = xData[0]
cdef float y2 = xData[1]
@@ -331,7 +331,7 @@ def jacobian(xData, np.ndarray[np.float32_t,ndim=2] img1Patch,
out2 = - np.hstack((gradxImgReshaped,gradyImgReshaped))
- out = - np.array([gradx, grady]).transpose()
+ #out = - np.array([gradx, grady]).transpose()
#print out.shape, out2.shape
#print out, out2

0 comments on commit 82f2af6

Please sign in to comment.