Color Quantization. Common color resolution for high quality images is 256 levels for each Red, Greed, Blue channels, or 256 = 16777216 colors. How can.

Slides:



Advertisements
Similar presentations
Digital Color 24-bit Color Indexed Color Image file compression
Advertisements

Introduction to compositing. What is compositing?  The combination of two images to produce a single image  Many ways we can do this, especially in.
Image Display MATLAB functions for displaying image Bit Planes
 Image Characteristics  Image Digitization Spatial domain Intensity domain 1.
Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.
CSE 589 Applied Algorithms Spring 1999 Image Compression Vector Quantization Nearest Neighbor Search.
Digital Cameras CCD (Monochrome) RGB Color Filter Array.
CS 376b Introduction to Computer Vision 04 / 04 / 2008 Instructor: Michael Eckmann.
Sharif University of Technology A modified algorithm to obtain Translation, Rotation & Scale invariant Zernike Moment shape Descriptors G.R. Amayeh Dr.
Half Toning. Continuous Half Toning Color Half Toning.
Original image: 512 pixels by 512 pixels. Probe is the size of 1 pixel. Picture is sampled at every pixel ( samples taken)
USER VERIFICATION SYSTEM. Scope Web Interface RGB separation Pervasive.
Images.
First Bytes - LabVIEW. Today’s Session Introduction to LabVIEW Colors and computers Lab to create a color picker Lab to manipulate an image Visual ProgrammingImage.
Image Representation.
Colour Image Compression by Grey to Colour Conversion Mark S. Drew 1, Graham D. Finlayson 2, and Abhilash Jindal 3 1 Simon Fraser University 2 University.
5. 1 JPEG “ JPEG ” is Joint Photographic Experts Group. compresses pictures which don't have sharp changes e.g. landscape pictures. May lose some of the.
On Error Preserving Encryption Algorithms for Wireless Video Transmission Ali Saman Tosun and Wu-Chi Feng The Ohio State University Department of Computer.
Graphical images Bit-mapped (or raster-based) image: Matrix describing the individual dots that are the smallest elements (pixels) of resolution on a computer.
01/31/02 (C) 2002, UNiversity of Wisconsin, CS 559 Last Time Color and Color Spaces.
CS559-Computer Graphics Copyright Stephen Chenney Image File Formats How big is the image? –All files in some way store width and height How is the image.
9/16/04© University of Wisconsin, CS559 Spring 2004 Last Time Color –The principle of trichromacy says that any spectrum can be matched using three primaries.
Image segmentation by clustering in the color space CIS581 Final Project Student: Qifang Xu Advisor: Dr. Longin Jan Latecki.
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.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
2/3/04© University of Wisconsin, CS559 Spring 2004 Last Time Color –Transforming between two color spaces –A gamut is the set of displayable colors in.
Objective Understand concepts used to create digital graphics. Course Weight : 15% Part Three : Concepts of Digital Graphics.
CS 395 T Real-Time Graphics Architectures, Algorithms, and Programming Systems Spring’03 Vector Quantization for Texture Compression Qiu Wu Dept. of ECE.
Colours and Computer Jimmy Lam The Hong Kong Polytechnic University.
1 After completing this lesson, you will be able to: Identify the key differences between analog and digital technologies. Define digital camera terms,
1 CS6825: Digital images How are DIGITAL images created. How are DIGITAL images created. Previous lecture we discussed how ANALOG images are created Previous.
1 Chapter 2: Color Basics. 2 What is light?  EM wave, radiation  Visible light has a spectrum wavelength from 400 – 780 nm.  Light can be composed.
Optimizing Web Graphics Session #6 INP150. Image Types Types  Bitmap / Raster---dots  Bitmap images are made of individual pixels arranged in patterns.
Unsupervised Learning. Supervised learning vs. unsupervised learning.
09/17/02 (C) 2002, University of Wisconsin, CS 559 Last Time Color Spaces File formats.
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.
CS 111 – Sept. 3 More data representation Review hex notation Text –ASCII and Unicode Sound and images Commitment: –For Wednesday: Please read pp
Image Manipulation CSC361/661 – Digital Media Spring 2002 Burg/Wong.
Why a bitmap (.bmp), not a.jpg? If you cannot save a.bmp, make it an uncompressed.tif. Compression (of this 8-bit 397,000 pixel image): none (397kb memory)medium.
02/05/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Mach Banding –Humans exaggerate sharp boundaries, but not fuzzy ones.
1 Computer Vision & Image Processing G. Andy Chang Department of Mathematics & Statistics Youngstown State University Youngstown, Ohio.
CS 101 – Sept. 14 Review Huffman code Image representation –B/W and color schemes –File size issues.
Vector Quantization CAP5015 Fall 2005.
Digitization Informatics INFO I101 January 26, 2004 John C.Paolillo.
Homework 2 (Due: 3/26) A. Given a grayscale image I,
3-1 Chapter 3: Image Display The goodness of display of an image depends on (a) Image quality: i) Spatial resolution, ii) Quantization (b) Display device:
Graphics II Image Processing I. Acknowledgement Most of this lecture note has been taken from the lecture note on Multimedia Technology course of University.
Pulse Code Modulation (PCM) Analog voice data must be translated into a series of binary digits before they can be transmitted. With Pulse Code Modulation.
Color Image Segmentation Mentor : Dr. Rajeev Srivastava Students: Achit Kumar Ojha Aseem Kumar Akshay Tyagi.
Digital Image Processing CCS331 Relationships of Pixel 1.
Computer Graphics Lesson 2 July 12, 2005 Image Formats What are some formats you are familiar with? There are 4 basic image format types: Uncompressed.
1 Kernel Machines A relatively new learning methodology (1992) derived from statistical learning theory. Became famous when it gave accuracy comparable.
Digital Image Fundamentals
Images In Matlab.
Algorithms in the Real World
Compression (of this 8-bit 397,000 pixel image):
DIP 9 65 Original 210 Eye Zoomed.
COMS 161 Introduction to Computing
CS320n –Visual Programming
Chapter 2 Data Representation.
Color Visualization in Matlab
Digital Image Processing
© 2010 Cengage Learning Engineering. All Rights Reserved.
Visuals are analog signals...
REDUKSI NOISE Pertemuan-8 John Adler
Choosing your theme and background
Presentation transcript:

Color Quantization

Common color resolution for high quality images is 256 levels for each Red, Greed, Blue channels, or 256 = colors. How can an image be displayed with fewer colors than it contains? Select a subset of colors (the colormap or pallet) and map the rest of the colors to them. 3

Color Quantization With 8 bits per pixel and color look up table we can display at most 256 distinct colors at a time. To do that we need to choose an appropriate set of representative colors and map the image into these colors

Color Quantization 2 colors256 colors16 colors4 colors

Quantization phases Sample the original image for color statistics Select color map based on those statistics Map the colors to their representative in the color map Redraw the image, quantizing each pixel Algorithm Mapping…

Naïve Color Quantization 24 bit to 8 bit: Retaining most significant bits of the R,G and B components.

3-3-2

Popularity 16 colors…

The reds are not that popular…

Median Cut R G B

Color_quantization(Image, n){ For each pixel in Image with color C, map C in RGB space; B = {RGB space}; While (n-- > 0) { L = Heaviest (B); Split L into L1 and L2; Remove L from B, and add L1 and L2 instead; } For all boxes in B do assign a representative (color centroid); For each pixel in Image do map to one of the representatives; } The median cut algorithm

Is this algorithm image dependent? What is the Heaviest(B) box? Several factors have to be weighed: The total number of image colors in the box. The total number of DIFFERENT image colors in the box. The physical size of the box. Which representative should be chosen for a given color? The representative of the box containing the color. The closest representative under some metric.

A better solution

Median Cut

Generalized Llyod Algorithm - GLA eiei

eiei

eiei

Original image 8 indexed colored

32 indexed colored

128 indexed colored Original image

8 levels per channel that is, 9 bits per pixel

8 bit4 bit24 bit

Original Image

Threshholding

Bayer’s Ordered Dithering

Error Diffusion

Median Cut (4 levels)

Median Cut (8 levels)