Images and Colour COSC342. Lecture 2 2 March 2015

Similar documents
Image Perception & 2D Images

Color Image Processing. Gonzales & Woods: Chapter 6

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

Colors in Images & Video

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

Computer Graphics. Rendering. Rendering 3D. Images & Color. Scena 3D rendering image. Human Visual System: the retina. Human Visual System

Mahdi Amiri. March Sharif University of Technology

Computer Graphics. Si Lu. Fall er_graphics.htm 10/02/2015

Introduction to Color Theory

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

CHAPTER 3 I M A G E S

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

Figure 1: Energy Distributions for light

Lecture Color Image Processing. by Shahid Farid

LECTURE 07 COLORS IN IMAGES & VIDEO

Wireless Communication

Chapter 2 Fundamentals of Digital Imaging

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

Prof. Feng Liu. Fall /02/2018

Color and Images. Computer Science and Engineering College of Engineering The Ohio State University. Lecture 16

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

IMAGE PROCESSING >COLOR SPACES UTRECHT UNIVERSITY RONALD POPPE

Color Image Processing

Digital Asset Management 2. Introduction to Digital Media Format

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

Introduction to Multimedia Computing

Andrea Torsello DAIS Università Ca Foscari via Torino 155, Mestre (VE) Color Vision

Computers and Imaging

Sampling Rate = Resolution Quantization Level = Color Depth = Bit Depth = Number of Colors

Digital Image Processing Color Models &Processing

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

Images and Graphics. 4. Images and Graphics - Copyright Denis Hamelin - Ryerson University

Color images C1 C2 C3

05 Color. Multimedia Systems. Color and Science

Image is a spatial representation of an object or a scene. (image of a person, place, object)

Colour (1) Graphics 2

COLOR and the human response to light

Introduction. The Spectral Basis for Color

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

COLOR. and the human response to light

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

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

Brief Introduction to Vision and Images

Digital Image Processing. Lecture # 8 Color Processing

EECS490: Digital Image Processing. Lecture #12

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

Introduction to Computer Vision and image processing

Color Image Processing

Christoph Wagner Colour Theory

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 image processing

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

The Principles of Chromatics

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

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

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

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

Introduction to Color Science (Cont)

Technology and digital images

In order to manage and correct color photos, you need to understand a few

Lecture 8. Color Image Processing

Digital Imaging & Photoshop

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

Basics of Colors in Graphics Denbigh Starkey

Lecture 3: Grey and Color Image Processing

Fundamentals of Multimedia

Raster (Bitmap) Graphic File Formats & Standards

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 Theory: Defining Brown

VC 16/17 TP4 Colour and Noise

CS101 Lecture 19: Digital Images. John Magee 18 July 2013 Some material copyright Jones and Bartlett. Overview/Questions

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

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

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

Coreldraw Crash Course

Exercise NMCGJ: Image Processing

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

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

3. Image Formats. Figure1:Example of bitmap and Vector representation images

CMPSC 390 Visual Computing Spring 2014 Bob Roos Review Notes Introduction and PixelMath

Lecture #2: Digital Images

Unit 8: Color Image Processing

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

Additive Color Synthesis

excite the cones in the same way.

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

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

Interactive Computer Graphics

CSE1710. Big Picture. Reminder

Color Science. CS 4620 Lecture 15

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

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

MULTIMEDIA SYSTEMS

Course Objectives & Structure

IMAGES AND COLOR. N. C. State University. CSC557 Multimedia Computing and Networking. Fall Lecture # 10

CS 262 Lecture 01: Digital Images and Video. John Magee Some material copyright Jones and Bartlett

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

TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES

Multimedia Systems and Technologies

Transcription:

Images and Colour COSC342 Lecture 2 2 March 2015

In this Lecture Images and image formats Digital images in the computer Image compression and formats Colour representation Colour perception Colour spaces COSC342 Images and Colour 2

Georges Seurat Parade de Cirque Metropolitan Museum of Art, New York COSC342 Images and Colour 3

Images in the Computer A image, for our purposes, is a 2D array of pixels (picture elements) Each pixel may be a single value, or a list of values A single value gives a monochrome greyscale image Colour images typically have three values Usually these are red, green, and blue (but see later) These values may be integers, floating point numbers, etc. Most commonly integers in the range [0, 255] Monochrome images are sometimes called 8-bit images Colour images are 24-bit Floats in the range [0, 1] are also common during processing COSC342 Images and Colour 4

Images in a Computer (189, 51, 71) (176, 229, 234) (116, 129, 89) COSC342 Images and Colour 5

Images File Formats There are many different image file formats Simple file formats use a lot of space Compression is used to reduce this Lossless compression means you can get the original data back Lossy compression doesn t, but can give smaller files Common file formats: Format Compression Colours Features JPEG Lossy Full colour Small file sizes GIF Lossless 256 colours Animation, transparency PNG Lossless Full colour Transparency BMP Lossless Full colour Simple format PNM None Full colour Very simple format COSC342 Images and Colour 6

Sample PPM File The Portable anymap format has many versions This is an example of a small ASCII Portable PixMap (PPM) file. P5 2 3 255 255 0 0 0 255 0 0 0 255 255 255 0 255 255 255 0 0 0 COSC342 Images and Colour 7

Compression Picture files get big fast 8-megapixel images are 24MB Simple method Runlength encoding Suppose we have a sequence of 10 blue pixels Raw data would be 0 0 255, repeated 10 times Instead, store 0 0 255 10 When will this work? When is it a bad idea? More complex methods: Algorithms like LZW create dictionaries of repeating strings The change from one pixel to the next is often small Frequency based methods - Discrete Cosine Transform in JPEG COSC342 Images and Colour 8

Compression Artefacts JPEG s lossy compression works on 8 8 blocks of pixels It has a parameter to trade off quality and file size Quality = 90 Quality = 50 Quality = 10 COSC342 Images and Colour 9

Colour is Complicated Colour is often thought of as frequency or wavelength of light Blue + green light = cyan, a bright bluey-green But red + green = yellow, not reddish-green Even weirder, red plus blue light gives magenta (sort of purple) Blue + yellow paint gives green, but blue + yellow light gives white What s going on? COSC342 Images and Colour 10

Human Colour Perception Most people have four types of light receptors in the retina Rods, which are just sensitive to brightness Three types of cone, sensitive to short, medium, and long wavelengths These are often called blue, green and red cones Before the signal reaches the brain, some processing happens The brain receives differences between cone responses One axis is L M (red green) The other axis is S (L + M) (blue yellow) COSC342 Images and Colour 11

Red-Green-Blue RGB is the most common colour space in computing It is used in displays most monitors have red+green+blue pixels Red + Green + Blue = White Mixing the primary colours gives secondary colours R + G = Yellow, G + B = Cyan, B + R = Magenta COSC342 Images and Colour 16

RGB Greyscale I Converting RGB to greyscale isn t just (R + G + B)/3 I Our eyes are more sensitive to green light, and less to blue I The rough weighting is 0.3R + 0.6G + 0.1B (R + G + B)/3 COSC342 0.3R + 0.6G + 0.1B Images and Colour 17

YUV / YCrCb While we have 3 types of cone, we see colour on two axes Y is intensity (what our rods see) U (Cr) is the blue yellow axis, right to left V (Cb) is the red green axis, top to bottom Our eyes are much more sensitive to changes in intensity than colour This can be used in compression use more bits for Y than U or V YCrCb is used in JPEG, and was used in analogue broadcast TV COSC342 Images and Colour 18

Hue-Saturation-Value The way we describe colour is different again We talk about general hues red, green, etc. We talk about bright or strong colours Hue is the angle around the colour wheel Saturation is how strong the colour is Value is how light or dark the colour is Often used in colour-pickers, since it is quite intuitive Related (but different) is HSL (Hue-Saturation-Lightness) HSV cone.png CC-BY-SA-3.0, Moongateclimber http://commons.wikimedia.org/wiki/file:hsv_cone.png COSC342 Images and Colour 19

Cyan-Magenta-Yellow(-blacK) RGB is an additive colour model we add light In printing, subtractive models are needed Cyan ink subtracts red light Magenta ink subtracts green light Yellow ink subtracts blue light In theory, C+M+Y = Black, but this is hard to achieve In practice, a true black ink is used CMYK COSC342 Images and Colour 20

CIE XYZ Based on scientific approach to perception of colour Several different versions, the one below is CIE 1931 This area covers all the colours we can see Around the edge are pure wavelengths Third axis (not shown) is brightness The line between any two points is a mixture of the end point colours Any RGB or CMY process gives a triangle within the spectrum This is called the gamut of the display COSC342 Images and Colour 21

Tutorials and Labs Next week s tutorial Matrix and vector mathematics Have a go before the tutorial Come along if you have any questions or issues Monday s Lab: Blender practice Building a building COSC342 Images and Colour 22