CARLsim
5.0.0
CARLsim: a GPU-accelerated SNN simulator
|
Go to the documentation of this file. 1 #ifndef _VISUAL_STIMULUS_H_
2 #define _VISUAL_STIMULUS_H_
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)
stimType_t getType()
returns the stimulus type (STIM_GRAY, STIM_RGB, etc.)
void rewind()
Rewinds the file pointer to the top.
int getWidth()
returns the stimulus width (number of pixels)
~VisualStimulus()
default destructor
int getLength()
returns the stimulus length (number of frames)
Class to integrate CARLsim with a stimulus created using VisualStimulus.m Version: 4/11/14 Author: Mi...
Class for generating Poisson spike trains.
PoissonRate * getCurrentFramePoisson()
returns PoissonRate object of current frame
unsigned char * readFrameChar()
Reads the next image frame and returns a pointer to the char array.
stimType_t
List of stimulus file types.
unsigned char * getCurrentFrameChar()
returns char array of current frame
int getHeight()
returns the stimulus height (number of pixels)
int getCurrentFrameNumber()
VisualStimulus(std::string fileName, bool wrapAroundEOF=true)
Default constructor.