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

Similar documents
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

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

Color Image Processing. Gonzales & Woods: Chapter 6

Reading instructions: Chapter 6

Chapter 3 Part 2 Color image processing

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

Digital Image Processing. Lecture # 8 Color Processing

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

6 Color Image Processing

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

Colors in Images & Video

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

Digital Image Processing Color Models &Processing

COLOR and the human response to light

COLOR. and the human response to light

Color Image Processing. Jen-Chang Liu, Spring 2006

Unit 8: Color Image Processing

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

Color Image Processing

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

Digital Image Processing. Lecture # 6 Corner Detection & Color Processing

Digital Image Processing (DIP)

Color Image Processing

The Principles of Chromatics

Lecture 8. Color Image Processing

Color Image Processing

Lecture 3: Grey and Color Image Processing

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

Wireless Communication

LECTURE 07 COLORS IN IMAGES & VIDEO

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

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

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

EECS490: Digital Image Processing. Lecture #12

Digital Image Processing

Digital Image Processing Chapter 6: Color Image Processing ( )

Color Image Processing EEE 6209 Digital Image Processing. Outline

Digital Image Processing COSC 6380/4393

Color images C1 C2 C3

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

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

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

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

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

Color & Compression. Robin Strand Centre for Image analysis Swedish University of Agricultural Sciences Uppsala University

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

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

Chapter 6: Color Image Processing. Office room : 841

Lecture Color Image Processing. by Shahid Farid

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

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

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

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

Multimedia Systems and Technologies

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

Digital Image Processing

Image and video processing

Digital Image Processing Chapter 6: Color Image Processing

Color Image Processing

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

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

CHAPTER 6 COLOR IMAGE PROCESSING

Color Science. CS 4620 Lecture 15

IMAGE PROCESSING >COLOR SPACES UTRECHT UNIVERSITY RONALD POPPE

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

Mahdi Amiri. March Sharif University of Technology

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

Color image processing

Imaging Process (review)

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. Used heavily in human vision. Color is a pixel property, making some recognition problems easy

Introduction to computer vision. Image Color Conversion. CIE Chromaticity Diagram and Color Gamut. Color Models

VC 16/17 TP4 Colour and Noise

Introduction to Computer Vision and image processing

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

Color and Color Models

Color. Used heavily in human vision. Color is a pixel property, making some recognition problems easy

Figure 1: Energy Distributions for light

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

University of British Columbia CPSC 414 Computer Graphics

Introduction to Color Science (Cont)

PERCEIVING COLOR. Functions of Color Vision

Color images C1 C2 C3

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

Chapter 9: Color. What is Color? Wavelength is a property of an electromagnetic wave in the frequency range we call light

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

Introduction. The Spectral Basis for Color

Human Vision, Color and Basic Image Processing

Color: Readings: Ch 6: color spaces color histograms color segmentation

Werner Purgathofer

What is Color? Chapter 9: Color. Color Mixtures. Color Mixtures 10/29/2012. What is color? Color vocabulary

Color Reproduction. Chapter 6

Images and Colour COSC342. Lecture 2 2 March 2015

excite the cones in the same way.

MODULE 4 LECTURE NOTES 1 CONCEPTS OF COLOR

The human visual system

Image Perception & 2D Images

Chapter Objectives. Color Management. Color Management. Chapter Objectives 1/27/12. Beyond Design

Transcription:

Computer Assisted Image Analysis TF 3p and MN1 5p Color Image Processing Lecture 14 GW 6 (suggested problem 6.25) How does the human eye perceive color? How can color be described using mathematics? Different color models. Use of color information in image analysis and visualization. Light is electromagnetic radiation. The different wavelengths of the (to humans) visible part of the spectra make up the colors. 20050511 carolina@cb.uu.se 1 20050511 carolina@cb.uu.se 2 Color = the eye s and the brain s impression of electromagnetic radiation in the visual spectra. How is color perceived? illumination s( achromatic light - white or uncolored light, contains all visual wavelengths a complete mix chromatic light - colored monochromatic light - only one wavelength (laser) light source s( reflecting object r( detector rods & cones red-sensitive r( -sensitive g( blue-sensitive b( reflection r( no color that we see consists of only one wavelength the dominating wavelength reflected by the object decides the color tone or hue if many wavelengths are reflected in equal amounts, the object appears gray (white black) 20050511 carolina@cb.uu.se 3 20050511 carolina@cb.uu.se 4 the eye only rods cone (tapp) rods (stav) ~130 milion rods & cones per eye optical nerve rods Sense luminance, or brightness, but not color. Are spread out across the whole retina, and dominate when the pupil is large, i.e. night vision. Less color is seen at night. The response is not linear, but logarithmic. The appearance of an object s intensity depends on the surroundings; the sensation is relative and not absolute. mostly cones radiance (W=J/s) = the total amount of energy flowing from a light source luminance (lumen=cd*sr) = amount of light an observer perceives (i.e. excludes non-visible energy) brightness - a subjective descriptor (corresponds to achromatic intensity) 20050511 carolina@cb.uu.se 5 20050511 carolina@cb.uu.se 6

red-sensitive (65%) r( -sensitive (33%) g( blue-sensitive (2%) b( three kinds of cones g=535nm b=445nm r=575nm standard lightsource object reflectance s( r( CIE 1931 standard observer x x y x = z CIE XYZ values X=14.27% Y=14.31% Z=71.52% CIE standard (Comission Internationale de L Eclairage, 1931) wavelength In order to standardize the description of color, a large number of people were instructed to say what combination of basic colors a certain color sample consisted of in standard lighting. This resulted in the color matching curves, i.e. transform r(, g(, b( x(, y(, z( 20050511 carolina@cb.uu.se 7 400nm 700nm 400nm 700nm 400nm 700nm X = s( r( x( dλ Y = s( r( y( dλ Z = s( r( z( dλ Each color is represented by a point (X,Y,Z) in the 3D CIE color space. The point is called the tristimulus value. 20050511 carolina@cb.uu.se 8 The projection of X+Y+Z=1 creates the CIE-XYZ chromaticity diagram Mixing light and mixing pigment yellow yellow cyan red wavelengths along the edge CIE standard white when x=y=z it is not possible to produce all colors by mixing three primary (CMYK common in printing, where K is black pigment) 20050511 carolina@cb.uu.se colors 9 20050511 carolina@cb.uu.se 10 red magenta R C G = M R+B+G=white [] B 1-[] Y blue magenta blue cyan (additive) R+G=Y C+M+Y=black (subtractive) C+M=B etc... Description of color using color models Color models or color spaces are usually a subspace in a 3D system where each color is represented by a point. RGB color model Examples of color models RGB CMY YIQ HSI NCS } } hardware oriented color image manipulation and color matching (0,0,0) =black (1,1,1)=white 20050511 carolina@cb.uu.se 11 20050511 carolina@cb.uu.se 12

Separation of RGB Rearrangement R of the 3 (R,G, and B) 8-bit images produces new 24-bit color images GBR RGR grayscale color G RRG red blue 20050511 carolina@cb.uu.se 13 B BRG 20050511 carolina@cb.uu.se 14 Safe colors (web palette) A subset of colors that are likely to be reproduced faithfully independent of hardware capabilities. RGB 24-bit color cube (16777216 colors) Coded using hexagonal number system: Each of R, G and B may only have intensity 0, 51, 102, 153, 204 or 255, or 00, 33, 66, 99, CC and FF in hex. RGB safe color cube (216 colors) Thus, black is 000000, red is FF0000, and yellow is FFFF00. 20050511 carolina@cb.uu.se 15 20050511 carolina@cb.uu.se 16 216 colors arranged by hue C [] M Y The CMY(K) color model R [] G B A transform for printing = 1- Ex. red spot on screen (1,0,0) produces pigment mix (1,1,1)-(1,0,0)=(0,1,1), meaning equal parts of magenta and yellow In principal, equal amounts of Cyan (C), Magenta (M), and Yellow (Y) should produce black, but to get a more purelooking black (and to save pigment), a forth color black (K) is often used, referred to as four-color printing. K stands for Key, as the most important color. 20050511 carolina@cb.uu.se 17 HSI (or HLS) color model Hue Saturation Intensity (Hue Lightness Saturation) Hue=dominant wavelength, tone Saturation=purity, dilution by white Intensity=brightness RGB HSI Important aspects: Intensity decoupled from color Related to how humans perceive color 20050511 carolina@cb.uu.se 18

RGB color cube Uses of the HSI color space The intensity description is separated from the color: can do operations on intensity (e.g. histogram equalization) but maintaining color. Similar to our way of describing and classifying color. Hue, Saturation and Intensity of RGB color cube. Note the discontinuity in the Hue, representing the transition from 0 to 360 (displayed as gray levels [0 255]). 20050511 carolina@cb.uu.se 19 Independent of light conditions/shadows. 20050511 carolina@cb.uu.se 20 RGB Hue Make a dark color image lighter 1. RGB HSI 2. histogram equalization on I 3. HSI RGB Saturation Intensity The power of the HIS color model is that it allows for INDEPENDENT control over hue, saturation, and intensity. 20050511 carolina@cb.uu.se 21 20050511 carolina@cb.uu.se 22 (Intensity) (Hue) YIQ color space Y=Lightness I=Inphase = balance red- Q=Quadrature = balance blue-yellow Optimized for transmission (TV broadcast). Compatible with BW monitors (use only Y component) Uses the fact that the human eye is more sensitive to variations in lightness than variations in hue and saturation and more band with (bits) is used for Y. 20050511 carolina@cb.uu.se 23 20050511 carolina@cb.uu.se 24

NCS color description NCS=Natural Color System A psychological more than a physiological description of color. Common for description of paint color among artists, designers, in fashion etc. 2060-R50B= 20% white w 60% black 40 20% color: red with 50% blue c 20050511 carolina@cb.uu.se 25 20 b 60 PSEUDOCOLORING or false coloring The eye can distinguish between only about 30 different shades of gray, but about 350 000 colors. It is often useful to display grayscale images using color to visualize the information better. grayscale image transform color image Types of transforms: intensity slicing each intensity is assigned a color, e.g., different physical properties are assigned different colors. one transform per R, G, B three different kinds of spatial or frequency filters make up the R, G and B band **** it is often important to include the scale in the final image 20050511 carolina@cb.uu.se 26 Example of pseudocoloring in PET intensity slicing: each intensity is assigned a color scale Gray level to color transforms (linear transform) 20050511 carolina@cb.uu.se 27 20050511 carolina@cb.uu.se 28 divide spectra in to different intervals (spectral bands) capture one grayscale image of the intensity in each band Multi-spectral images Multi-spectral image, of Washington D.C., with R, G, B, and IR band. Bottom left shows RGB image, bottom left shows RIGB (where IR is treated as R). Information from multiple bands may be reduced by, e.g., PCA, and the thre strongest components chosen as R, G, and B. * invisible IR or UV bands can be displayed as R, G or B 20050511 carolina@cb.uu.se 29 20050511 carolina@cb.uu.se 30

Color image processing Two different approaches: 1. Process each component image (e.g., R, G, and B) individually and then combine. 2. Work with color pixels (vectors) directly. These two approaches may, or may not produce the same result, depending on processing. 20050511 carolina@cb.uu.se 31 Example 1: smoothing an RGB image is the same as smoothing the R, G and B component independently. Example 2: increasing intensity can be done operating on a single component (I) in HSI space (intensity and color decoupled), instead of operating on three components (R,G,B) in RGB space (but conversion is expensive). 20050511 carolina@cb.uu.se 32 Color Slicing ( magic wand ) Alternative approach for object selection in color images (by Per Holting, MSc thesis at CBA 2004) Extract objects by specifying a position and distance in color space 20050511 carolina@cb.uu.se 33 20050511 carolina@cb.uu.se 34 Tone and color correction Color transformations treating R, G, and B equally will not change the image hue. (increase of contrast, exponential and logarithmic transformation). Adjusting R, G and B, or more commonly C, M and Y, separately will change the hue (or tone) of the image. Color gamuts of screens and output devices may vary! 20050511 carolina@cb.uu.se 35 20050511 carolina@cb.uu.se 36

Problem 6.25 Consider the following 500x500 RGB color image, where the squares are pure red,, and blue. a) Suppose that we convert this image to HIS, blur the H component image with a 25x25 averaging mask, and convert back to RGB. What would the result look like? b) Repeat, blurring only the saturation component this time. blue red (You do not have to deal with the edges of the image.) 20050511 carolina@cb.uu.se 37