-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated documentation for docs//pulls/309
jenkins-neurorse-plenoptic-PR-309-2
- Loading branch information
1 parent
3b763fd
commit 7281ce2
Showing
318 changed files
with
150,930 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+65.7 KB
.../309/_downloads/03178b6f543a04b2cdde69b579a94252/conceptual_intro_primaries.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
112 changes: 112 additions & 0 deletions
112
docs/pulls/309/_downloads/1529dad3c6f78dd530d43172bfef8f56/conceptual_intro.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
import json | ||
|
||
import matplotlib.pyplot as plt | ||
import numpy as np | ||
|
||
np.random.seed(0) | ||
|
||
# set the style | ||
plt.style.use("fivethirtyeight") | ||
plt.rcParams["axes.facecolor"] = "white" | ||
plt.rcParams["figure.facecolor"] = "white" | ||
plt.rcParams["axes.edgecolor"] = "white" | ||
plt.rcParams["savefig.facecolor"] = "white" | ||
plt.rcParams["savefig.edgecolor"] = "white" | ||
plt.rcParams["savefig.bbox"] = "tight" | ||
|
||
with open("conceptual_intro_data.json") as f: | ||
data = json.load(f) | ||
# 2-deg fundamentals (energy linear, 5nm stepsize) from Stockman & Sharpe 2000, | ||
# downloaded from http://www.cvrl.org/cones.htm | ||
CONES = data["CONES"] | ||
# from math tools homework, interpolated to have same number of entries as | ||
# CONES | ||
PRIMARIES = np.array(data["PRIMARIES"]) | ||
|
||
# for matrix multiplication | ||
CONES_MATRIX = np.stack([CONES["S"], CONES["M"], CONES["L"]]) | ||
CONES_MATRIX[np.isnan(CONES_MATRIX)] = 0 | ||
|
||
RANDOM_LIGHT = np.random.random(len(PRIMARIES)) | ||
|
||
|
||
def cones(): | ||
_, axes = plt.subplots(1, 2, figsize=(10, 5)) | ||
axes[0].plot(CONES["nm"], CONES["S"], c="b") | ||
axes[0].plot(CONES["nm"], CONES["M"], c="g") | ||
axes[0].plot(CONES["nm"], CONES["L"], c="r") | ||
axes[0].set( | ||
xlabel="Wavelength (nm)", | ||
ylabel="Cone sensitivity (arbitrary units)", | ||
title="Cone sensitivity curves", | ||
) | ||
random_light_weights = CONES_MATRIX @ RANDOM_LIGHT | ||
x = np.arange(len(random_light_weights)) | ||
axes[1].bar(x, random_light_weights, width=0.4, color=["b", "g", "r"]) | ||
axes[1].set( | ||
xlabel="Cone class", | ||
ylabel="Cone response (arbitrary units)", | ||
xticks=x, | ||
xticklabels=["S", "M", "L"], | ||
title="Cone responses to random light", | ||
) | ||
|
||
|
||
def primaries(): | ||
_, axes = plt.subplots(1, 2, figsize=(10, 5)) | ||
axes[0].plot(CONES["nm"], RANDOM_LIGHT) | ||
for p, c in zip(PRIMARIES.T, ["g", "b", "r"]): | ||
axes[1].plot(CONES["nm"], p, c=c) | ||
axes[0].set( | ||
xlabel="Wavelength (nm)", | ||
ylabel="Energy (arbitrary units)", | ||
title="Random light", | ||
) | ||
axes[1].set(xlabel="Wavelength (nm)", title="Primaries") | ||
|
||
|
||
def matched_light(): | ||
_, axes = plt.subplots(1, 2, figsize=(10, 5)) | ||
cones_to_primaries = np.linalg.inv(CONES_MATRIX @ PRIMARIES) | ||
matched_light = PRIMARIES @ cones_to_primaries @ CONES_MATRIX @ RANDOM_LIGHT | ||
axes[0].plot(CONES["nm"], RANDOM_LIGHT, label="Random light") | ||
axes[0].plot(CONES["nm"], matched_light, "--", label="Matched light") | ||
axes[0].set( | ||
xlabel="Wavelength (nm)", | ||
ylabel="Energy (arbitrary units)", | ||
title="Random and matched light", | ||
) | ||
axes[0].legend(loc="upper left") | ||
random_light_weights = CONES_MATRIX @ RANDOM_LIGHT | ||
matched_light_weights = CONES_MATRIX @ matched_light | ||
x = np.arange(len(random_light_weights)) | ||
# from https://matplotlib.org/stable/gallery/lines_bars_and_markers/barchart.html | ||
width = 0.4 | ||
styles = [ | ||
{ | ||
"color": ["b", "g", "r"], | ||
"edgecolor": ["b", "g", "r"], | ||
"linewidth": plt.rcParams["lines.linewidth"], | ||
}, | ||
{ | ||
"color": "w", | ||
"edgecolor": ["b", "g", "r"], | ||
"linestyle": "--", | ||
"linewidth": plt.rcParams["lines.linewidth"], | ||
}, | ||
] | ||
|
||
labels = ["Random light", "Matched light"] | ||
weights = [random_light_weights, matched_light_weights] | ||
|
||
for multiplier, (name, wts, sty) in enumerate(zip(labels, weights, styles)): | ||
offset = width * multiplier | ||
axes[1].bar(x + offset, wts, label=name, width=width, **sty) | ||
|
||
axes[1].set( | ||
xlabel="Cone class", | ||
ylabel="Cone response (arbitrary units)", | ||
xticks=x + width / 2, | ||
xticklabels=["S", "M", "L"], | ||
title="Cone responses", | ||
) |
Binary file added
BIN
+60.3 KB
...ulls/309/_downloads/1c8eab99f9dd6396277d0358a222da7a/conceptual_intro_cones.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+196 KB
...loads/25e965d06cde0e560dc10a17c5225acf/conceptual_intro_matched_light.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+71.9 KB
.../_downloads/2674bcfeef3e87c3bcb2e04f744f78b7/conceptual_intro_matched_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+172 KB
...09/_downloads/37e7919d138a2e2c608fb9e66823e1ea/conceptual_intro_cones.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.6 KB
.../pulls/309/_downloads/3aff9c480cac3a08db7a31fcd2798f4f/conceptual_intro_matched_light.pdf
Binary file not shown.
Binary file added
BIN
+15.3 KB
docs/pulls/309/_downloads/4bc027cfe8443a2720d072e12b44146d/conceptual_intro_primaries.pdf
Binary file not shown.
Binary file added
BIN
+189 KB
...downloads/b726dd1deab991956e8f94af39366874/conceptual_intro_primaries.hires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16 KB
docs/pulls/309/_downloads/febea97ed019274548f2a31fbc3c8e94/conceptual_intro_cones.pdf
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+76.8 KB
docs/pulls/309/_images/tutorials_advanced_Synthesis_extensions_11_0.png
Oops, something went wrong.
Binary file added
BIN
+394 KB
docs/pulls/309/_images/tutorials_advanced_Synthesis_extensions_6_0.png
Oops, something went wrong.
Binary file added
BIN
+121 KB
docs/pulls/309/_images/tutorials_advanced_Synthesis_extensions_8_1.png
Oops, something went wrong.
Binary file added
BIN
+125 KB
docs/pulls/309/_images/tutorials_advanced_Synthesis_extensions_9_1.png
Oops, something went wrong.
Binary file added
BIN
+66.1 KB
docs/pulls/309/_images/tutorials_applications_09_Original_MAD_9_0.png
Oops, something went wrong.
Binary file added
BIN
+57.7 KB
docs/pulls/309/_images/tutorials_applications_Demo_Eigendistortion_10_0.png
Oops, something went wrong.
Binary file added
BIN
+75.7 KB
docs/pulls/309/_images/tutorials_applications_Demo_Eigendistortion_10_1.png
Oops, something went wrong.
Binary file added
BIN
+85.2 KB
docs/pulls/309/_images/tutorials_applications_Demo_Eigendistortion_10_2.png
Oops, something went wrong.
Binary file added
BIN
+61.4 KB
docs/pulls/309/_images/tutorials_applications_Demo_Eigendistortion_16_0.png
Oops, something went wrong.
Binary file added
BIN
+77.8 KB
docs/pulls/309/_images/tutorials_applications_Demo_Eigendistortion_16_1.png
Oops, something went wrong.
Binary file added
BIN
+106 KB
docs/pulls/309/_images/tutorials_applications_Demo_Eigendistortion_16_2.png
Oops, something went wrong.
Binary file added
BIN
+75.5 KB
docs/pulls/309/_images/tutorials_applications_Demo_Eigendistortion_4_2.png
Oops, something went wrong.
Binary file added
BIN
+52.8 KB
docs/pulls/309/_images/tutorials_applications_Demo_Eigendistortion_6_1.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+27.4 KB
docs/pulls/309/_images/tutorials_models_03_Steerable_Pyramid_11_1.png
Oops, something went wrong.
Binary file added
BIN
+37.4 KB
docs/pulls/309/_images/tutorials_models_03_Steerable_Pyramid_11_2.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+39.2 KB
docs/pulls/309/_images/tutorials_models_03_Steerable_Pyramid_30_3.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+395 KB
docs/pulls/309/_images/tutorials_models_04_Perceptual_distance_12_0.png
Oops, something went wrong.
Binary file added
BIN
+392 KB
docs/pulls/309/_images/tutorials_models_04_Perceptual_distance_15_0.png
Oops, something went wrong.
Binary file added
BIN
+622 KB
docs/pulls/309/_images/tutorials_models_04_Perceptual_distance_21_0.png
Oops, something went wrong.
Binary file added
BIN
+393 KB
docs/pulls/309/_images/tutorials_models_04_Perceptual_distance_5_1.png
Oops, something went wrong.
Binary file added
BIN
+274 KB
docs/pulls/309/_images/tutorials_models_04_Perceptual_distance_8_0.png
Oops, something went wrong.
Binary file added
BIN
+263 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_14_1.png
Oops, something went wrong.
Binary file added
BIN
+103 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_16_0.png
Oops, something went wrong.
Binary file added
BIN
+225 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_20_0.png
Oops, something went wrong.
Binary file added
BIN
+209 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_22_0.png
Oops, something went wrong.
Binary file added
BIN
+370 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_29_1.png
Oops, something went wrong.
Binary file added
BIN
+426 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_32_0.png
Oops, something went wrong.
Binary file added
BIN
+26.1 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_34_0.png
Oops, something went wrong.
Binary file added
BIN
+23.3 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_34_1.png
Oops, something went wrong.
Binary file added
BIN
+344 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_37_0.png
Oops, something went wrong.
Binary file added
BIN
+25.6 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_39_0.png
Oops, something went wrong.
Binary file added
BIN
+23.1 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_39_1.png
Oops, something went wrong.
Binary file added
BIN
+365 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_42_0.png
Oops, something went wrong.
Binary file added
BIN
+23.6 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_44_0.png
Oops, something went wrong.
Binary file added
BIN
+21.7 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_44_1.png
Oops, something went wrong.
Binary file added
BIN
+142 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_47_0.png
Oops, something went wrong.
Binary file added
BIN
+1.4 MB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_4_0.png
Oops, something went wrong.
Binary file added
BIN
+449 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_52_0.png
Oops, something went wrong.
Binary file added
BIN
+247 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_55_0.png
Oops, something went wrong.
Binary file added
BIN
+201 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_58_0.png
Oops, something went wrong.
Binary file added
BIN
+867 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_5_0.png
Oops, something went wrong.
Binary file added
BIN
+226 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_61_0.png
Oops, something went wrong.
Binary file added
BIN
+293 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_65_0.png
Oops, something went wrong.
Binary file added
BIN
+402 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_69_0.png
Oops, something went wrong.
Binary file added
BIN
+333 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_6_0.png
Oops, something went wrong.
Binary file added
BIN
+186 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_73_0.png
Oops, something went wrong.
Binary file added
BIN
+82.1 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_76_0.png
Oops, something went wrong.
Binary file added
BIN
+103 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_8_0.png
Oops, something went wrong.
Binary file added
BIN
+374 KB
docs/pulls/309/_images/tutorials_models_Metamer-Portilla-Simoncelli_96_0.png
Oops, something went wrong.
Oops, something went wrong.