Pupil tracking algorithm especially for the Octopus® 900 perimeter (Haag-Streit).
- Extract example files:
cd data && tar xf 1.tar.xz
- Download OpenCV. Create a new folder called lib.
- Windows: copy opencv-249.jar (including both x64 and x86 subdirectories) from path-to-opencv/build/java into your lib folder.
- Mac OS X: todo
- Linux: todo
- Compile the source files. I'd suggest to create a new project using an IDE such as IntelliJ
- In the new project, open File > Project structure and add opencv-249.jar to the libraries.
- Edit run configuration. You will need a VM option: e.g.
-Djava.library.path="lib/x86"
. Add program arguments:data/1
.
- Run the Main class.
todo
-
What are these raw files?
The Octopus 900 perimeter returns grayscale images as a byte sequence with a dimension of 320x240 px. So the raw files are just
byte[] foo = new byte[320*240*1]
saved to a file. -
What is t, d, a and b in the screenshot?
- t: needed time
- d: pupil diameter (okay, actually it's 2*pupilMajorAxis)
- a: major axis of the pupil ellipse (red)
- b: minor axis of the pupil ellipse (blue)