Skip to content

feat: Fixation correction - #62

Draft
kasprowski wants to merge 8 commits into
mainfrom
feat/fixation-correction
Draft

feat: Fixation correction#62
kasprowski wants to merge 8 commits into
mainfrom
feat/fixation-correction

Conversation

@kasprowski

Copy link
Copy Markdown
Collaborator

Fixation drift correction for texts.
New files:
1/ preprocessing/events/fixation_correction.py with functions:

add_corrected_fixations(sess, gaze.events, algorithm) - takes all 'fixation' events from gaze.events and uses them to create new 'fixation_corrected_{algorithm}' events with Y (vertical) coordinate corrected for a line of text. It adds new events and does not remove the original ones.
remove_previous_fixation_corrections(gaze.events, algorithm) - removes from gaze.events all events with the name 'fixation_corrected_{algorithm}'

2/ preprocessing/events/drift_algorithms.py taken from Al Madi paper with multiple implementations of drift correction algorithms.

3/ fixation_correction_test.ipynb - to test of the algorithms.

@cbueth cbueth changed the title feat/fixation correction feat: Fixation correction Feb 20, 2026
@cbueth
cbueth force-pushed the feat/fixation-correction branch from cee528e to 8ca6022 Compare July 15, 2026 14:58
@cbueth
cbueth marked this pull request as draft July 15, 2026 15:01
@cbueth cbueth assigned janbrasser and unassigned kasprowski Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants