Fix buglet introduced 6/2/13

Need to handle empty calFileName (thanks to MS for identifying the problem and the fix.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Fix buglet introduced 6/2/13

Need to handle empty calFileName (thanks to MS for identifying the problem and the fix.

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

Remove word "integer" from leading comment -- this was vestigal from the days when device settings were integers, rather than reals on the interval [0-1].

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

PTB BETA RELEASE "Rainbows, Droids & Compute Hippies!" SP10

* Fix DaqAIn() which contained race-conditions.
* Fix MSAA rendering with imaging pipeline on old GPU's - for 32-Bit Matlab on OSX.
Merge pull request #146 from kleinerm/master

PTB BETA RELEASE "Rainbows, Droids & Compute Hippies!" SP11

* DrawFormattedText: Add sx = 'right' option for right justified text.
* Fix regression in DrawFormattedTextDemo which makes it fail on Matlab.
Started working on this, but did not get very far.  Keeping it local for now.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Started work on these conversion routines and a test program.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Added new conversion routines to Contents.m

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Finished up the retinal irradiance deg2<->mm2 routines and added a test program.

The tests are pretty minimal.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Improve comments to indicate these are valid for small angles.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Fix glitch in filename.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Beginning to implement the ISO2007MPE light exposure standard.

This is going to take a while, but probably won't break anything else as it progresses.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Charging away on the implementation of the ISO MPE standard.

But a ways to go before it is done.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Remove "rad" prefix from newer routines in PsychRadiometric

I added this to a number of routines to minimize possibility of name space collisions.  But, it really clashes with the rest of the PTB, where this style is not adopted.  And, the routines in question had long and very likely to be unique names in any case.

This may break code of people who started using these routines.  But, I don't think we've actually had a release since I added these and in any case it should be easy to fix with a mutli-file search and replace.    In the long run we will be happier not to have the prefix.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Added computation of retinal irradiance aphakic limit.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Closing in on finishing the ISO 2007 MPE implementation

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Finish off Type 1 basic functions.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Write wrapper function to make it easy to compute whether a measured spectrum is under the MPE.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Added a printout function.  Updated Contents.  A little tuning

These routines are now in good shape.  I don't have any test cases with known answers at my fingertips to validate the code with, but I was pretty careful in trying to follow the standard.

Signed-off-by: David Brainard <brainard@psych.upenn.edu>
Finish off these routines for now.

Improve comments and add reference to a paper that helps explain the standard.

Change limit for thermal radiance to be a bit more conservative, as noted in the help text.

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