Merge pull request #160 from kleinerm/master

Pull from kleinerm for PTB BETA RELEASE "Blue skies and empty brains" - SP3
* GUI window mode fixes for OSX and MS-Windows.
Fix a few glitches in printout, mostly fixing case statement options.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Comment clean up.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Comment clean up.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Renamed to match the transition of vset -> isetbio.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Added comment about where isetbio lives on gitHub.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Added many more checks for consistency in the routines that compute photoreceptor parameters.

It is now harder to do something stupid, such as specify a nomogram for absorbance and then pass absorbance directly, thus ignoring the nomogram that you specified.

And, the returned structure is more informative about what was computed and what was supplied.

I checked that none of these changes break test routines within the PTB.   But if you were cleverly overriding values set by DefaultPhotoreceptors, you may now need to explictly set some sources to 'None' or some values to the empty matrix.  The error messages should be moderately informative about how to go about this, and there are some examples of this being done in CIEConeFundamentalsTest (where such changes were made.)

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Tightening up cone fundamental generation code

Added options to DefaultPhotoreceptors that will produce the CIE (aka Stockman-Sharpe) 2 and 10 degree fundamentals.

Added a lot of comments about relation between various routines that do similar things.

Added check that FillInPhotoreceptors and ComputeRawConeFundamentals are consistent with one another, and added extra return args to ComputeCIEConeFundamentals and ComputeRawConeFundamentals to allow access to unnormalized quantal sensitivity functions.

Added other miscellaneous comments.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Continuing to clean up and extend isomerization calcs.

Most of this effort is just checks and commenting.  It is possible that some of the checks will break calling code that was a little sloppy.  I believe I've fixed up all such cases within the PTB.

Added AbsorbtanceToAbsorbance, from the Stanford group.

The isomerization calcs now more cleanly incorporate the CIE standard cone fundamentals (that is, you can get them from DefaultPhotoreceptors).

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Added little utility to find color matching function peak wavelengths and values.

Used in PrintPhotoreceptors.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Cleaned up PrintPhotoreceptors some, and little bit of small bug swatting in FillInPhotoreceptors and DefaultPhotoreceptors.

Verified that the main unit tests that use this stuff still run OK.
  IsomerizationsInEyeDemo
  IsomerizationsInDishDemo
  CIEConeFundamentalsTest
  FitConeFundamentalsTest

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Tuning this up.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Merge branch 'master' of https://github.com/Psychtoolbox-3/Psychtoolbox-3
Updated comment to include information about wavelength sampling of tabulated Smith-Pokorny fundamentals.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Merge pull request #162 from kleinerm/master

Pull from kleinerm for PTB BETA RELEASE "Stadtmusikanten"

* ECVP2013 demos and slides pdf
* New function PsychDefaultSetup for normalized color range by default.
* Some new demos, e.g., SimpleSoundScheduleDemo.
* Minor fixes and improvements here and there.
Merge pull request #38 from Psychtoolbox-3/master

Resync with current master of official Psychtoolbox-3 repo.
For PTB BETA "Stadtmusikanten"