Images and colour Colour - colours - colour spaces - colour models Raster data - image representations - single and multi-band (multi-channel) images -

Slides:



Advertisements
Similar presentations
ECE 472/572 - Digital Image Processing Lecture 10 - Color Image Processing 10/25/11.
Advertisements

Texture and Colour in Virtual Worlds Programming for 3D Applications.
Light Light is fundamental for color vision Unless there is a source of light, there is nothing to see! What do we see? We do not see objects, but the.
Aalborg University Copenhagen
Fundamentals of Digital Imaging
School of Computing Science Simon Fraser University
CS 4731: Computer Graphics Lecture 24: Color Science
Multi-media Graphics JOUR 205 Color Models & Color Space 5 ways of specifying colors.
Sep 21, Fall 2005ITCS4010/ Computer Graphics Overview Color Displays Drawing Pipeline.
Color.
Graphics File Formats. 2 Graphics Data n Vector data –Lines –Polygons –Curves n Bitmap data –Array of pixels –Numerical values corresponding to gray-
Sep 21, Fall 2006IAT 4101 Computer Graphics Overview Color Displays Drawing Pipeline.
Lecture 4: ImagesIntro to IT COSC1078 Introduction to Information Technology Lecture 4 Images James Harland
Image Representation.
CSc 461/561 CSc 461/561 Multimedia Systems Part A: 2. Image.
1 Perception. 2 “The consciousness or awareness of objects or other data through the medium of the senses.”
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Color of (digital image) Raed S. Rasheed Agenda Color. Color Image. Color Models – RGB color model. – CMYK color model. – HSV and HSL color model.
Bitmapped Images 27 th November 2014 With Mrs
Lecture 4: ImagesIntro to IT COSC1078 Introduction to Information Technology Lecture 4 Images James Harland
School of Computer Science & Information Technology G6DPMM - Lecture 6 Colour Science & Colour Models.
Graphical images Bit-mapped (or raster-based) image: Matrix describing the individual dots that are the smallest elements (pixels) of resolution on a computer.
Data starts with width and height of image Then an array of pixel values (colors) The number of elements in this array is width times height Colors can.
Colour Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 6 This presentation © 2004, MacAvon Media Productions Colour.
Digital Images The digital representation of visual information.
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Storing Graphics EXTENSION.
Digital Images Chapter 8, Exploring the Digital Domain.
Color Theory What is color? How do we describe and match colors? Color spaces.
Chapter 6: Color Image Processing Digital Image Processing.
Color Management. How does the color work?  Spectrum Spectrum is a contiguous band of wavelengths, which is emitted, reflected or transmitted by different.
Objective Understand concepts used to create digital graphics. Course Weight : 15% Part Three : Concepts of Digital Graphics.
Lecture 4: ImagesIntro to IT COSC1078 Introduction to Information Technology Lecture 4 Images James Harland
Colours and Computer Jimmy Lam The Hong Kong Polytechnic University.
Topic 5 - Imaging Mapping - II DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Color. Contents Light and color The visible light spectrum Primary and secondary colors Color spaces –RGB, CMY, YIQ, HLS, CIE –CIE XYZ, CIE xyY and CIE.
6. COLOR IMAGE PROCESSING
Color 2011, Fall. Colorimetry : Definition (1/2) Colorimetry  Light is perceived in the visible band from 380 to 780 nm  distribution of wavelengths.
CSC361/ Digital Media Burg/Wong
Which is the Pink Pen? Here is the Pink Pen (Example taken from
CHAPTER 8 Color and Texture Mapping © 2008 Cengage Learning EMEA.
Digital Image Processing Week VIII Thurdsak LEAUHATONG Color Image Processing.
Graphics Lecture 4: Slide 1 Interactive Computer Graphics Lecture 4: Colour.
A color model is a specification of a 3D color co-ordinate system and a visible subset in the co-ordinate System within all colors in a particular color.
Ch 6 Color Image processing CS446 Instructor: Nada ALZaben.
DIGITAL IMAGE. Basic Image Concepts An image is a spatial representation of an object An image can be thought of as a function with resulting values of.
Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli
Color Color Color Tsung-Yi Wu.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Introduction to Computer Graphics
Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
BASIC COLOUR COURSE Algemeen
Chapter 4: Color in Image and Video
Computer Graphics: Achromatic and Coloured Light.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
Colour CPSC Colour ● Models ● RGB ● CMY(K) ● HSB (or HSV) ● RYB ● Harmonies ● Monochrome ● Complementary ● Analogous ● Triadic.
Color Models Light property Color models.
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging
Images Data Representation.
Half Toning Dithering RGB CMYK Models
IMAGE PROCESSING COLOR IMAGE PROCESSING
Images In Matlab.
Chapter 6: Color Image Processing
COMS 161 Introduction to Computing
Slides taken from Scott Schaefer
Color Model By : Mustafa Salam.
Digital Image Processing
Multimedia System Image
Computer Systems Nat 4.5 Computing Science Data Representation
Presentation transcript:

Images and colour Colour - colours - colour spaces - colour models Raster data - image representations - single and multi-band (multi-channel) images - colour lookup tables - operations on images

Colour images Colour images have two components: –raster data - an array of pixels; –colour model - a description of how pixels are mapped to colours. A pixel is defined in terms of its components in a particular colour space

Colour spectrum – visible light 400 nm700 nm Ultraviolet Infrared

Colour spaces A colour space represents a system for measuring colours Most colours can be represented using three colour components They are called the primary colours (or the primaries)

Colour spaces There are many colour spaces. The choice of a particular space depends on the context in which we want to describe colours. The four most common colour spaces are: –RGB –HSV –CMY –XYZ

RGB Primaries: Red - Green - Blue Similar to colours detected by colour receptors in the eye Also used in TV technology

RGB

RGB – an additive system

HSV Primaries: Hue - Saturation - Value Colour space related to subjective description of colours

HSV

CMY Primaries: Cyan - Magenta – Yellow Used in printing technology Mixing is subtractive

CMY – subtractive system

CIE XYZ Primaries: X, Y, Z Based on colour perception by humans Device independent The most common representation of the CIE XYZ space is the CIE chromacity diagram

CIE XYZ Chromacity diagram

Monochrome images Images represented by a single primary - a value Show only shades of grey Binary images use only two shades of grey: black and white.

Vector notation for colours [ Primary1 Primary2 Primary 3 ] [ R G B ]yellow = [ ] orange = [ ] pink = [ ] [ H S V ]pink = [ ] [ C M Y ]red = [ ]

Colour space conversion Colours can be converted from one space to another Conversion from RGB to CMY: [ C M Y ] = [ ] - [ R G B ] Example: Convert green from RGB to CMY [ C M Y ] = [ ] - [ ] = [ ]

Conversion from RGB to XYZ Each of the R, G and B primaries is a weighted sum of X, Y and Z primaries Weights expressed in matrix notation, e.g.

Conversion from RGB to XYZ Conversion implemented as a matrix multiplication

Raster data Colour - colours - colour spaces - colour models Raster data - image representations - single and multi-band (multi-channel) images - colour lookup tables - operations on images

Raster data - pixel structure Raster data - an image Pixels arranged as a rectangular array The structure of a pixel depends on –the colour space –the colour model

Raster arrayPixel structure

Raster data - pixel structure Binary images –pixel represented by a single bit Monochrome images –pixel represented by a single byte (a one-dimensional vector) Colour images –usually represented by a 3-dimensional vector –examples [ R G B], [H S V] or [C M Y]

Representations: Java terminology Normal representation –the amount of each primary defined by a number in the range [0,1] –Example: pink (RGB): [ ] Logical representation – Pixel representation as a vector Physical representation –depicted by the Colour Model

Colour channel Colour channel - a component of a colour vector RGB: red channel, green channel and blue channel A pixel vector can have more than three channels Examples –alpha channel (often used to describe transparency of a pixel) –z channel (in 3D graphics, the depth of the pixel, used in hidden surface removal)

Colour models A colour model describes how pixels are mapped into colours.

Direct Colour (True Colour) Image is an array of vectors Each vector directly encodes values of the three primaries

Packed Colour Model (Packed Array) Image is an array of values, each encoding a colour Examples: – 4-byte integer aaaaaaaa bbbbbbbb gggggggg rrrrrrrr –1-byte integer rrrgggbb

Indexed Colour Model The most commonly used representation on smaller workstations A pixel value (or a value of a pixel component) is an index (a pointer) to a table containing colour definitions

Colour Map Synonyms: –Colour Lookup Table –CLUT –LUT Each location in a LUT stores a colour definition for a pixel with a given value

Colour mapping for 1-byte pixels

Colour mapping for 3-dimensional pixel vectors

Java image representation BufferedImage ColorSpace SampleModel DataBuffer RasterColorModel BufferedImage

Java image representation BufferedImage ColorSpace (e.g. RGB) SampleModelDataBuffer

Operations on images: Changing pixel colours Changing pixel colours is very easy within the Indexed Colour Model A raster array containing pixel values (or pixel vectors) stays unchanged. Only colour definitions in the LUT are changing

Colour mapping functions: Grey level mapping Input OutputR Input OutputG Input OutputB

Inverse mapping Input OutputR Input OutputG Input OutputB

“Hot colours” mapping

Changing pixel values: Convolution Convolution: a spatial filtering technique calculates a weighted average of several pixels lying within a small neighbourhood, normally 3x3 square, The 3x3 neighbourhood is called a kernel. The effects depend on the values of weights.

Examples of smoothing kernels

Original image Image after smoothing

Examples of sharpening kernels

Original imageImage after sharpening