Code Monkey home page Code Monkey logo

colormatch's Introduction

colorMatch

A program for making color matches in an Oz vision display.

Install

colorMatch depends on Psychopy to generate stimuli, PySimpleGUI27 for the parameters gui, inputs for collecting user responses and Numpy for mathematical computing. To install the dependencies, use:

pip install --user Psychopy PySimpleGUI27 inputs numpy

To install the program:

git clone https://github.com/bps10/colorMatch

Quick start

From outside of the colorMatch directory run:

python colorMatch

A parameter gui will ask for information about the subject and experimental parameters. When

Note: If using a Windows 10 machine, make sure that Game Bar is disabled. To disable: settings > gaming > gamebar

Program behavior

The colorMatch program creates a fixation dot and two background fields. One is superimposed over the AO imaging / leak raster, the second is for matching.

Procedure

  1. Set the position of the fixation relative to the imaging raster.
  2. Center the AO background.
  3. Adjust the size of the AO background to perfectly fill the imaging raster.
  4. Adjust the hue, saturation and brightness of the fellow field.
  5. Make color matches.

Active keys:

keyboard gamepad reaction
up arrow Y increase [hue, width, x position]
down arrow A decrease [hue, width, x position]
left arrow X decrease [saturation, height, y position]
right arrow B increase [saturation, height, y position]
enter right trigger increase [brightness]
shift left trigger decrease [brightness]
control bottom trigger take large step sizes (applies to all above)
space left gamepad accept match
1 START step forward in experiment (see above)
2 BACK step backward in experiment (see above)
q or esc center button end the experiment and save

Offline mode

Color matches can be practiced in "offline" mode. In this configuration, two test and reference squares are displayed. After each match, each square is randomly updated with a new color. The subject's task is to adjust the test square until it matches the reference. This mode is intended for practice and baseline measurements. Offline mode can be selected with the radio button in the configuration gui that begins each session.

Calibration

Monitor calibration should be done with a spectraradiometer, such as the PR-650.

Hardware

  • Bits#: A stimulus processor from Cambridge Research Systems. Bits# is basically a graphics card designed for vision science experiments. It provides display calibration solutions, precise timing and increase color bit depth (up to 14 bit per channel). Bits# is not necessary to run the program.

  • Logitech F310 gamepad for user responses. This is optional. The keyboard works just fine as well.

  • TI lightcrafter is the display currently used in the Roorda Lab. Any color display will run with this program.

colormatch's People

Contributors

bps10 avatar psmanohar avatar sutkarsh avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.