Image and video processing

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

Chapter 3 Part 2 Color image processing

6 Color Image Processing

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

Color Image Processing EEE 6209 Digital Image Processing. Outline

Digital Image Processing. Lecture # 8 Color Processing

Digital Image Processing Chapter 6: Color Image Processing ( )

Color Image Processing. Jen-Chang Liu, Spring 2006

Digital Image Processing (DIP)

Unit 8: Color Image Processing

Color Image Processing

Digital Image Processing

CHAPTER 6 COLOR IMAGE PROCESSING

Chapter 6: Color Image Processing. Office room : 841

Digital Image Processing Chapter 6: Color Image Processing

Digital Image Processing COSC 6380/4393

Digital Image Processing

Digital Image Processing Color Models &Processing

Color Transformations

Color Image Processing

Digital Image Processing Chapter 6: Color Image Processing ( )

Color Image Processing II

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

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

Color Image Processing

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

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

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

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

Afdeling Toegepaste Wiskunde/ Division of Applied Mathematics Colour image processing(6.4 and 6.5) SLIDE 1/10

VC 16/17 TP4 Colour and Noise

EECS490: Digital Image Processing. Lecture #12

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

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

Additive Color Synthesis

Colors in Images & Video

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

Color images C1 C2 C3

LECTURE 07 COLORS IN IMAGES & VIDEO

Reading instructions: Chapter 6

Lecture 8. Color Image Processing

05 Color. Multimedia Systems. Color and Science

Figure 1: Energy Distributions for light

MODULE 4 LECTURE NOTES 1 CONCEPTS OF COLOR

Lecture 3: Grey and Color Image Processing

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

Chapter 2 Fundamentals of Digital Imaging

Introduction. The Spectral Basis for Color

Color Image Processing. Gonzales & Woods: Chapter 6

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

DIGITAL IMAGE PROCESSING UNIT III

Interactive Computer Graphics

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

Digital Technology Group, Inc. Tampa Ft. Lauderdale Carolinas

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

Color image processing

Digital Image Processing

RGB colours: Display onscreen = RGB

COLOR AS A DESIGN ELEMENT

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

Imaging Process (review)

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

Color and More. Color basics

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

Introduction to Computer Vision and image processing

Background. Computer Vision & Digital Image Processing. Improved Bartlane transmitted image. Example Bartlane transmitted image

Part I: Color Foundations The Basic Principles of COLOUR theory

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

Digital Image Processing

Color Image Processing

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

Understanding Color Theory Excerpt from Fundamental Photoshop by Adele Droblas Greenberg and Seth Greenberg

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

Image enhancement. Introduction to Photogrammetry and Remote Sensing (SGHG 1473) Dr. Muhammad Zulkarnain Abdul Rahman

Digital Image Processing

DESIGN & DEVELOPMENT OF COLOR MATCHING ALGORITHM FOR IMAGE RETRIEVAL USING HISTOGRAM AND SEGMENTATION TECHNIQUES

CoE4TN4 Image Processing. Chapter 3: Intensity Transformation and Spatial Filtering

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

USE OF COLOR IN REMOTE SENSING

Stamp Colors. Towards a Stamp-Oriented Color Guide: Objectifying Classification by Color. John M. Cibulskis, Ph.D. November 18-19, 2015

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

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

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

Image interpretation I and II

Image processing & Computer vision Xử lí ảnh và thị giác máy tính

CHARACTERISTICS OF REMOTELY SENSED IMAGERY. Spatial Resolution

Using Curves and Histograms

Apply Colour Sequences to Enhance Filter Results. Operations. What Do I Need? Filter

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

The human visual system

SilverFast. Colour Management Tutorial. LaserSoft Imaging

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

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

Color Image Processing in Digital Image

Image interpretation and analysis

Color Theory: Defining Brown

IMAGE PROCESSING >COLOR SPACES UTRECHT UNIVERSITY RONALD POPPE

Raster (Bitmap) Graphic File Formats & Standards

Digital Image Processing

Transcription:

Image and video processing Processing Colour Images Dr. Yi-Zhe Song

The agenda Introduction to colour image processing Pseudo colour image processing Full-colour image processing basics Transforming colours Smoothing and sharpening - 2 -

Preview Motivation Colour is a powerful descriptor that often simplifies object identification and extraction from a scene. Human can discern thousands of color shades and intensities, compared to about only two dozen shades of gray. - 3 -

Preview - 4 -

Preview - 5 -

Preview Color image processing is divide into two major area: Full-Color Processing Pseudo-Color Processing - 6 -

Introduction Different systems of representing colours were introduced in an earlier lecture RGB and HSV are the most common The number of distinct colours that can be reproduced on a computer display or be recorded by a camera will depend on the number of bits allocated to the colour components and the display capabilities - 7 -

Introduction For 24-bit each colour is represented by three two hex digit values e.g. purest red is FF0000, 000000 is black and FFFFFF is white. A 24-bit RGB image can render 16,777,216 colours. Computer systems and other devices now normally have 24-bit capability. Limitations on displays and operating systems limited the colours that could be relied on to reproduce on all systems to 216 safe colours often called safe web colours or safe browser colours, but this limitation is no longer necessary. Top left of colour squares is FFFFFF, next right FFFFCC, next right FFFF99 etc. - 8 -

Safe RGB Colours Safe RGB Colors (Safe Web colors) - 9 -

Safe RGB Colours - 10 -

Representing 24-bit colours Some systems use 30-bit colour, known as deep colour, or even 48-bit. The human eye can only distinguish 24-bit colours, but more bits are useful for post-processing. Displays will be driven by RGB values, but human perception of colours is better matched by HSV descriptions. Converting between the two systems is fairly simple - 11 -

Pseudocolour image processing Pseudocolour or false colour image processing is assigning colours to grey values This is done to improve the understanding of images such as medical images, rainfall or temperature maps Humans can distinguish thousands of colour shades but only about 25 shades of grey A method of allocating colours to grey levels is intensity slicing Each grey level is considered to be a different slice Any pixel value higher than the slice will given one colour Pixel values lower than the slice will be given a different value Values on the slice will be arbitrarily assigned one of the two colours - 12 -

Intensity slicing The grey levels are from 0 (black) to L-1 (white) P planes for different intensities (I 1, I 2.I p ) that partition the grey scale into P+1 intervals Each interval is assigned a different colour - 13 -

Intensity slicing example Picker Thyroid Phantom Monochrome image of a radiation pattern coloured with eight colour regions The coloured version makes it much easier to distinguish the different grey levels - 14 -

Weld X-ray Here problems in the weld are revealed by the X-ray saturating in the problem region The best conversion to colour is one for white (saturation) and a contrasting one for all other grey levels Here yellow for white and blue for everything else. - 15 -

Rainfall pattern Rain sensors produces gray-scale images in which intensity corresponds to average monthly rainfall Colours are assigned to intensity values producing colour coded images Zoom of the South America region - 16 -

Intensity to colour More range of pseudocolour enhancement can be achieved by three separate transformations of the pixel value to give red, green and blue values for the coloured pixel Changing the transformations can then produce very different colourings - 17 -

Intensity to colour Functional block diagram for pseudocolour image processing f R, f G, and f B are fed into the corresponding red, green and blue inputs of an RGB colour monitor - 18 -

The effect of the transformations Monochrome images with and without the explosives cylinder Colour images clearly show the cylinder - 19 -

The effect of the transformations Explosives and garment bag received essentially the same colours - 20 -

Intensity to colour A pseudocolour coding approach used when several monochrome images are available - 21 -

Colour coding of multispectral images 4 spectral satellite images of Washington D. C. Thematic bands in NASA s LANDSAT satellite - 22 -

Combining several monochrome images Jupiter Moon Io (NASA) Bottom picture is a close-up of part of the top picture Pseudocolour by combining images from sensors that respond to different spectral regions some beyond the capability of the human eye - 23 -

Full-colour image processing Two approaches Process each colour component individually Work with colour pixels directly As full-colour images typically have three components, the pixels are vectors This can be represented in RGB colour space as c x, y ( ) = é ê êê c R c G x, y ( ) x, y ( ) ù é ú ê úú = êê R x, y ( ) G x, y ( ) ù ú úú ê ë c B x, y ( ) ú û ê ë B x, y ( ) ú û - 24 -

Spatial mask in RGB colour space Major categories of full-colour Image processing: Per-colour-component processing Vector-based processing - 25 -

Colour Transformation Processing the components of a colour image within the context of a single colour model. g( x, y) T f ( x, y) r, r r 2,...,, i 1,2 n si T,..., i 1 n Colour components of g Colour components of f Colour mapping functions - 26 -

Colour transformations The transformations will be operations such as Changing image intensity Replacing colours with their complements Highlighting a specific range of colours in an image Correcting image tone Correcting image colours Image smoothing or sharpening Colour image edge detection Segmentation based on colour The transformations can be carried out in any colour space but some are easier to achieve in particular colour spaces - 27 -

Colour transformations CMYK RGB HSI - 28 - Some difficulty in interpreting the HUE: Discontinuity where 0 and 360 º meet. Hue is undefined for a saturation 0

Changing image intensity Below the intensity is reduced by 30%, so values are multiplied by 0.7. g( x, y) kf ( x, y) s i kr i i 1,2,3 s i kr i ( 1 k) i 1,2,3-29 - s s s 1 2 3 r 1 r 2 kr 3

Colour complements These are like grey-scale negatives and are the opposite colours in the colour circle - 30 -

Colour complement values Here the new value for each component is calculated for 8-bit colour as 255 - current value. If R=120, G= 200, B= 50 for the current pixel the colour complement pixel values will be R=135, G=55, B= 205-31 -

Colour slicing Motivation: Highlighting a specific range of colors in an image Basic Idea: Display the color of interest so that they stand out from background Use the region defined by the colors as a mask for further processing The simplest technique is to replace all colours outside the selected range with a neutral colour (e.g. mid-grey; R=G=B= 127 for 8-bit) - 32 -

Colour slicing 1. Colors of interest are enclosed by cube (or hypercube for n>3) s i 0.5 r i if r a otherwise j j W 2 any1 jn 2. Colors of interest are enclosed by Sphere, i 1,2,..., n s i 0.5 r i if n j1 ( r otherwise j a j ) 2 R 2 0, i 1,2,..., n - 33 -

Colour slicing results Cube Sphere - 34 -

Tone and Colour Correction In conjunction with digital cameras, flatbed scanners, and inkjet printers, they turn a personal computer into a digital Darkroom The Colors of monitor should represent accurately any digitally scanned source images, as well as the final printed out Device Independent Color Model The Model of choice for many color management system (CMS) is CIE L*a*b* (also called CIELAB) model - 35 -

- 36 - Tone and Colour Correction L*a*b Color Components: 0.008856 16 /116 7.7.87 0.008856 ) ( : 200 * 500 * 16 116 * 3 q q q q q h where Z Z h Y Y h b Y Y h X X h a Y Y h L W W W W w X W, Y W and Z W are reference white tristimulus values (defined by x=0.3127 and y=0.3290 in the chromaticity diagram

Tone and Colour Correction The tonal range of an image, also called its key-type, refers to its general distribution of color intensities. High-key images: Most of the information is concentrated at high intensities. Low-key images: Most of the information is concentrated at low intensities. Middle-key images: lie in between - 37 -

Tone transformation Middle-key Image - 38 -

Tone correction 2 High-key Image - 39 -

Tone correction 3 Low-key Image - 40 -

Colour balancing (correction) The proportion of any color can be increased by decreasing the amount of the opposite (or complementary) color in the image or by raising the proportion of the two immediately adjacent colors or decreasing the percentage of the two colors adjacent to the complement. Magenta Removing Red and Blue Adding Green - 41 -

Colour balancing (correction) Correction in black Correction in cyan - 42 -

Colour balancing (correction) Correction in magenta Correction in yellow - 43 -

Correction using histograms Histogram equalization automatically seeks to give the image a uniform histogram of intensity values If each of the colour components was equalized independently this would change the colours The colour intensities should be distributed uniformly but the colours left unaltered, so the HSV colour space is required - 44 -

Histogram equalization on intensity Histogram Equalizing the Intensity - 45 -

Saturation correction Histogram Equalizing the Intensity Saturation Adjustment - 46 -

- 47 - Smoothing The techniques used for smoothing grey scale images can be used for colour images Each colour plane (R G and B) is smoothed independently using a spatial filter identical to the one we used for grey scale images a mask that gives each pixel a new value that is the average of the surrounding pixels S xy y x y x K y x ), ( ), ( 1 ), ( xy xy xy S y x S y x S y x y x B K y x G K y x R K y x ), ( ), ( ), ( ), ( 1 ), ( 1 ), ( 1 ), (

Smoothing The techniques used for smoothing grey scale images can be used for colour images Alternatively we can work in the HSV colour space. In this case we would only apply the smoothing filter to the intensity component. As smoothing in RGB colour space averages colour pixel values the smoothing will result in the colour of each pixel being the average of the colour of the neighbours but using HSV the colour and saturation of each pixel remains unchanged - 48 -

Smoothing Red Green Blue - 49 -

Smoothing Hue Saturation Intensity - 50 -

Smoothing Averaging R,G and B Averaging Intensity Difference - 51 -

- 52 - Sharpening We can use the Laplacian to add a smoothed image to the original image as with grey scale images and again we can either apply the Laplacian to each colour plane in RGB colour space The Laplacian of Vector c : ), ( ), ( ), ( ), ( 2 2 2 2 y x B y x G y x R y x

Sharpening Sharpening by applying the Laplacian to the intensity component in HSV colour space Sharpening R,G and B Sharpening Intensity Difference - 53 -

Segmentation Segmentation is normally performed in HSV (HSI) colour space as this separates colour as a separate component Colour is often a very useful way of identifying objects in an image Segmentation in HIS Colour Space Segmentation in RGB Vector Space Colour Edge Detection - 54 -

What we have learnt Use of different colour spaces Pseudocolouring of images to improve understanding Image slicing Using transformation functions Intensity transformation Colour complement transformation Correcting image tone Correcting image colours Smoothing and sharpening colour images - 55 -