1 #ifndef _VISUAL_STIMULUS_H_
2 #define _VISUAL_STIMULUS_H_
127 void readFramePrivate();
134 std::string fileName_;
137 long fileHeaderSize_;
140 unsigned char* stimFrame_;
Class for generating Poisson spike trains.
PoissonRate * getCurrentFramePoisson()
returns PoissonRate object of current frame
VisualStimulus(std::string fileName, bool wrapAroundEOF=true)
Default constructor.
int getStimulusChannels()
returns the number of channels (1=grayscale, 3=RGB)
int getCurrentFrameNumber()
unsigned char * readFrame()
Reads the next image frame and returns a pointer to the char array.
void rewind()
Rewinds the file pointer to the top.
~VisualStimulus()
default destructor
unsigned char * getCurrentFrameChar()
returns char array of current frame
int getStimulusWidth()
returns the stimulus width (number of pixels)
stimType_t
List of stimulus file types.
stimType_t getStimulusType()
returns the stimulus type (STIM_GRAY, STIM_RGB, etc.)
int getStimulusHeight()
returns the stimulus height (number of pixels)
Class to integrate CARLsim with a stimulus created using VisualStimulus.m Version: 4/11/14 Author: Mi...
int getStimulusLength()
returns the stimulus length (number of frames)