-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfixes for upcoming v1.7 release #1157
Conversation
papr
commented
Apr 17, 2018
- Fix Add blink detection plugin to Pupil Service #1137
- Use correct timing for offline video sources
- Fix jumping to fixations in Player Pupil Player 1.6.13 | Offline Fixation Detector Crash | Previous & Next Fixation Button click #1151
""" | ||
Undistorts points according to the camera model. | ||
cv2.fisheye.undistortPoints does *NOT* perform the same unprojection step the original cv2.undistortPoints does. | ||
cv2.fisheye.unprojectPoints does *NOT* perform the same unprojection step the original cv2.unprojectPoints does. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think copy replace was applied a bit to generously in this case.
# f = np.array((self.K[0, 0], self.K[1, 1])).reshape(1, 2) | ||
# c = np.array((self.K[0, 2], self.K[1, 2])).reshape(1, 2) | ||
# xy_undist = xy_undist * f + c | ||
# xy_undist = cv2.fisheye.undistortPoints(xy, self.K, self.D, P=self.K) | ||
# xy_undist = cv2.fisheye.unprojectPoints(xy, self.K, self.D, P=self.K) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please make sure this change is correct. Seems fishy.
if xy.ndim == 2: | ||
xy= np.expand_dims(xy, 0) | ||
|
||
xy_undist = cv2.fisheye.undistortPoints( | ||
xy_undist = cv2.fisheye.unprojectPoints( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, fishy (get it :-) )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think copy replace was to broadly applied. Please check.
@@ -83,7 +83,10 @@ def fixation_from_data(dispersion, method, base_data, timestamps=None): | |||
|
|||
def vector_dispersion(vectors): | |||
distances = pdist(vectors, metric='cosine') | |||
return np.arccos(1. - distances.max()) | |||
distances.sort() # sort by distance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reference to lit or a small explanation?
@@ -1,126 +0,0 @@ | |||
# Pupil Time Sync Protocol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we misunderstood each other, I thought we leave this here but link from Pupil helpers to here. (have the spec stay with implementation.)