logGaborStimulus: orientation & SF band-pass limited filter
If you use this in published research please cite "Horizontal information drives the
behavioral signatures of face processing" Goffaux & Dakin (2010) Frontiers in Perception Science v1, 143 | May 2015, Steven Dakin, s.dak.nosp@m.in@a.nosp@m.uckla.nosp@m.nd.a.nosp@m.c.nz
Copyright ©2014-2022 Ian Max Andolina — released: LGPL3, see LICENCE.md
|
function | logGaborStimulus (in varargin) |
| Class constructor.
|
|
function | setup (in me, in sM, in in) |
| Setup this object in preperation for use When displaying a stimulus object, the main properties that are to be modified are copied into cache copies of the property, both to convert from visual description (c/d, Hz, degrees) to computer metrics; and to be animated and modified as independant variables. So xPosition is copied to xPositionOut and converted from degrees to pixels. The animation and drawing functions use these modified properties, and when they are updated, for example to change to a new xPosition, internal methods ensure reconversion and update any dependent properties. This method initialises the object in preperation for display.
|
|
function | set_xPositionOut (in me, in value) |
|
function | set_yPositionOut (in me, in value) |
|
function | set_sizeOut (in me, in value) |
|
function | update (in me) |
| Update this stimulus object structure for screenManager.
|
|
function | draw (in me) |
| Draw this stimulus object.
|
|
function | animate (in me) |
| Animate an structure for screenManager.
|
|
function | reset (in me) |
| Reset an structure for screenManager.
|
|
function | loadImage (in me, in in) |
| Load an image.
|
|
function | scaleRange (in me, in in) |
| Load an image.
|
|
virtual | setup (in runObject) |
| ALL Children must implement these 5 methods!
|
|
function | baseStimulus (in varargin) |
| Class constructor.
|
|
function set | colour (in me, in value) |
| colour set method Allow 1 (R=G=B) 3 (RGB) or 4 (RGBA) value colour
|
|
function set | alpha (in me, in value) |
| alpha set method
|
|
function get | delta (in me) |
| delta Get method delta is the normalised number of pixels per frame to move a stimulus
|
|
function get | dX (in me) |
| dX Get method X position increment for a given delta and angle
|
|
function get | dY (in me) |
| dY Get method Y position increment for a given delta and angle
|
|
function | show (in me) |
| Method to set isVisible=true.
|
|
function | hide (in me) |
| Method to set isVisible=false.
|
|
function | setOffTime (in me, in time) |
| set offTime
|
|
function | setDelayTime (in me, in time) |
| set delayTime
|
|
function | resetTicks (in me) |
| reset the various tick counters for our stimulus
|
|
function | getMousePosition (in me) |
| get mouse position we make sure this is only called once per animation tick to improve performance and ensure all stimuli that are following mouse position have consistent X and Y per frame update This sets mouseX and mouseY and mouseValid if mouse is within PTB screen (useful for mouse override positioning for stimuli)
|
|
function | run (in me, in benchmark, in runtime, in s, in forceScreen, in showVBL) |
| Run stimulus in a window to preview it.
|
|
function | makePanel (in me, in parent) |
| make a GUI properties panel for this object
|
|
function | selectFilePanel (in me, in varargin) |
| read values from a GUI properties panel for this object
|
|
function | readPanel (in me, in varargin) |
| read values from a GUI properties panel for this object
|
|
function | showPanel (in me) |
| show GUI properties panel for this object
|
|
function | hidePanel (in me) |
| hide GUI properties panel for this object
|
|
function | closePanel (in me, in varargin) |
| close GUI panel for this object
|
|
function | cleanHandles (in me, in ignoredArg) |
| clean any handles
|
|
function | getP (in me, in name, in range) |
| gets a property copy or original property
|
|
function | setP (in me, in name, in value) |
| sets a property copy or original property
|
|
function | updateXY (in me, in x, in y, in useDegrees) |
| Update only position info, faster and doesn't reset image etc.
|
|
function | optickaCore (in varargin) |
| Class constructor.
|
|
function get | fullName (in me) |
|
function | getALF (in me, in subject, in sessionPrefix, in lab, in create) |
|
function | findAttributes (in me, in attrName, in attrValue) |
|
function | findAttributesandType (in me, in attrName, in attrValue, in type) |
| find properties of object with specific attributes, for example all properties whose GetAcccess attribute is public and type is logical.
|
|
function | findPropertyDefault (in me, in propName) |
|
function | clone (in me) |
| Use this syntax to make a deep copy of the object, i.e. OBJ_OUT has the same field values, but will not behave as a handle-copy of me anymore.
|
|
function | checkSuperclasses (in List) |
|
function | editProperties (in me, in properties) |
| method to modify a set of properties
|
|
function | setProp (in me, in property, in value) |
| method to fast change a particular value. This is useful for use in anonymous functions, like in the state machine.
|
|
function | initialiseGlobals (in me, in doReset, in doOpen) |
|
function | initialiseSaveFile (in me) |
| Initialise Save prefix.
|
|
function | checkPaths (in me) |
| checks the paths are valid
|
|
|
Property | fileName |
| filename to load, if empty use random noise
|
|
Property | sf |
| peak spatial frequency
|
|
Property | sfSigma |
| spatial frequency SD
|
|
Property | angleSigma |
| orientation SD
|
|
Property | contrast |
| contrast multiplier
|
|
Property | direction |
|
Property | lockAngle |
|
Property | seed |
| seed for random textures
|
|
Property | mask |
| use mask?
|
|
Property | maskColour |
| colour of the mask, empty sets mask colour to = screen manager background
|
|
Property | maskSmoothing |
| smooth the alpha edge of the mask by this number of pixels
|
|
Property | type |
| type
|
|
Property | modulateColour |
|
Property | regenerateTexture |
|
Property | phaseReverseTime |
| For checkerboard, allow timed phase reversal.
|
|
Property | scale |
| scale is set by size
|
|
Property | family |
|
Property | matrix |
|
Property | width |
|
Property | height |
|
Property | type |
| stimulus type
|
|
Property | xPosition |
|
Property | yPosition |
|
Property | size |
|
Property | colour |
|
Property | alpha |
| Alpha (opacity) [0-1], this gets combined with the RGB colour.
|
|
Property | startPosition |
|
Property | speed |
|
Property | angle |
| angle in degrees (0 - 360)
|
|
Property | delayTime |
|
Property | offTime |
| time to turn stimulus off, relative to stimulus onset
|
|
Property | isVisible |
| true or false, whether to draw() this object
|
|
Property | mouseOverride |
| override X and Y position with mouse input? Useful for RF mapping
|
|
Property | showOnTracker |
| show the position on the Eyetracker display?
|
|
Property | verbose |
| Do we log extra details to the command-line?
|
|
Property | xFinal |
|
Property | yFinal |
|
Property | mvRect |
|
Property | szIsPx |
|
Property | szPx |
| computed size in pixels
|
|
Property | szD |
| computed size in °
|
|
Property | xFinalD |
| X and Y position in °
|
|
Property | yFinalD |
|
Property | isRect |
|
Property | tick |
| tick updates +1 on each call of draw (even if delay or off is true and no stimulus is drawn, resets on each update
|
|
Property | drawTick |
| draw tick only updates when a draw is actually performed, resets on each update
|
|
Property | ppd |
| pixels per degree (normally inhereted from screenManager)
|
|
Property | delta |
| What our per-frame motion delta is.
|
|
Property | dX |
| X update which is computed from our speed and angle.
|
|
Property | dY |
| X update which is computed from our speed and angle.
|
|
Property | name |
| object name
|
|
Property | comment |
| comment
|
|
Property | verbose |
| verbose logging, subclasses must assign this. This is normally logical true/false
|
|
Property | dateStamp |
| clock() dateStamp set on construction
|
|
Property | uuid |
| universal ID
|
|
Property | paths |
| storage of various paths
|
|
Property | fullName |
| The fullName is the object name combined with its uuid and class name.
|
|
|
function | makeMask (in me) |
| Make circular mask.
|
|
function | setRect (in me) |
| setRect setRect makes the PsychRect based on the texture and screen values This is overridden from parent class so we can scale texture using the size value
|
|
function | checkFileName (in me) |
|
function | findFiles (in me) |
| findFiles
|
|
function | addRuntimeProperties (in me) |
| These are transient properties that specify actions during runtime.
|
|
function | updateRuntimeProperties (in me) |
| Update transient properties that specify actions during runtime.
|
|
function | computePosition (in me) |
| compute xFinal and yFinal (in pixels) taking startPosition, xPosition, yPosition and direction/angle into account
|
|
function | setAnimationDelta (in me) |
|
function | setRect (in me) |
|
function | toStructure (in me, in tmp) |
| Converts properties to a structure.
|
|
function | removeTmpProperties (in me) |
| Finds and removes dynamic properties.
|
|
function | delete (in me) |
|
function | parseArgs (in me, in args, in allowedProperties) |
| Sets properties from a structure or normal arguments pairs, ignores invalid or non-allowed properties.
|
|
function | addArgs (in me, in args) |
|
function | setPaths (in me) |
| Sets properties from a structure or normal arguments pairs, ignores invalid or non-allowed properties.
|
|
function | getFonts (in me) |
| set paths for object
|
|
function | toStructure (in me) |
| Converts properties to a structure.
|
|
function | getType (in me, in in) |
|
function | logOutput (in me, in in, in message, in override) |
| Give a metaproperty return the likely property class.
|
|
function | salutation (in me, in varargin) |
| Prints messages dependent on verbosity.
|
|