One common way to track the movement of the ball is to use optical mice. Some disadvantages of the method is that mice need to be positioned carefully near the ball surface in each experiment, that at least least two of them are needed to recover all 3 rotation parameters, and that it is not trivial how to synchronize such data to the imaging.
To circumvent some of these issues we opted instead to draw a bunch of dots on the surface of the Styrofoam ball using a black marker that absorbs light in the infrared. After trying a few it turns out that the Expo dry erase marker works just fine. We use a Dalsa Genie GigE camera to image the ball under infrared illumination (we use an IR ring light from Advanced Illumination). We image a 2x2cm area of the ball from a working distance of about 60cm. Once adjusted and focused, the system does not need to be calibrated or re-positioned between experiments — it is just ready to go.
Importantly, frame acquisition is triggered by hardware using the Scanbox camera synchronization signals. Thus, frames of the camera correspond to those of the microscope. Sometimes the cameras may need to run at a multiple of the imaging frequency. The scanbox card provides for such option as well in its firmware. Above we see an example of a segment showing the actual images collected (at 30Hz) as well as the estimated velocity in the imaging plane (which can be converted to rotational speed given we know the size of the ball and the dimension of the surface imaged). Note that the rotation along the line of sight can also be measured from such data, although doing so requires longer processing times due to increased complexity of the registration. This can be done offline as the raw imagery data of the ball is saved by the microscope as well.
I am sure others have come up with their own solutions — which one is yours?