Skip to content

feat: Fixation correction#62

Open
kasprowski wants to merge 2 commits intomainfrom
feat/fixation-correction
Open

feat: Fixation correction#62
kasprowski wants to merge 2 commits intomainfrom
feat/fixation-correction

Conversation

@kasprowski
Copy link
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
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.

1 participant