Shady: A software engine for real-time visual stimulus manipulation.

J Neurosci Methods

Burke Neurological Institute, White Plains, NY, USA; Blythedale Children's Hospital, Valhalla, NY, USA; Department of Physiology and Biophysics, Weill Cornell Medicine, New York, NY, USA.

Published: May 2019

Background: Precise definition, rendering and manipulation of visual stimuli are essential in neuroscience. Rather than implementing these tasks from scratch, scientists benefit greatly from using reusable software routines from freely available toolboxes. Existing toolboxes work well when the operating system and hardware are painstakingly optimized, but may be less suited to applications that require multi-tasking (for example, closed-loop systems that involve real-time acquisition and processing of signals).

New Method: We introduce a new cross-platform visual stimulus toolbox called Shady (https://pypi.org/project/Shady)-so called because of its heavy reliance on a shader program to perform parallel pixel processing on a computer's graphics processor. It was designed with an emphasis on performance robustness in multi-tasking applications under unforgiving conditions. For optimal timing performance, the CPU drawing management commands are carried out by a compiled binary engine. For configuring stimuli and controlling their changes over time, Shady provides a programmer's interface in Python, a powerful, accessible and widely-used high-level programming language.

Results: Our timing benchmark results illustrate that Shady's hybrid compiled/interpreted architecture requires less time to complete drawing operations, exhibits smaller variability in frame-to-frame timing, and hence drops fewer frames, than pure-Python solutions under matched conditions of resource contention. This performance gain comes despite an expansion of functionality (e.g. "noisy-bit" dithering as standard on all pixels and all frames, to enhance effective dynamic range) relative to previous offerings.

Conclusions: Shady simultaneously advances the functionality and performance available to scientists for rendering visual stimuli and manipulating them in real time.

Download full-text PDF

Source
http://www.ncbi.nlm.nih.gov/pmc/articles/PMC6524778PMC
http://dx.doi.org/10.1016/j.jneumeth.2019.03.020DOI Listing

Publication Analysis

Top Keywords

visual stimulus
8
visual stimuli
8
shady
4
shady software
4
software engine
4
engine real-time
4
visual
4
real-time visual
4
stimulus manipulation
4
manipulation background
4

Similar Publications

Exposure therapy is an efficacious treatment for anxiety-related disorders. Yet, fear often returns after treatment. Occasional reinforcement, in which the feared stimulus is intermittently presented during extinction, increases safety learning and slows fear renewal in conditioning paradigms and analogue samples, but no studies to date have examined this strategy in clinical samples.

View Article and Find Full Text PDF

Predictive updating of an object's spatial coordinates from pre-saccade to post-saccade contributes to stable visual perception. Whether object features are predictively remapped remains contested. We set out to characterise the spatiotemporal dynamics of feature processing during stable fixation and active vision.

View Article and Find Full Text PDF

Temporal impacts of diverse concentrations of pilocarpine ophthalmic solution on human accommodation.

Clin Exp Optom

January 2025

Eye Institute and Department of Ophthalmology, Eye & ENT Hospital, Fudan University, Shanghai, China.

Clinical Relevance: Accommodation is crucial for clear near vision and is predominantly affected by presbyopia. The ability to modulate accommodative function with eye drops could offer a pharmacological approach to manage presbyopia.

Background: To investigate the effects of different concentrations of pilocarpine eye drops on ocular accommodation in young volunteers.

View Article and Find Full Text PDF

Feature-selective adaptation of numerosity perception.

Proc Biol Sci

January 2025

Department of Neuroscience, Psychology, Pharmacology and Child Health, University of Florence, Florence, Italy.

Perceptual adaptation has been widely used to infer the existence of numerosity detectors, enabling animals to quickly estimate the number of objects in a scene. Here, we investigated, in humans, whether numerosity adaptation is influenced by stimulus feature changes as previous research suggested that adaptation is reduced when the colour of adapting and test stimuli did not match. We tested whether such adaptation reduction is due to unspecific novelty effects or changes of stimuli identity.

View Article and Find Full Text PDF

Significance: Stimulus-evoked intrinsic optical signal (IOS) changes in retinal photoreceptors are critical for functional optoretinography (ORG). Optical coherence tomography (OCT), with its depth-resolved imaging capability, has been actively explored for IOS imaging of retinal photoreceptors. However, recent OCT studies have reported conflicting results regarding light-induced changes in the photoreceptor outer segments (OSs), with both elongation and shrinkage being observed.

View Article and Find Full Text PDF

Want AI Summaries of new PubMed Abstracts delivered to your In-box?

Enter search terms and have AI summaries delivered each week - change queries or unsubscribe any time!