http://old.vijayp.ca/blog/2012/06/colours-in-movie-posters-since-1914/
Affine transformations satisfy:
$ \vec{y} = A\vec{x} + \vec{b} $
Affine transformations satisfy:
$ \vec{y} = A\vec{x} + \vec{b} $
We can use these to accomplish:
Affine transformations satisfy:
$ \vec{y} = A\vec{x} + \vec{b} $
We can use these to accomplish:
Affine transformations satisfy:
$ \vec{y} = A\vec{x} + \vec{b} $
We can use these to accomplish:
When we are examining data, what can we look for?
Today we'll talk about representing things based on categories and based on continuities.
Rods (low-light) and cones (color) mediate vision. Humans have about 20 times as many rods (120 million) as cones (6 million).
https://upload.wikimedia.org/wikipedia/commons/e/e8/1414_Rods_and_Cones.jpg By OpenStax College CC BY 3.0, via Wikimedia Commons
(See? Works better as discrete!)
https://commons.wikimedia.org/wiki/File:HSV_color_solid_cylinder.png
By HSV_color_solid_cylinder.png: SharkD derivative work: SharkD Talk [CC BY-SA 3.0 (http://creativecommons.org/licenses/by-sa/3.0) or GFDL (http://www.gnu.org/copyleft/fdl.html)], via Wikimedia Commons
Assign each value to a specific color or element.
$f(v) \rightarrow (R, G, B)$
We can also re-map:
$f(v') \rightarrow (R, G, B)$
$v' = f(v)$
For instance, with logs or squares.
We map from a range of values to (0, 1):
$ v' = (v - v_0)/(v_1 - v_0) $
Today we will explore images and colors, and how our choice of colormaps affects our perception of them.
You will need to load data into your notebook, which you can do using these commands:
import numpy as np
import h5py
fn1 = "/home/shared/sp18-is590dv/data/michigan_lld/michigan_lld.flt"
michigan = np.fromfile(fn1, dtype='f4').reshape((5365, 4201))
fn2 = "/home/shared/sp18-is590dv/data/single_dicom.h5"
with h5py.File(fn2) as f:
scan = f["/scan"][:]
We will now utilize the plt.imshow
command to show these images, and discuss
how to modify the transformation of the data beforehand.
With the Michigan data and the scan data, evaluate: