Skip to main content

Psychtoolbox: Video

  • Chapter
  • First Online:
MATLAB for Psychologists

Abstract

The Psychophysics Toolbox (PTB) is a package for psychophysics research developed by David Brainard and Denis Pelli (Brainard 1997; Pelli 1997) and recently by Mario Kleiner (Kleiner et al. 2007). This toolbox has been used extensively over the last decade (the first version was released in 1995), and it is very useful for running experiments needing audiovisual stimuli. PTB routines treat the computer (Linux, Mac, or Windows) as a display device, i.e., a frame buffer, a portion of memory generally placed within the graphics card where images are temporally stored. To do this, PTB interfaces MATLAB with a low-level computer language such as C. Hence, besides a number of.m functions, PTB includes low-level information included in MEX files. The most important MEX file is Screen.mex, which will be described in the current chapter.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 89.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Please note that the codes presented in this book works with Psychtoolbox from version 3.

  2. 2.

    OpenGL’s main purpose is to render two- and three-dimensional figures into a frame buffer. These figures are described as sequences of vertices (which define geometric objects) or pixels (which define images). OpenGL performs several processing steps on these data to convert them into pixels to create the image in the frame buffer.

References

  • Brainard DH (1997) The psychophysics toolbox. Spat Vis 10:433–436

    Article  PubMed  Google Scholar 

  • Kleiner M, Brainard DH, Pelli DG (2007) What’s new in psychtoolbox-3? Perception (ECVP Abstract Supplement) 14

    Google Scholar 

  • Pelli DG (1997) The VideoToolbox software for visual psychophysics: transforming numbers into movies. Spat Vis 10:437–442

    Article  PubMed  Google Scholar 

  • Sekuler R, Sekuler AB, Lau R (1997) Sound alters visual motion perception. Nature 385:308

    Google Scholar 

Suggested Readings

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer Science+Business Media, LLC

About this chapter

Cite this chapter

Borgo, M., Soranzo, A., Grassi, M. (2012). Psychtoolbox: Video. In: MATLAB for Psychologists. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-2197-9_9

Download citation

Publish with us

Policies and ethics