BrainardLab / OneLightToolbox

Brainard Lab code for talking to our OneLight boxes
MIT License
1 stars 0 forks source link

Feature: correct to contrast #43

Closed JorisVincent closed 6 years ago

JorisVincent commented 6 years ago

This feature branch introduces corrections of primaries/directions to contrast

Major changes:

Note on receptors:

Any receptor argument can take in either the flat T_receptor matrix, or an SSTReceptor object, to calculate contrast. In the latter case, contrast is calculated with respect to the T_energyNormalized matrix in the receptor.T.T_energyNormalized field. This is part of a push to use the SSTReceptor objects more, for integration with the SilentSubstitutionToolbox and ultimately splatter calculations. If you need to calculate receptor excitations or contrasts, it's best to use the SST routines SPDToReceptorExcitation or SPDToReceptorContrast, respectively, which can also handle either SSTReceptor objects, or flat T_receptor matrices.

Minor changes