Skip to main content

Parcellation-based gaze fixation preprocessing for GLMM analysis

Project description

GridFix

PyPI version DOI

GridFix is a Python 3 toolbox to facilitate preprocessing of scene fixation data for region-based analysis using Generalized Linear Mixed Models (GLMM).

Our recently published manuscript [1] describes how this approach can be used to evaluate models of visual saliency above and beyond content-independent biases. Please also see [3] for a previous description of the approach and our ECVP 2016 poster [2] for an overview about the structure and workflow of the GridFix toolbox.

Example Image

Features

  • Define image parcellations (region masks) based on a grid or bounding box coordinates (RegionSet)
  • Apply these parcellations to collections of images or saliency maps (ImageSet)
  • Calculate per-region fixation status (fixated/not fixated), count, and duration-based dependent measures
  • Define features to assign a value to each region X image (e.g., mean saliency of each region)
  • Explicitly model central viewer bias using different approaches (e.g. Euclidean distance, Gaussian)
  • Output the resulting feature vectors for GLMM-based analysis [1,2]
  • Create initial R source code to facilitate GLMM analysis using lme4

Installation

GridFix requires Python 3. The following packages need to be installed:

  • numpy
  • scipy
  • matplotlib
  • pandas
  • PIL or Pillow (image library)

If you need to first install a Python environment, we recommend the Anaconda distribution which includes all of the listed prerequisites by default, is available for all major platforms (Windows, Mac, Linux) and can be downloaded at https://www.anaconda.com/products/individual#Downloads.

To install GridFix from the Python Package Index (PyPI), simply run:

pip install gridfix

Alternatively, you can clone this repository using git or download a ZIP file using the "Clone or download" button, then run the following:

python3 setup.py install

or, in case you want to only install for your user or receive an error regarding permissions:

python3 setup.py install --user

GridFix was installed correctly if you can execute

from gridfix import *

in an interactive Python 3 session without errors.

Documentation

See GridFix documentation. Tutorial Jupyter Notebooks and example data are available as a separate download.

References

[1] Nuthmann, A., Einhäuser, W., & Schütz, I. (2017). How well can saliency models predict fixation selection in scenes beyond central bias? A new approach to model evaluation using generalized linear mixed models. Frontiers in Human Neuroscience. http://doi.org/10.3389/fnhum.2017.00491

[2] Schütz, I., Einhäuser, W., & Nuthmann, A. (2016). GridFix: A Python toolbox to facilitate fixation analysis and evaluation of saliency algorithms using Generalized linear mixed models (GLMM). Poster presented at the European Conference on Visual Perception (ECVP), Barcelona. http://doi.org/10.5281/zenodo.571067

[3] Nuthmann, A., & Einhäuser, W. (2015). A new approach to modeling the influence of image features on fixation selection in scenes. Annals of the New York Academy of Sciences, 1339(1), 82-96. http://dx.doi.org/10.1111/nyas.12705

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gridfix-0.3.2.tar.gz (35.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gridfix-0.3.2-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file gridfix-0.3.2.tar.gz.

File metadata

  • Download URL: gridfix-0.3.2.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.6

File hashes

Hashes for gridfix-0.3.2.tar.gz
Algorithm Hash digest
SHA256 e18fbf1cc901014a03366aba4f13ac8c2d81d6a56e6b42a214a09b06d3d052e8
MD5 c8771ab9cfde80867d31ca8aa4ba3ec6
BLAKE2b-256 8cc8fee3dba963648b3b9fd56fb6f545841dd17e4076aab8f24e431ce884c968

See more details on using hashes here.

File details

Details for the file gridfix-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: gridfix-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.6

File hashes

Hashes for gridfix-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 44c68634cbd149ff634b3e8f2a1af9a4601b47ac03004fbb232579c9d8261e6a
MD5 c02dcb1a4f8a13f97e6a203c9d7a4d44
BLAKE2b-256 1238067df14a8ddaf5001198e4bd9ed690646da7dd9a032ab9b4252bd578fd97

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page