rjdmoore / fictrac

FicTrac: A webcam-based method for tracking spherical motion and generating fictive animal paths.
http://fictrac.rjdmoore.net/
Other
26 stars 29 forks source link

Issue while plotting ROI #21

Closed owadhwa closed 1 year ago

owadhwa commented 2 years ago

I am trying to plot the ROI computed by fictrac in the configGui. For this, I need the center and radius information of the sphere. How is this stored in the configuration parameters document? How is roi_c computed by fictrac?What are the three coordinates in the roi_r parameter?

rjdmoore commented 1 year ago

These parameters are described here.

roi_r is the radius in radians of the trackball ROI. roi_c is a three element vector which is the direction to the centre of the trackball in the camera coordinate frame.

If you know the centre of the trackball in pixel coordinates and want to find the corresponding 3-element view vector, then you could see for example this function for a rectilinear camera-lens, or corresponding function for fisheye lens in