1 #ifndef _VISUAL_STIMULUS_H_ 2 #define _VISUAL_STIMULUS_H_ Class for generating Poisson spike trains.
unsigned char * readFrameChar()
Reads the next image frame and returns a pointer to the char array.
PoissonRate * getCurrentFramePoisson()
returns PoissonRate object of current frame
int getHeight()
returns the stimulus height (number of pixels)
VisualStimulus(std::string fileName, bool wrapAroundEOF=true)
Default constructor.
int getLength()
returns the stimulus length (number of frames)
PoissonRate * readFramePoisson(float maxPoisson, float minPoisson=0.0f)
Reads the next image frame and returns a pointer to a PoissonRate object.
int getChannels()
returns the number of channels (1=grayscale, 3=RGB)
int getCurrentFrameNumber()
void rewind()
Rewinds the file pointer to the top.
~VisualStimulus()
default destructor
unsigned char * getCurrentFrameChar()
returns char array of current frame
stimType_t
List of stimulus file types.
stimType_t getType()
returns the stimulus type (STIM_GRAY, STIM_RGB, etc.)
int getWidth()
returns the stimulus width (number of pixels)
Class to integrate CARLsim with a stimulus created using VisualStimulus.m Version: 4/11/14 Author: Mi...