-
Notifications
You must be signed in to change notification settings - Fork 5
/
Contents.m
executable file
·120 lines (120 loc) · 5.78 KB
/
Contents.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
% SilentSubstitutionToolbox - Toolbox to simulate colorimetric observers for evaluation of photoreceptor isolation
%
% If you use this code in support of work in a published paper, please cite us:
%
% Spitschan M, Aguirre GK, Brainard DH (2015) Selective Stimulation of
% Penumbral Cones Reveals Perception in the Shadow of Retinal Blood
% Vessels. PLoS ONE 10(4): e0124328. doi: 10.1371/journal.pone.0124328
%
% Demos
% -------------------------
% ReceptorIsolateDemo - Demos the ReceptorIsolate, PhotoreceptorSensitivity,
% and HemoglobinTransmivitity function
% ContrastSplatterDemo - Demos the contrast splatter calculations.
% HemoglobinTransmittanceDemo - Demos how we compute hemoglobin transmittance.
% LightSafetyDemo - Demos light safety calculations.
%
% ReceptorIsolate functions
% -------------------------
% ReceptorIsolate - Function that finds isolating device primary
% settings
%
% PhotoreceptorSensitivity functions
% -----------------------------
% GetHumanPhotoreceptorSS - Wrapper around PTB functions to obtain
% photoreceptor spectral sensitivities
% GetChronologicalAgeSDFromLensSD - Converts age standard deviation into lens density
% standard deviation
% GetLambdaMaxEstimateSD - Returns lambda-max standard deviation for a given
% photopigment
% GetConeFractionBleachedFromSpectrum - Calculates proportion of pigment bleached for a
% given background spectrum
%
% HemoglobinTransmittance functions
% -----------------------------
% GetHemoglobinTransmittance
% - Returns hemoglobin transmittance
% GetHemoglobin - Wrapper function to get hemoglobin
% extinction/absorptivity/absorption functions
%
% HumanEyelidTransmittance functions
% -----------------------------
% HumanEyelidTransmittanceBierman
% - Bierman model for Human eyelid transmittance
%
% ContrastSplatter functions
% -----------------------------
% CalculateSplatter - Calculates contrast splatter maps
% SaveSplatter - Saves contrast splatter maps SaveSplatterConfidenceBounds
% - Saves splatter statistics in CIs
% PlotSplatter - Plots contrast splatter maps
%
% Data
% ----
% ContrastSplatter/ContrastSplatterDemoData/spd_background.mat
% - Contains a sample background spectrum
% ContrastSplatter/ContrastSplatterDemoData/spd_melIsolatingSpd.mat
% - Contains a sample melanopsin-isolating spectrum
% ContrastSplatter/ContrastSplatterDemoOutput
% - Data and plots produced by ContrastSplatterDemo
% PhotoreceptorSensitivities /xRawData/XuPokornySmith1997_Fig4A.csv
% - Contains digitized chronological age vs. lens
% density plot, for use in
% GetChronologicalAgeSDFromLensSD
% HemoglobinTransmittance/HemoglobinTransmittanceDemoData
% - Data for HemoglobinTransmittanceDemo
% HemoglobinTransmittance/HemoglobinTransmittanceDemoOutput
% - Data and plots produced by HemoglobinTransmittanceDemo
% LightSafety/LightSafetyDemoData
% - Data for light safety demo calculation.
% ReceptorIsolate/ReceptorIsolateDemoOutput
% - Data and plots produced by ReceptorIsolateDemo
%
% External functions
% ---------------------
% error_ellipse - Plots an error ellipse. No known license.
% http://www.mathworks.com/matlabcentral/fileexchange/4705-error-ellipse
% lbmap - Color maps. BSD license.
% http://www.mathworks.com/matlabcentral/fileexchange/17555-light-bartlein-color-maps/content/lbmap.m
%
% Requirements
% ------------
% Open-source Psychtoolbox - http://psychtoolbox.org/
% Matlab Optimization Toolbox
% Matlab Statistics Toolbox
%
% License
% -------
% Except as noted above for files in the External directory, the
% SilentSubstitutionToolbox is covered by:
%
% The MIT License (MIT)
%
% Copyright (c) Manuel Spitschan, Geoffrey Aguirre, David Brainard and the
% Trustees of the University of Pennsylvania.
%
% Permission is hereby granted, free of charge, to any person obtaining a
% copy of this software and associated documentation files (the
% "Software"), to deal in the Software without restriction, including
% without limitation the rights to use, copy, modify, merge, publish,
% distribute, sublicense, and/or sell copies of the Software, and to permit
% persons to whom the Software is furnished to do so, subject to the
% following conditions:
%
% The above copyright notice and this permission notice shall be included
% in all copies or substantial portions of the Software.
%
% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
% OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
% MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
% NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
% DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
% OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
% USE OR OTHER DEALINGS IN THE SOFTWARE.
%
% If you use this code in support of work in a published paper, please cite us.
% We are working on publishing a paper that includes a description of the logic used in this code as
% well as examples of its use. Once we have published our paper, that will be the appropriate
% work to cite. For now, please use:
% Sptitschan, M., Aguirre, G.K., & Brainard D.H. (2015), The silent substitution toolbox,
% https://github.com/spitschan/SilentSubstitutionToolbox.