Lecture 12 Color model and color image processing

Similar documents
Digital Image Processing COSC 6380/4393. Lecture 19 Mar 26 th, 2019 Pranav Mantini

Color Image Processing

Digital Image Processing. Week 4

Digital Image Processing

Digital Image Processing. Introduction

Fall 2015 Dr. Michael J. Reale

Color and Shading. Color. Shapiro and Stockman, Chapter 6. Color and Machine Vision. Color and Perception

Cvision 3 Color and Noise

Reading. 2. Color. Emission spectra. The radiant energy spectrum. Watt, Chapter 15.

Lecture #13. Point (pixel) transformations. Neighborhood processing. Color segmentation

The Display pipeline. The fast forward version. The Display Pipeline The order may vary somewhat. The Graphics Pipeline. To draw images.

Lecture 1 Image Formation.

Image Processing. Color

CS635 Spring Department of Computer Science Purdue University

Physical Color. Color Theory - Center for Graphics and Geometric Computing, Technion 2

Visible Color. 700 (red) 580 (yellow) 520 (green)

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo

Game Programming. Bing-Yu Chen National Taiwan University

Chapter 6 Color Image Processing

Image Formation. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

Introduction to color science

The Elements of Colour

(0, 1, 1) (0, 1, 1) (0, 1, 0) What is light? What is color? Terminology

Introduction to Computer Graphics with WebGL

Color. making some recognition problems easy. is 400nm (blue) to 700 nm (red) more; ex. X-rays, infrared, radio waves. n Used heavily in human vision

CS 445 HW#6 Solutions

VC 10/11 T4 Colour and Noise

Lecture 11. Color. UW CSE vision faculty

Chapter 5 Extraction of color and texture Comunicação Visual Interactiva. image labeled by cluster index

Illumination and Shading

Lecture 1. Computer Graphics and Systems. Tuesday, January 15, 13

Digital Image Processing, 3rd ed.

ECE-161C Color. Nuno Vasconcelos ECE Department, UCSD (with thanks to David Forsyth)

Light Transport Baoquan Chen 2017

Image Formation. Camera trial #1. Pinhole camera. What is an Image? Light and the EM spectrum The H.V.S. and Color Perception

CS452/552; EE465/505. Color Display Issues

Computer Graphics Lecture 2

Image Acquisition Image Digitization Spatial domain Intensity domain Image Characteristics

Spectral Color and Radiometry

CHAPTER 3 COLOR MEASUREMENT USING CHROMATICITY DIAGRAM - SOFTWARE

Chapter 4 Color in Image and Video

Computer Graphics. Bing-Yu Chen National Taiwan University

Image Analysis. 1. A First Look at Image Classification

A Comparison of Color Models for Color Face Segmentation

Color Vision. Spectral Distributions Various Light Sources

CS 111: Digital Image Processing Fall 2016 Midterm Exam: Nov 23, Pledge: I neither received nor gave any help from or to anyone in this exam.

Color, Edge and Texture

3D graphics, raster and colors CS312 Fall 2010

CSE 167: Introduction to Computer Graphics Lecture #6: Colors. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013

Intensity Transformation and Spatial Filtering

CHAPTER 4 EDGE DETECTION TECHNIQUE

ITP 140 Mobile App Technologies. Colors

INTRODUCTION. Slides modified from Angel book 6e

CS770/870 Spring 2017 Color and Shading

6. Color Transforms. Computer Engineering, Sejong University. 비선형색공간 (Non-linear color space) 균등 (uniform) 색공간을위해도입

Color to Binary Vision. The assignment Irfanview: A good utility Two parts: More challenging (Extra Credit) Lighting.

Colour computer vision: fundamentals, applications and challenges. Dr. Ignacio Molina-Conde Depto. Tecnología Electrónica Univ.

Announcements. Lighting. Camera s sensor. HW1 has been posted See links on web page for readings on color. Intro Computer Vision.

11. Image Data Analytics. Jacobs University Visualization and Computer Graphics Lab

Lecture 4 Image Enhancement in Spatial Domain

COMP3421. Global Lighting Part 2: Radiosity

CG T8 Colour and Light

Distributed Algorithms. Image and Video Processing

CHAPTER 3 FACE DETECTION AND PRE-PROCESSING

When this experiment is performed, subjects find that they can always. test field. adjustable field

Histogram Difference Methods Using Colour Models

Color. Reading: Optional reading: Chapter 6, Forsyth & Ponce. Chapter 4 of Wandell, Foundations of Vision, Sinauer, 1995 has a good treatment of this.

Why does a visual system need color? Color. Why does a visual system need color? (an incomplete list ) Lecture outline. Reading: Optional reading:

Digital Image Processing

Reading. 4. Color. Outline. The radiant energy spectrum. Suggested: w Watt (2 nd ed.), Chapter 14. Further reading:

Part 3: Image Processing

IMAGING. Images are stored by capturing the binary data using some electronic devices (SENSORS)

Lecture 4. Digital Image Enhancement. 1. Principle of image enhancement 2. Spatial domain transformation. Histogram processing

CS 556: Computer Vision. Lecture 18

Main topics in the Chapter 2. Chapter 2. Digital Image Representation. Bitmaps digitization. Three Types of Digital Image Creation CS 3570

Pop Quiz 1 [10 mins]

Lighting. Camera s sensor. Lambertian Surface BRDF

Color Content Based Image Classification

PSD2B Digital Image Processing. Unit I -V

Announcements. Camera Calibration. Thin Lens: Image of Point. Limits for pinhole cameras. f O Z

Colour Reading: Chapter 6. Black body radiators

Image Analysis and Formation (Formation et Analyse d'images)

CIE L*a*b* color model

Computer Vision. The image formation process

Color Space Transformations

Multimedia Databases. 2. Summary. 2 Color-based Retrieval. 2.1 Multimedia Data Retrieval. 2.1 Multimedia Data Retrieval 4/14/2016.

A Fuzzy Colour Image Segmentation Applied to Robot Vision

Lecture #2: Color and Linear Algebra pt.1

IMAGE ENHANCEMENT in SPATIAL DOMAIN by Intensity Transformations

Image Processing using LabVIEW. By, Sandip Nair sandipnair.hpage.com

Reprint (R30) Accurate Chromaticity Measurements of Lighting Components. Reprinted with permission from Craig J. Coley The Communications Repair depot

CSE 167: Lecture #7: Color and Shading. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

CS 464 Review. Review of Computer Graphics for Final Exam

CSE 167: Lecture #6: Color. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

Mech 296: Vision for Robotic Applications

Overview Module 03. Image Restoration and Freq. Filtering & Color Imaging and Transformations. Model of Image Degradation/Restoration

A DATA FLOW APPROACH TO COLOR GAMUT VISUALIZATION

Color Space Converter

In this lecture. Background. Background. Background. PAM3012 Digital Image Processing for Radiographers

Light and Electromagnetic Waves. Honors Physics

Transcription:

Lecture 12 Color model and color image processing Color fundamentals Color models Pseudo color image Full color image processing

Color fundamental The color that humans perceived in an object are determined by the nature of the light reflected from the object Light is electromagnetic spectrum.

Visible light and Color Visible light is composed of a relatively narrow band of frequencies in the ES. Human color perceive is a composition of different wavelength spectrum The color of an object is a body that favours reflectance in a limited range of visible spectrum exhibits some shade of colors Example White: a body that reflects light that balanced in all visible wavelengths. E.g. green objects reflect light with wavelength primarily in the 500 to 570 nm range while absorbing most of the energy at other wavelengths.

Characterization of light If the light achromatic (void of color), if its only attribute is intensity. Gray level refers to a scalar measure of intensity it that t ranges from black, to grays, and finally to white Chromatic light spans the ES from about 400 to 700 nm Three basic quantities are used to describe the quality of a chromatic light source Radiance: total amount of energy flows from the light source Luminance: amount of energy perceive from light source Brightness: a subjective descriptor that is practically impossible to measure

Color sensors of eyes: cones Cones can be divided into three principle sensing categories, roughly red (65%), green (33 %), blue (2%) Colors are seen as variable combination of the so-called primary colors Red (R), Green (G), and blue (B).

Primary colors and secondary colors CIE (Commission Internationale de l Eclariage) standard for primary color Red: 700 nm Green: 546.1 nm Blue: 435.8 nm Primary color can be added to produce secondary colors Primary colors can not produce all colors Pigments (colorants) Define the primary colors to be the absorbing one and reflect other two

Characterization Brightness, hue, and saturation Brightness: achromatic notion of intensity Hue: attribute te associated with dominating wavelength in a mixture of light waves, i.e., the dominant color perceived by observer Saturation: refers to the relative purity or the amount white light mixed with a hue. Hue and saturation together are called chromaticity, so a color can be characterized by its brightness and chromaticity The amount of red, green and blue to form a particular color are called tristimulus values, denoted by X, Y, Z. The a color is defined by X Y Z x=, y =, z = X + Y + Z X + Y + Z X + Y + Z x + y + z = 1

Color models (color space, or color system) A color model is a specification of a coordinate system and subspace where each color is represented as single point Examples RGB CMY (cyan, magenta, yellow)/cmyk (cyan, magenta, yellow, black) NTSC YCbCr HSV HSI

RGB Color models (R, G, B): all values of R, G, B are between 0 and 1. With digital representation, for a fixed length of bits each color element. The total number of bits is called color depth, or pixel depth. For example, 24-bit RGB color (r, g, b), 8-bits for each color. The 8-bit binary number r represents the value of r/256 in [0,1]

Displaying Colors in RGB model

CMY and CMYK model (C, M, Y) C 1 R = M 1 G Y 1 B CMYK: (C, M, Y, B), where B is a fixed black color. This basically for printing purpose, where black is usually the dominating i color. When printing i black, using B rather than using (C, M, B) = (1, 1, 1)

NTSC color space, YCBCr, HSV NSTC (YIQ): Y-luminance, I-hue, Q-Saturation Y 0.299 0.587 0.114 R I 0.596 0.274 0.322 G = Q 0.211 0.523 0.312 B YCbCr color space Y 16 65.481 128.553 24.966 R Cb = 128 + 037.797 74.203 112 G Cr 128 112 93.786 18.214 B

HSI HSI color space: H hue, S-saturation, I-intensity θ, B G H = 360 θ B> G 1 [( R G ) + ( R B )] 1 θ= cos { 2 } 2 1/2 [( R G ) + ( R B )( G B )] 3 S = 1 [min( R, G, B)] ( R+ G+ B) 1 I = ( R+ G+ B ) 3

Pseudocolor image processing Pseudocolor image processing is to assign colors to gray values based on a specified criterion. Purpose: human visualization, and interpretation t ti for gray-scale events Intensity slicing: partition the gray-scale into P+1 Intensity slicing: partition the gray scale into P 1 intervals, V 1, V 2,, V p+1. Let f(x, y) =c k, if f(x,y) is in V k where c k is the color assigned to level k

Intensity to color tranformation Transform intensity function f(x,y) into three color component

Multiple images If there are multiple image of the same sense avaiable, additional processing can be applied to make one image

Basics of full-color image processing Full-color image cr ( x, y) R( xy, ) cxy (, ) = cg ( xy, ) Gxy (, ) =, c (, ) (, ) B x y B x y x= 0,1,..., M 1, y = 0,1,..., N 1 Processing method can be applied to each color component. Apply to both scalar and vector Operation on each component is independent of the other component

Color transformation Transformation within a single color model gxy (, ) = T[ f( xy, )] s = T ( r, r,..., r ), i = 1,..., n i i 1 2 n Examples: gxy (, ) = kf( xy, ),1< k< 1 HSI : s = kr 3 3 RGB : s = k r, i = 1,2,3 i i i CMY ( K ): s = kr + (1 k ), i = 1, 2,3 i i

Color Complements

Color sliceing High light a specific range of colors in an image W 0.5 r j a j >, si = 2, i = 12 1,2,..., n ri otherwise n 2 2 0.5 ( r j a j ) > R 0 si = j= 1, i = 1,2,..., n ri otherwise

Tone and Color Corrections L = Y 116 h( ) 16 Y W X Y a = 500[ h( ) h( )] X Y Y Z b = 200[ h ( ) h ( )] Y X W W W 3 > q0.5 q 0.008856 hq ( ) = 7.787 7 787q + 16 /116 q 0.008856008856 W

Histogram Processing

Smoothing and Sharpening Color image smoothing. 1 Rst (,) K ( st, ) S xy 1 1 c ( x, y ) = c ( s, t ) = G ( s, t ) K ( st, ) S K xy ( st, ) S xy 1 Bst (,) K ( st, ) S xy

Color Image Sharpening cs( x, y) = cxy (, ) c( x, y) 2 [ Rxy (, )] [(, cxy)] = [ Gxy (, )] 2 [ B ( xy, )] 2 2 csxy (, ) = cxy (, ) [ cxy (, )] 2

Color image noise