This repository has been archived by the owner on May 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
colour.recovery.smits1999.html
242 lines (209 loc) · 12.8 KB
/
colour.recovery.smits1999.html
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>colour.recovery.smits1999 Module — Colour 0.3.5 documentation</title>
<link rel="stylesheet" href="_static/basic.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/bootswatch-3.1.0/colour/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="_static/bootstrap-sphinx.css" type="text/css" />
<link rel="stylesheet" href="_static/styles.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '0.3.5',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript" src="_static/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="_static/js/jquery-fix.js"></script>
<script type="text/javascript" src="_static/bootstrap-3.1.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="_static/bootstrap-sphinx.js"></script>
<link rel="top" title="Colour 0.3.5 documentation" href="index.html" />
<link rel="up" title="colour.recovery Package" href="colour.recovery.html" />
<link rel="next" title="colour.temperature Package" href="colour.temperature.html" />
<link rel="prev" title="colour.recovery.dataset.smits1999 Module" href="colour.recovery.dataset.smits1999.html" />
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'>
<meta name="apple-mobile-web-app-capable" content="yes">
</head>
<body>
<div id="navbar" class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html"><img src="_static/Colour_Logo_Icon_001.png">
Colour 0.3</a>
<!--<span class="navbar-text navbar-version pull-left"><b>0.3</b></span>-->
</div>
<div class="collapse navbar-collapse nav-collapse">
<ul class="nav navbar-nav">
<li class="divider-vertical"></li>
<li><a href="http://colour-science.org">colour-science.org</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-life-ring"> Documentation</i><b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<a href="api.html" class="fa fa-life-ring"> API Reference</a>
</li>
<li>
<a href="http://nbviewer.ipython.org/github/colour-science/colour-ipython/blob/master/notebooks/colour.ipynb', True)" class="fa fa-book"> IPython Notebooks</a>
</li>
<li>
<a href="http://colour-science.org/features.php" class="fa fa-lightbulb-o"> Features</a>
</li>
<li>
<a href="http://colour-science.org/contributing.php"><span class="fa fa-gears"> Contributing</span></a>
</li>
</ul>
</li>
<li>
<a href="colour.recovery.dataset.smits1999.html" title="Previous Chapter: colour.recovery.dataset.smits1999 Module"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm">« colour.recovery....</span>
</a>
</li>
<li>
<a href="colour.temperature.html" title="Next Chapter: colour.temperature Package"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm">colour.temperatu... »</span>
</a>
</li>
</ul>
<form class="navbar-form navbar-right" action="search.html" method="get">
<div class="form-group">
<input type="text" name="q" class="form-control" placeholder="Search" />
</div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="section" id="module-colour.recovery.smits1999">
<span id="colour-recovery-smits1999-module"></span><h1>colour.recovery.smits1999 Module<a class="headerlink" href="#module-colour.recovery.smits1999" title="Permalink to this headline">¶</a></h1>
<div class="section" id="smits-1999-reflectance-recovery">
<h2>Smits (1999) - Reflectance Recovery<a class="headerlink" href="#smits-1999-reflectance-recovery" title="Permalink to this headline">¶</a></h2>
<p>Defines objects for reflectance recovery using Smits (1999) method.</p>
<div class="admonition seealso">
<p class="first admonition-title">See also</p>
<p class="last"><a class="reference external" href="http://nbviewer.ipython.org/github/colour-science/colour-ipython/blob/master/notebooks/recovery/smits1999.ipynb">Smits (1999) - Reflectance Recovery IPython Notebook</a></p>
</div>
<p class="rubric">References</p>
<table class="docutils footnote" frame="void" id="id1" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
<tr><td class="label">[1]</td><td>Smits, B. (1999). An RGB-to-Spectrum Conversion for Reflectances.
Journal of Graphics Tools, 4(4), 11–22.
doi:10.1080/10867651.1999.10487511</td></tr>
</tbody>
</table>
<dl class="data">
<dt id="colour.recovery.smits1999.SMITS1999_PRIMARIES">
<tt class="descclassname">colour.recovery.smits1999.</tt><tt class="descname">SMITS1999_PRIMARIES</tt><em class="property"> = array([[ 0.64, 0.33], [ 0.3 , 0.6 ], [ 0.15, 0.06]])</em><a class="headerlink" href="#colour.recovery.smits1999.SMITS1999_PRIMARIES" title="Permalink to this definition">¶</a></dt>
<dd><p>Current Smits (1999) method implementation colourspace primaries.</p>
<p>SMITS1999_PRIMARIES : ndarray, (3, 2)</p>
</dd></dl>
<dl class="data">
<dt id="colour.recovery.smits1999.SMITS1999_WHITEPOINT">
<tt class="descclassname">colour.recovery.smits1999.</tt><tt class="descname">SMITS1999_WHITEPOINT</tt><em class="property"> = (0.3333333333333333, 0.3333333333333333)</em><a class="headerlink" href="#colour.recovery.smits1999.SMITS1999_WHITEPOINT" title="Permalink to this definition">¶</a></dt>
<dd><p>Current Smits (1999) method implementation colourspace whitepoint.</p>
<p>SMITS1999_WHITEPOINT : tuple</p>
</dd></dl>
<dl class="data">
<dt id="colour.recovery.smits1999.SMITS1999_XYZ_TO_RGB_MATRIX">
<tt class="descclassname">colour.recovery.smits1999.</tt><tt class="descname">SMITS1999_XYZ_TO_RGB_MATRIX</tt><em class="property"> = array([[ 2.68965517, -1.27586207, -0.4137931 ], [-1.02210817, 1.97828662, 0.04382156], [ 0.06122449, -0.2244898 , 1.16326531]])</em><a class="headerlink" href="#colour.recovery.smits1999.SMITS1999_XYZ_TO_RGB_MATRIX" title="Permalink to this definition">¶</a></dt>
<dd><p>Current Smits (1999) method implementation <em>RGB</em> colourspace to
<em>CIE XYZ</em> tristimulus values matrix.</p>
<p>SMITS1999_XYZ_TO_RGB_MATRIX : array_like, (3, 3)</p>
</dd></dl>
<dl class="function">
<dt id="colour.recovery.smits1999.XYZ_to_RGB_smits1999">
<tt class="descclassname">colour.recovery.smits1999.</tt><tt class="descname">XYZ_to_RGB_smits1999</tt><big>(</big><em>XYZ</em>, <em>chromatic_adaptation_transform=u'Bradford'</em><big>)</big><a class="reference internal" href="_modules/colour/recovery/smits1999.html#XYZ_to_RGB_smits1999"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#colour.recovery.smits1999.XYZ_to_RGB_smits1999" title="Permalink to this definition">¶</a></dt>
<dd><p>Convenient object to convert from <em>CIE XYZ</em> tristimulus values to <em>RGB</em>
colourspace in conditions required by the current Smits (1999) method
implementation.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>XYZ</strong> (<em>array_like</em>) – <em>CIE XYZ</em> tristimulus values.</li>
<li><strong>chromatic_adaptation_method</strong> (<em>unicode, optional</em>) – {‘CAT02’, ‘XYZ Scaling’, ‘Von Kries’, ‘Bradford’, ‘Sharp’, ‘Fairchild,
‘CMCCAT97’, ‘CMCCAT2000’, ‘Bianco’, ‘Bianco PC’},
<em>Chromatic adaptation</em> method.</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first"><em>RGB</em> colour array.</p>
</td>
</tr>
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">ndarray</p>
</td>
</tr>
</tbody>
</table>
<p class="rubric">Notes</p>
<ul class="simple">
<li>Input <em>CIE XYZ</em> tristimulus values are in domain [0, 1].</li>
</ul>
<p class="rubric">Examples</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">XYZ</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">([</span><span class="mf">0.07049534</span><span class="p">,</span> <span class="mf">0.10080000</span><span class="p">,</span> <span class="mf">0.09558313</span><span class="p">])</span>
<span class="gp">>>> </span><span class="n">XYZ_to_RGB_smits1999</span><span class="p">(</span><span class="n">XYZ</span><span class="p">)</span>
<span class="go">array([ 0.0214496..., 0.1315460..., 0.0928760...])</span>
</pre></div>
</div>
</dd></dl>
<dl class="function">
<dt id="colour.recovery.smits1999.RGB_to_spectral_Smits1999">
<tt class="descclassname">colour.recovery.smits1999.</tt><tt class="descname">RGB_to_spectral_Smits1999</tt><big>(</big><em>RGB</em><big>)</big><a class="reference internal" href="_modules/colour/recovery/smits1999.html#RGB_to_spectral_Smits1999"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#colour.recovery.smits1999.RGB_to_spectral_Smits1999" title="Permalink to this definition">¶</a></dt>
<dd><p>Recovers the spectral power distribution of given <em>RGB</em> colourspace array
using Smits (1999) method.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>RGB</strong> (<em>array_like, (3,)</em>) – <em>RGB</em> colourspace array.</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">Recovered spectral power distribution.</td>
</tr>
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">SpectralPowerDistribution</td>
</tr>
</tbody>
</table>
<p class="rubric">Examples</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="n">RGB</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">([</span><span class="mf">0.02144962</span><span class="p">,</span> <span class="mf">0.13154603</span><span class="p">,</span> <span class="mf">0.09287601</span><span class="p">])</span>
<span class="gp">>>> </span><span class="n">RGB_to_spectral_Smits1999</span><span class="p">(</span><span class="n">RGB</span><span class="p">)</span>
<span class="go"><...SpectralPowerDistribution object at 0x...></span>
</pre></div>
</div>
</dd></dl>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<p class="pull-right">
<a href="#">Back to top</a>
</p>
<p>
© Copyright 2013 - 2015, Colour Developers.<br/>
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.2.2.<br/>
</p>
</div>
</footer>
</body>
</html>