reiserlab / Component-Designs

Some 3D printing, laser cutting, PCBs used in the lab.
https://reiserlab.github.io/Component-Designs/
CERN Open Hardware Licence Version 2 - Weakly Reciprocal
13 stars 7 forks source link

Track auto-rotation of sphere via FicTrac #15

Closed floesche closed 3 years ago

floesche commented 3 years ago

The goal of this task is to verify that FicTrac is working properly. Some short *.dat file would verify that everything works as expected.

To reach this goal, the following steps might be necessary:

InchoateArtichoke commented 3 years ago

Github won't take .dat files, so I converted to .txt: test-20210715_084412.txt

floesche commented 3 years ago

The second to last column in the dat file is the delta timestamp, according to the fictrac documentation. According to that, each frame lasts about 13.3ms, which means fictrac ran at about 75fps. We need at least twice that speed for reliable tracking.

InchoateArtichoke commented 3 years ago

Windows, using Frank's fictrac/pseye branch, with PSEyeDriver installed on top of CLEye.

Without resizing camera:

noresizeerror

With resizing camera:

winerrorresize
InchoateArtichoke commented 3 years ago

Autorotation data file: fictrac-20210728_084015.txt

InchoateArtichoke commented 3 years ago

Data file w/ (poorly) tethered fly flytether

fictrac-20210729_103534.txt

InchoateArtichoke commented 3 years ago

(belated) screenshot w/ debug window Screenshot from 2021-07-29 10-37-18

floesche commented 3 years ago

unnamed

This is probably a better screenshot (from your slides presentation).

In both cases the "accumulated map" does not show the full sphere and therefore the tracking isn't reliable yet. Also, this is different from the configuration file I sent you, where the template is taken from a previously recorded image. These discrepancies could possibly explain the noise you are seeing in your data.

In any case, I think the initial task is done now and we can close this issue.