color in scientific visualization

45
SAN DIEGO SUPERCOMPUTER CENTER University of California, San Diego Color in Scientific Visualization Mike Bailey, Mike Bailey, PhD PhD San Diego Supercomputer Center San Diego Supercomputer Center and and University of California at San Diego University of California at San Diego mjb@ mjb@sdsc sdsc.edu edu 858-534-5142 858-534-5142 SAN DIEGO SUPERCOMPUTER CENTER University of California, San Diego “The often scant benefits derived from “The often scant benefits derived from coloring data indicate that even putting a coloring data indicate that even putting a good color in a good place is a complex good color in a good place is a complex matter. Indeed, so difficult and subtle matter. Indeed, so difficult and subtle that avoiding catastrophe becomes the that avoiding catastrophe becomes the first principle in bringing color to first principle in bringing color to information. information. Above all, do no harm Above all, do no harm.” .” Edward Edward Tufte Tufte

Upload: others

Post on 18-Dec-2021

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Color in Scientific Visualization

Mike Bailey, Mike Bailey, PhDPhD San Diego Supercomputer CenterSan Diego Supercomputer Center

andand University of California at San DiegoUniversity of California at San Diego

mjb@[email protected]

858-534-5142858-534-5142

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

“The often scant benefits derived from “The often scant benefits derived from coloring data indicate that even putting a coloring data indicate that even putting a good color in a good place is a complex good color in a good place is a complex matter. Indeed, so difficult and subtle matter. Indeed, so difficult and subtle that avoiding catastrophe becomes the that avoiding catastrophe becomes the first principle in bringing color to first principle in bringing color to information. information. Above all, do no harmAbove all, do no harm.”.”

––EdwardEdward Tufte Tufte

Page 2: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

The Electromagnetic Spectrum

Blue: 380 nm

Green: 520 nm

Red: 780 nm

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

The Human Eye

Optic nerve

RetinaLens

Page 3: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Cones

•• ~7,000,000~7,000,000

•• Concentrated near the center of the retinaConcentrated near the center of the retina

•• Sensitive to high, medium, and low Sensitive to high, medium, and low wavelengthswavelengths

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Afterimages

Page 4: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Afterimages

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Color Receptors in the Cones

Low

Medium

High

Area of Spectrum:

Wavelength: Approx. color:

560 nm

530 nm

420 nm

Red

Green

Blue

Page 5: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Combinations of Color To The Brain

H

M

L

R - G

B - Y

Luminance

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

How Many Shades of Different ColorsAre We Able to Detect?

Page 6: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Page 7: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

How Many Colors Do You Really Need?

Green 256 8Red 128 7Blue 64 6

Color # Shades # Bits

It depends if you want to do shading . . .

Page 8: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Rods

•• ~115,000,000~115,000,000

•• Concentrated on the periphery of the Concentrated on the periphery of the retinaretina

•• Sensitive to intensitySensitive to intensity

•• Most sensitive at 500Most sensitive at 500 nm nm (~green) (~green)

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

How Many Pixels Do You Need?

A person with 20/20 vision has a visual acuity of:1 arc-minute = 1/60°

36 9531 11124 14312 286

9 4006 600

Viewing Distance(inches)

RequiredPixel Density

(ppi)Density = ΘD

1

=1/60°=.00029R

19” monitor

16” monitor

1280x1024

Page 9: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Additive Colors

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Additive Color (RGB)

Page 10: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

RGB Color Space

Red

Green

B lue Magenta

Cyan

Yellow

White

B lack

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Digital Film Recorders• Use additive colors

• Output resolution is limited by the quality of agrayscale monitor, not your display

• Typical resolutions currently available range from2K2 to 32K2

• Many different film heads available: Polaroid, 16mmmovies, 35mm slides and movies, 4x5 and 8x10transparencies, 70mm movies (for IMAX andOmnimax)

Page 11: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Digital Film Recorders

Click!

Click!

Click!

High-resolutiongrayscalemonitor

Color wheel Camera

FromComputer

R

B

G

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Lasergraphics Digital Film Recorder

Page 12: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Is There a More Intuitive Way To DoAdditive Colors Than RGB?

Hue

Saturation

ValueBlack

White

To convert from HSV to RGB, see: Foley, VanDam, Feiner, and Hughes, Computer Graphics:Principles and Practices, Addison-Wesley, 1990.

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Subtractive Colors

Page 13: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Subtractive Color (CMYK)

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

CMY Color Space

Red

Green

B lueMagenta

Cyan

Yellow

White

B lack

Page 14: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Color Paper Printing

• Uses subtractive colors

• Uses 3 or 4 passes

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

How Do ColorSeparationsWork in ColorPrinting?

Page 15: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Page 16: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Printing the Four Colors

Wax (“crayola”)

Toner (“skittles”)

Toner (“prism”)

Sheets (“monet”)

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Color Paper Printing

• Uses subtractive colors

• Uses 3 or 4 passes

• Resolution ranges from 200 DPI to 600 DPI

• Considerable variation in quality betweenproducts

• Considerable variation in color gamut betweenproducts

Page 17: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

CIE Chromaticity Diagram

y

0.00

0.10

0.20

0.30

0.40

0.50

0.60

0.70

0.80

0.90

x

0.00 0.20 0.40 0.60 0.80White Point380 nm

780 nm

520 nm

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

CIE Chromaticity Diagram

y

0.00

0.10

0.20

0.30

0.40

0.50

0.60

0.70

0.80

0.90

x

0.00 0.20 0.40 0.60 0.80White Point380 nm

780 nm

520 nm

C

DC’

Page 18: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Color Gamut for an SGI Monitor

Eye

Color CRTWhite Point

Monitor White

y

0.00

0.10

0.20

0.30

0.40

0.50

0.60

0.70

0.80

0.90

x

0.00 0.20 0.40 0.60 0.80

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Color Gamut for a Monitorand Color Slides

Eye

Color CRT

Projected Color Slides

White Point

Slide White

y

0.00

0.10

0.20

0.30

0.40

0.50

0.60

0.70

0.80

0.90

x

0.00 0.20 0.40 0.60 0.80

Page 19: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Color Gamut for a Monitorand Color Printer

Eye

Color CRT

Color Paper Hardcopy

y

0.00

0.10

0.20

0.30

0.40

0.50

0.60

0.70

0.80

0.90

x

0.00 0.20 0.40 0.60 0.80

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Image File Formats

• > 100 separate image file formats

• The SDSC Image Tools will deal with 30 ofthem

• Many hardcopy devices only accept PostScript

Page 20: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

The SDSC Image Tools

• imconv file.rgb file.tif

• imscale -scale .45 file.rgb file.tif

• imstoryboard file1.tif file2.gif … -outfile all.tif

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Printing at SDSC• lpr -Pprism file.ps

• lpr -Pprism file.tif

• lpr -Jt -Pskittles file.tif

• SDSC color printers in order of increasing quality(and cost):

• crayola

• skittles

• starburst

• prism

• monet

Page 21: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Publishing Images on the WWW

• Images must be in GIF, JPG, or PNG format

• It is handy to create thumbnails of images to increasedownload speed

imconv image.rgb image.jpg

imscale -scale .30 image.rgb image.thumb.jpg

<a href=image.jpg><img src=image.thumb.jpg></a>

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Some Good Rules of ThumbWhen Using Color for Scientific

Visualization

Page 22: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

What Makes a Good Contrast?

• Many people think simply adding color ontoanother color makes a good contrast

• In fact, a better measure is the ∆ luminance

• Knowing this also helps if someone makes agrayscale photocopy of your color hardcopy

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Color Alone Doesn’t Cut It !

Four score and seven years ago, our foreparents brought forth upon this continent a new nation, conceived in liberty, and dedicated to the proposition that all people are created equal.

I sure hope that my lifedoes not depend on

being able to read thisquickly and accurately!

Page 23: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Contrast is Crucial !

Four score and seven years ago, our foreparents brought forth upon this continent a new nation, conceived in liberty, and dedicated to the proposition that all people are created equal.

I would prefer that mylife depend on being

able to read thisquickly and accurately!

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

The Luminance Equation

Y = .30*Red + .59*Green + .11*Blue

Page 24: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Luminance Table

Black

White

Red

Green

Blue

Cyan

Magenta

Orange

Yellow

R G B Y

0.0

1.0

1.0

0.0

0.0

0.0

1.0

1.0

1.0

0.0

1.0

0.0

1.0

0.0

1.0

0.0

0.5

1.0

0.0

1.0

0.0

0.0

1.0

1.0

1.0

0.0

0.0

0.00

1.00

0.30

0.59

0.11

0.70

0.41

0.60

0.89

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Contrast Table

Black

White

Red

Green

Blue

Cyan

Magenta

Orange

Yellow

Black White Red Green Blue Cyan Magenta Orange Yellow

0.00

1.00

0.30

0.59

0.11

0.70

0.41

0.60

0.89

1.00

0.00

0.70

0.41

0.89

0.30

0.59

0.41

0.11

0.30

0.70

0.00

0.29

0.19

0.40

0.11

0.30

0.59

0.59

0.41

0.29

0.00

0.48

0.11

0.18

0.01

0.30

0.11

0.89

0.19

0.48

0.00

0.59

0.30

0.49

0.78

0.70

0.30

0.40

0.11

0.59

0.00

0.29

0.11

0.19

0.41

0.59

0.11

0.18

0.30

0.29

0.00

0.19

0.48

0.60

0.41

0.30

0.01

0.49

0.11

0.19

0.00

0.30

0.89

0.11

0.59

0.30

0.78

0.19

0.48

0.30

0.00

Page 25: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Black

White

Red

Yellow

Green

Blue

Black

White

Red

Yellow

Green

Blue

Black

White

Red

Yellow

Green

Blue

Black

White

Red

Yellow

Green

Blue

Black

White

Red

Yellow

Green

Blue

Black

White

Red

Yellow

Green

Blue

Black

White

Red

Yellow

Green

Blue

Black

White

Red

Yellow

Green

Blue

Black

White

Red

Yellow

Green

Blue

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Do Not Attempt to Fight Pre-Established Color Meanings

Page 26: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Pre-Established Color Meanings

Red:

StopOnOff

DangerousHot

High stressOxygenShallow

Money loss

Green:

OnPlants

CarbonMoving

Blue:

CoolSafeDeep

Nitrogen

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Use the Right Color Interpolation Method

•• Gray scaleGray scale

•• Intensity InterpolationIntensity Interpolation

•• Saturation interpolationSaturation interpolation

•• Two-color interpolationTwo-color interpolation

•• Rainbow scaleRainbow scale

•• Heated object interpolationHeated object interpolation

Page 27: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Gray Scale

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

SAN DIEGO SUPERCOMPUTER CENTER

A National Center for Computational Science & Engineering

Intensity and Saturation Color Scales

Page 28: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Two-Color Interpolation

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Rainbow Color Scale

Page 29: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Heated Object Color Scale

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Color Scale Contours

Page 30: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

A Gallery of Color Scales

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Limit the Total Number of Colors if Viewers are to Discern Information Quickly

Instructions:

1. Press red to logoff normally

2. Press light red to delete all your files, change your password to something random, and logoff

You have 2 seconds • • •

Page 31: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

?

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

The Ability to Discriminate Colors Changes with Surrounding Color

Page 32: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

SAN DIEGO SUPERCOMPUTER CENTER

A National Center for Computational Science & Engineering

The Ability to Discriminate Colors Changes with Surrounding Color

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

The Ability to Discriminate Colors Changes with Surrounding Color

Page 33: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Do Not Widely Separate Colors that Need to be Compared

1. Find the color on the right that matches the color on the left

2. If you select wrong, we will change your password to something random, and log you off

You have 2 seconds • • •

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Page 34: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Page 35: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

The Ability to Discriminate Colors Changes with Size of the Colored Area

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

The Ability to Discriminate Colors Changes with Ambient Light

Page 36: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

The Ability to Discriminate Colors Changes with the Age of the Viewer

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Beware of Mach Banding

Page 37: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Beware of Mach Banding

ActualIntens ity

PerceivedIntens ity

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Beware of Mach Banding

Page 38: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Be Aware of Color Recognition Deficiencies

•• Actually no such thing as “color blindness”Actually no such thing as “color blindness”

•• ~10% of Caucasian men~10% of Caucasian men

•• ~4% of non-Caucasian men~4% of non-Caucasian men

•• ~0.5% of women~0.5% of women

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Code Information Redundantly

Four score and seven years ago, our forefathers brought forth upon this continent a new nation...

Four score and seven years ago, our forefathers brought forth upon this continent a new nation...

Four score and seven years ago, our forefathers brought forth upon this continent a new nation...

Page 39: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Code Information Redundantly: Color +

•• Different fontsDifferent fonts

•• SymbolsSymbols

•• Fill patternFill pattern

•• Outline patternOutline pattern

•• Outline thicknessOutline thickness

This also helps if someone makes agrayscale photocopy of your color hardcopy

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Use a Black or White Line as the Boundary Between Colored Regions

Page 40: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Watch the Use of Saturated Blues for Fast-Moving Items or Fine Detail

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Watch the Use of Saturated Reds and Blues Together

Four score and seven years ago, our foreparents brought forth upon this continent a new nation, conceived in liberty, and dedicated to the proposition that all people are created equal.

Reds and Blues are onopposite ends of thecolor spectrum. It ishard for your eyes tofocus on both.

Page 41: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Watch the Use of Saturated Reds and Blues Together

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Do Not Display High SpatialFrequencies in Color

Page 42: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Be Aware of the Differences Between Color Gamuts

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Color Gamut for a Monitor and Color Printer

Eye

Color CRT

Color Paper Hardcopy

y

0.00

0.10

0.20

0.30

0.40

0.50

0.60

0.70

0.80

0.90

x

0.00 0.20 0.40 0.60 0.80

Page 43: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Color-Preserving andContrast-Preserving Mappings

White Point

1234

1 3

2 3

2 4??

Monitor colors to be printed

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Some Basic Rules forUnderstanding the Limitations of

NTSC Video

Page 44: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Understand the Limitations of going from Workstations to NTSC

•• Use less saturated colors due to color gamut considerationsUse less saturated colors due to color gamut considerations

•• Expect an effective resolution of (at best)Expect an effective resolution of (at best)

~640x480 ~640x480

•• Do not use single-pixel thick linesDo not use single-pixel thick lines

•• Stay away from the edges of the screenStay away from the edges of the screen

•• Some colors have better video resolution than othersSome colors have better video resolution than others

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

NTSC Cycles of Encoding per Scanline

Intensity

Orange-Blue

Purple-Green

What: Cycles/Scanline:

267

96

35

Page 45: Color in Scientific Visualization

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Only You Can Prevent Color Pollution

Just because you have 224 different colors,

doesn’t mean you must use them all •••

SAN DIEGO SUPERCOMPUTER CENTER

University of California, San Diego

Good Color and Perception References• Roy Hall, Illumination and Color in Computer Generated Imagery, Springer-Verlag,1989.

• R. Daniel Overheim and David Wagner, Light and Color, John Wiley & Sons, 1982.

• David Travis, Effective Color Displays, Academic Press, 1991.

• L.G. Thorell and W.J. Smith, Using Computer Color Effectively, Prentice Hall, 1990.

• Edward Tufte, The Visual Display of Quantitative Information, Graphics Press, 1983.

• Edward Tufte, Envisioning Information, Graphics Press, 1990.

• Edward Tufte, Visual Explanations, Graphics Press, 1997.

• Howard Resnikoff, The Illusion of Reality, Springer-Verlag, 1989.