Color in Scientific Visualization

Similar documents
II-1. Color in Scientific Visualization. Let s start with the most important component in a visualization system You!

Using Color in Scientific Visualization

Colors in Visualization. By Mike Bailey Oregon State University

Colors in Scientific Visualization. Mike Bailey Oregon State University

Adapted from the Slides by Dr. Mike Bailey at Oregon State University

Color in Scientific Visualization

Colors in Images & Video

LECTURE 07 COLORS IN IMAGES & VIDEO

Colour. Why/How do we perceive colours? Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!

Color & Graphics. Color & Vision. The complete display system is: We'll talk about: Model Frame Buffer Screen Eye Brain

Colour. Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!) Colour Lecture!

Color and Perception. CS535 Fall Daniel G. Aliaga Department of Computer Science Purdue University

Multimedia Systems Color Space Mahdi Amiri March 2012 Sharif University of Technology

Colour. Cunliffe & Elliott, Chapter 8 Chapman & Chapman, Digital Multimedia, Chapter 5. Autumn 2016 University of Stirling

COLOR and the human response to light

The Science Seeing of process Digital Media. The Science of Digital Media Introduction

Color Image Processing

Mahdi Amiri. March Sharif University of Technology

Lecture 3: Grey and Color Image Processing

Wireless Communication

12 Color Models and Color Applications. Chapter 12. Color Models and Color Applications. Department of Computer Science and Engineering 12-1

Reading. Foley, Computer graphics, Chapter 13. Optional. Color. Brian Wandell. Foundations of Vision. Sinauer Associates, Sunderland, MA 1995.

University of British Columbia CPSC 414 Computer Graphics

Digital Image Processing

Image and video processing (EBU723U) Colour Images. Dr. Yi-Zhe Song

Color and Color Model. Chap. 12 Intro. to Computer Graphics, Spring 2009, Y. G. Shin

Color, Vision, & Perception. Outline

COLOR. and the human response to light

CIE tri-stimulus experiment. Color Value Functions. CIE 1931 Standard. Color. Diagram. Color light intensity for visual color match

Introduction & Colour

IFT3355: Infographie Couleur. Victor Ostromoukhov, Pierre Poulin Dép. I.R.O. Université de Montréal

CS 565 Computer Vision. Nazar Khan PUCIT Lecture 4: Colour

Raster Graphics. Overview קורס גרפיקה ממוחשבת 2008 סמסטר ב' What is an image? What is an image? Image Acquisition. Image display 5/19/2008.

קורס גרפיקה ממוחשבת 2008 סמסטר ב' Raster Graphics 1 חלק מהשקפים מעובדים משקפים של פרדו דוראנד, טומס פנקהאוסר ודניאל כהן-אור

Digital Image Processing Color Models &Processing

VC 16/17 TP4 Colour and Noise

To discuss. Color Science Color Models in image. Computer Graphics 2

Introduction. The Spectral Basis for Color

Digital Image Processing COSC 6380/4393. Lecture 20 Oct 25 th, 2018 Pranav Mantini

Lecture 8. Color Image Processing

Color Image Processing. Gonzales & Woods: Chapter 6

Chapter 3 Part 2 Color image processing

University of British Columbia CPSC 314 Computer Graphics Jan-Apr Tamara Munzner. Color.

Reading for Color. Vision/Color. RGB Color. Vision/Color. University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013.

Color Science. What light is. Measuring light. CS 4620 Lecture 15. Salient property is the spectral power distribution (SPD)

Understand brightness, intensity, eye characteristics, and gamma correction, halftone technology, Understand general usage of color

The human visual system

Colour + Perception. CMPT 467/767 Visualization Torsten Möller. Pfister/Möller

Overview of Human Cognition and its Impact on User Interface Design (Part 2)

CMPSCI 670: Computer Vision! Color. University of Massachusetts, Amherst September 15, 2014 Instructor: Subhransu Maji

Dr. Shahanawaj Ahamad. Dr. S.Ahamad, SWE-423, Unit-06

Human Vision, Color and Basic Image Processing

Color. Chapter 6. (colour) Digital Multimedia, 2nd edition

Color Image Processing

COLOR. Elements of color. Visible spectrum. The Fovea. Lecture 3 October 30, Ingela Nyström 1. There are three types of cones, S, M and L

excite the cones in the same way.

COLOR. Elements of color. Visible spectrum. The Human Visual System. The Fovea. There are three types of cones, S, M and L. r( λ)

Visual Perception. Overview. The Eye. Information Processing by Human Observer

Color Perception and Applications. Penny Rheingans University of Maryland Baltimore County. Overview

Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester

6 Color Image Processing

Chapter 2 Fundamentals of Digital Imaging

Visual Perception. Jeff Avery

Color Science. CS 4620 Lecture 15

Colour, Vision & Perception

Colors in images. Color spaces, perception, mixing, printing, manipulating...

Color Perception. Color, What is It Good For? G Perception October 5, 2009 Maloney. perceptual organization. perceptual organization

For a long time I limited myself to one color as a form of discipline. Pablo Picasso. Color Image Processing

Digital Image Processing. Lecture # 8 Color Processing

Announcements. Electromagnetic Spectrum. The appearance of colors. Homework 4 is due Tue, Dec 6, 11:59 PM Reading:

Introduction to Multimedia Computing

Introduction to Computer Vision CSE 152 Lecture 18

Comp/Phys/Apsc 715. Example Videos. Administrative 1/23/2014. Lecture 5: Trichromacy, Color Spaces, Properties of Color

Light. intensity wavelength. Light is electromagnetic waves Laser is light that contains only a narrow spectrum of frequencies

Bettina Selig. Centre for Image Analysis. Swedish University of Agricultural Sciences Uppsala University

USE OF COLOR IN REMOTE SENSING

CSE 332/564: Visualization. Fundamentals of Color. Perception of Light Intensity. Computer Science Department Stony Brook University

IMAGE PROCESSING >COLOR SPACES UTRECHT UNIVERSITY RONALD POPPE

Additive. Subtractive

MATH 5300 Lecture 3- Summary Date: May 12, 2008 By: Violeta Constantin

Digital Images. Back to top-level. Digital Images. Back to top-level Representing Images. Dr. Hayden Kwok-Hay So ENGG st semester, 2010

Color Theory: Defining Brown

Our Color Vision is Limited

Color Image Processing EEE 6209 Digital Image Processing. Outline

Multimedia Systems and Technologies

Color Perception. This lecture is (mostly) thanks to Penny Rheingans at the University of Maryland, Baltimore County

CSE512 :: 6 Feb Color. Jeffrey Heer University of Washington

Visual Perception. human perception display devices. CS Visual Perception

Color images C1 C2 C3

Fig Color spectrum seen by passing white light through a prism.

EECS490: Digital Image Processing. Lecture #12

the eye Light is electromagnetic radiation. The different wavelengths of the (to humans) visible part of the spectra make up the colors.

Basics of Colors in Graphics Denbigh Starkey

The Principles of Chromatics

Hello, welcome to the video lecture series on Digital image processing. (Refer Slide Time: 00:30)

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

Problems. How do cameras measure light and color? How do humans perceive light and color?

Color Image Processing. Jen-Chang Liu, Spring 2006

Interactive Computer Graphics

YIQ color model. Used in United States commercial TV broadcasting (NTSC system).

Transcription:

Color in Scientific Visualization Mike Bailey mjb@cs.oregonstate.edu colorinvis.pptx The often scant benefits derived from coloring data indicate that even putting a good color in a good place is a complex matter. Indeed, so difficult and subtle that avoiding catastrophe becomes the first principle in bringing color to information. Above all, do no harm. -- Edward Tufte II-1

What s Wrong with this Color Scale? Source: Scientific American, June 2000 Not a bad choice of color scale, but the Dynamic Range needs some work II-2

Let s start with the most important component in a visualization system You! How Many Shades of Different Colors Are We Able to Detect? Sensors in Your Retina Rods ~115,000,000 Concentrated on the periphery of the retina Sensitive to intensity Most sensitive at 500 nm (~green) ~7,000,000 Cones Concentrated near the center of the retina Sensitive to color Three types of cones: long(~red), medium (~green), and short (~blue) wavelengths II-3

II-4

II-5

Sidebar: How Many Pixels Do You Need? A person with 20/20 vision has a visual acuity of: 1 arc-minute = 1/60 Θ = 1 / 60 =.00029 R Density = 1 D Viewing Distance (inches) Required Pixel Density (ppi) 36 95 31 111 24 143 12 286 9 400 6 600 If the monitor s resolution is 1600 x 1200, then its diagonal size would need to be: 21 18 14 7 5 3 Monitors: Additive Colors II-6

Additive Color (RGB) R M=R+B Y=R+G W=R+G+B G C=G+B B OpenGL: glcolor3f( r, g, b ); 0. r, g, b 1. Plasma Displays use Additive Color Gas cell Phosphor Grid of electrodes http://electronics.howstuffworks.com II-7

LCD Displays use Additive Color Grid of electrodes Color filters http://electronics.howstuffworks.com Hue-Saturation-Value (HSV): For many vis applications, a simpler way to specify additive color Hue 120º White White Saturation 0º 240º Value Black float hsv[3], rgb[3]; HsvRgb( hsv, rgb ); glcolor3fv( rgb ); The HsvRgb function is in your sample code 0. s, v, r, g, b 1. 0. h 360. II-8

Home Depot uses a form of HSV :-) Hue-Saturation-Value (HSV): For many vis applications, a simpler way to specify additive color 120º Notice that blue-green-red in HSV space corresponds to the visible portion of the electromagnetic ti spectrum 0º Blue: 380 nm Green: 520 nm Red: 780 nm 240º Turning a scalar value into a hue when using the Rainbow Color Scale S S Hue 240. 240. S S max min min II-9

Hue-Saturation-Value: The OSU ColorPicker Program Red, Green, Blue Hue, Saturation, Value The OpenDX Visualization Software Allows you to Sculpt the Transfer Function in HSV II-10

Subtractive Colors (CMYK) B M G B R C G B Subtractive Color (CMYK) C B=C+M G=C+Y K=C+M+Y M Y R=M+Y II-11

Color Printing Uses subtractive colors Uses 3 (CMY) or 4 (CMYK) passes CMYK printers have a better-looking black There is a considerable variation in color gamut between products How Do Color Separations Work in Color Printing? Source: R. Daniel Overheim and David Wagner, Light and Color, John Wiley & Sons, 1982. II-12

II-13

Getting the CMYK Colors Wax Toner Toner Sheets CIE Chromaticity Diagram 520 nm 0.90 0.80 0.70 0.60 0.50 y 0.40 0.30 0.20 780 nm 0.10 White Point 0.00 0.00 0.20 0.40 0.60 0.80 x 380 nm II-14

CIE Chromaticity Diagram 520 nm 0.90 0.80 0.70 0.60 0.50 y 0.40 C' D 0.30 0.20 0.10 C 780 nm White Point 0.00 0.00 0.20 0.40 0.60 0.80 380 nm x C = the color D = the dominant wavelength C = the complementary color Color Gamut for a Workstation Monitor Color CRT 0.90 0.80 070 0.70 White Point 0.60 Eye 0.50 y 0.40 0.30 0.20 0.10 0.00 0.00 0.20 0.40 0.60 0.80 x Monitor White II-15

Color Gamut for a Monitor and Color Slides Color CRT 0.90 080 0.80 0.70 0.60 0.50 y 0.40 Slide White Projected Color Slides 0.30 0.20 Eye 0.10 0.00 0.00 0.20 0.40 0.60 0.80 x White Point Color Gamut for a Monitor and Color Printer 0.90 Color CRT 080 0.80 0.70 0.60 0.50 y 0.40 Color Paper Hardcopy 0.30 0.20 0.10 Eye 0.00 0.00 0.20 0.40 0.60 0.80 x II-16

The Perceptually Uniform L-a-b Color Space 520 nm OSU Logo 780 nm White Point 380 nm Color Meters Are Able to Measure L-a-b Coordinates II-17

Some Good Rules of Thumb When Using Color for Scientific Visualization What Makes a Good Contrast? Many people think simply adding color onto another color makes a good contrast In fact, a better measure is the Luminance Using this also helps if someone makes a grayscale photocopy of your color hardcopy II-18

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 life does not depend on being able to read this quickly and accurately! Luminance 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 my life depend on being able to read this quickly and accurately! II-19

The Luminance Equation Y =.30*Red +.59*Green +.11*Blue 11% 30% 59% Luminance Table R G B Y Black 0.0 0.0 0.0 0.00 White 10 1.0 10 1.0 10 1.0 100 1.00 Red 1.0 0.0 0.0 0.30 Green 0.0 1.0 0.0 0.59 Blue 0.0 0.0 1.0 0.11 Cyan 0.0 1.0 1.0 0.70 Magenta 10 1.0 00 0.0 10 1.0 041 0.41 Orange 1.0 0.5 0.0 0.60 Yellow 1.0 1.0 0.0 0.89 II-20

Contrast Table (I use a L* of about 0.40) Black White Red Green Blue Cyan Magenta Orange Yellow Black 0.00 1.00 0.30 0.59 0.11 0.70 0.41 0.60 0.89 White 1.00 0.00 0.70 0.41 0.89 0.30 0.59 0.41 0.11 Red 0.30 0.70 0.00 0.29 0.19 0.40 0.11 0.30 0.59 Green 0.59 0.41 0.29 0.00 0.48 0.11 0.18 0.01 0.30 Blue 0.11 0.89 0.19 0.48 0.00 0.59 0.30 0.49 0.78 Cyan 0.70 0.30 0.40 0.11 0.59 0.00 0.29 0.11 0.19 Magenta 0.41 0.59 0.11 0.18 0.30 0.29 0.00 0.19 0.48 Orange 0.60 0.41 0.30 0.01 0.49 0.11 0.19 0.00 0.30 Yellow 0.89 0.11 0.59 0.30 0.78 0.19 0.48 0.30 0.00 Black Black Black Black Black Black Black Black Black White White White White White White White White White Red Red Red Red Red Red Red Red Red Yellow Yellow Yellow Yellow Yellow Yellow Yellow Yellow Yellow Green Green Green Green Green Green Green Green Green Blue Blue Blue Blue Blue Blue Blue Blue Blue II-21

Do Not Attempt t to Fight Pre-Established Color Meanings Pre-Established Color Meanings Red: Green: Blue: White: Stop On Off Dangerous Hot High stress Oxygen On Plants Carbon Moving Money Cool Safe Deep Nitrogen Neutral Hydrogen Shallow Money loss II-22

In Visualization, we Use the Concept of a Transfer Function to set Color and Opacity as a Function of Scalar Value Color Scalar Value Use the Right Transfer Function Color Scale to Represent a Range of Scalar Values Gray scale Intensity Interpolation Saturation interpolation Two-color interpolation Rainbow scale Heated object interpolation Blue-White-Red II-23

Gray Scale Intensity and Saturation Color Scales II-24

Two-Color Interpolation Rainbow Color Scale Implementation: 240º 120º 0º II-25

Heated Object Color Scale Implementation: add one color component at a time Blue-White-Red Color Scale II-26

Color Scale Contours A Gallery of Color Scales II-27

Something Different: A Gallery of Add-One-Component-at-a-Time Color Scales R+G+B R+B+G G+R+B G+B+R B+R+G B+G+R Something Different Adding Black Beyond Blue Visualization by Justin Finn II-28

Something Really Different The Haxby Color Scale But, Here s What s Really Important: Given any 2 colors, make it intuitively obvious which represents higher and which represents lower Obvious: Not obvious: II-29

What in the World was The Oregonian Thinking When They Chose This Color Scale? Source: The Oregonian, January 11, 2006 Shouldn t lush-green colors represent wet and sand-colors represent dry? This is Better Source: The Oregonian, October 31, 2006 II-30

And, one more Source: The Oregonian, February 21, 2010 And, one more Much of the total dynamic range of the color scale is used up in the first small percent of the animation, leaving little for the rest of the animation Source: The Oregonian, February 21, 2010 II-31

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? II-32

Color Rules In visualization applications, we must be aware that our perception of color changes with: The surrounding color How close two objects are How long you have been staring at the color Sudden changes in the color intensity The Ability to Discriminate Colors Changes with Surrounding Color: Simultaneous Contrast II-33

The Ability to Discriminate Colors Changes with Surrounding Color: Simultaneous Contrast The Ability to Discriminate Colors Changes with Surrounding Color: Simultaneous Contrast http://xkcd.com II-34

The Ability to Discriminate Colors Changes with Surrounding Color: Simultaneous Contrast http://xkcd.com II-35

II-36

So, What s Up with the Blue Dress Debate? It s part of the Color Constancy effect If you see this color, but you expect that the dress is currently in a shadow, you know that it must really be this color. New York Times If you see this color, but you expect the dress is currently in bright light, you know that it must really be this color. Afterimages II-37

Afterimages Beware of Mach Banding II-38

Beware of Mach Banding Perceived Intensity Actual Intensity Beware of Mach Banding Perceived Intensity Actual Intensity II-39

Beware of Mach Banding Think of the Mach Banding problem as being similar to trying to round second base at a 90º angle. Perceived Intensity Actual Intensity The Ability to Discriminate Colors Changes with the Size of the Colored Area II-40

The Ability to Discriminate Colors Changes with the Ambient Light The Ability to Discriminate Colors Changes with the Age of the Viewer II-41

Be Aware of Color Vision Deficiencies (CVD) There is actually no such thing as color blindness CVD affects ~10% of Caucasian men CVD affects ~4% of non-caucasian men CVD affects ~0.5% of women The most common type of CVD is red-green Blue-yellow also exists Why are more men affected by CVD than women? It s because the red-green CVD defect is carried on the X Chromosome http://www.bio.miami.edu/~cmallery/150/mendel/c7.15.x.y.jpg A woman with the defective gene on one X chromosome probably has a dominant non-defective gene on the other. A man with a defect gene on his one X chromosome has no other gene to fix it. II-42

Be Aware of CVD: 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... Be Aware of CVD: Code Information Redundantly: Color + Different fonts Symbols Fill pattern Outline pattern Outline thickness This also helps if someone makes a grayscale photocopy of your color hardcopy II-43

Use a Black or White Line as the Boundary Between Colored Regions Do Not Display Fast-moving or High-detail Items in Color, Especially Blue II-44

Watch the Use of Saturated Reds and Blues Together Reds and Blues are on opposite ends of the color spectrum. It is hard for your eyes to focus on both. 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. Be Aware of the Differences Between Color Gamuts Adapt by Deciding What is Most Important for Your Visualization II-45

Color Gamut for a Monitor and a Color Printer 0.90 Color CRT 080 0.80 0.70 0.60 0.50 y 0.40 Color Paper Hardcopy 0.30 0.20 0.10 Eye 0.00 0.00 0.20 0.40 0.60 0.80 x Color-Preserving vs. Contrast-Preserving Gamut Mappings Monitor colors to be printed 1 2 34 1 3 2 3 2 4?? White Point II-46

Some Basic Rules for Using NTSC (Analog) Video or, Why I m So Glad We Are in the Twilight of Analog TV Understand the Limitations of going from Monitors to NTSC Video Use less saturated colors due to color gamut considerations Expect an effective resolution of (at best) ~640x480 Do not use single-pixel thick lines Stay away from the edges of the screen Some colors have better video resolution than others II-47

NTSC Cycles-of-Encoding per Scanline What: Cycles/Scanline: Intensity 267 Orange-Blue 96 Purple-Green 35 Beware of Gratuitous Color Pollution Just because you have millions of colors to choose from, doesn't mean you must use them all II-48

Beware of Lots of Other Stuff II-49

II-50

II-51

II-52

Good Color and Perception References Maureen Stone, A Field Guide to Digital Color, AK Peters, 2003. 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. II-53