 Image Characteristics  Image Digitization Spatial domain Intensity domain 1.

Slides:



Advertisements
Similar presentations
13- 1 Chapter 13: Color Processing 。 Color: An important descriptor of the world 。 The world is itself colorless 。 Color is caused by the vision system.
Advertisements

Filtration based on Color distance
Digital Image Processing Lecture 3: Image Display & Enhancement
Sampling and Pulse Code Modulation
Digital Image Processing
Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
Color spaces CIE - RGB space. HSV - space. CIE - XYZ space.
DIGITAL IMAGE PROCESSING CMSC 150: Lecture 14. Conventional Cameras  Entirely chemical and mechanical processes  Film: records a chemical record of.
The eyes have three different kinds of color receptors; One kind is most sensitive to short wavelengths, one to middle wavelengths, and one to long wavelengths.
EE 7730 Image Segmentation.
Color Mixing There are two ways to control how much red, green, and blue light reaches the eye: “Additive Mixing” Starting with black, the right amount.
What is color for?.
Color Quantization. Common color resolution for high quality images is 256 levels for each Red, Greed, Blue channels, or 256 = colors. How can.
1 Perception. 2 “The consciousness or awareness of objects or other data through the medium of the senses.”
Digital Images The nature and acquisition of a digital image.
01/31/02 (C) 2002, UNiversity of Wisconsin, CS 559 Last Time Color and Color Spaces.
Image Compression - JPEG. Video Compression MPEG –Audio compression Lossy / perceptually lossless / lossless 3 layers Models based on speech generation.
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.
Spectral contrast enhancement
Entropy and some applications in image processing Neucimar J. Leite Institute of Computing
The Digital Image.
Image Processing 고려대학교 컴퓨터 그래픽스 연구실 cgvr.korea.ac.kr.
Digital Images Chapter 8 Exploring the Digital Domain.
Any questions about the current assignment? (I’ll do my best to help!)
IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction
Lab #5-6 Follow-Up: More Python; Images Images ● A signal (e.g. sound, temperature infrared sensor reading) is a single (one- dimensional) quantity that.
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.
How A Camera Works Image Sensor Shutter Mirror Lens.
Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
Computer Vision – Fundamentals of Human Vision Hanyang University Jong-Il Park.
6. COLOR IMAGE PROCESSING
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.
Chapter 1. Introduction. Goals of Image Processing “One picture is worth more than a thousand words” 1.Improvement of pictorial information for human.
A Simple Image Model Image: a 2-D light-intensity function f(x,y)
3. Image Sampling & Quantisation 3.1 Basic Concepts To create a digital image, we need to convert continuous sensed data into digital form. This involves.
Digital Image Processing (DIP) Lecture # 5 Dr. Abdul Basit Siddiqui Assistant Professor-FURC 1FURC-BCSE7.
Digital image processing Chapter 3. Image sampling and quantization IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction 2. Sampling in the two-dimensional.
Digital Image Processing Lecture 3: Image Display & Enhancement March 2, 2005 Prof. Charlene Tsai.
© 2002 by Yu Hen Hu 1 ECE533 Digital Image Processing Image Acquisition.
09/17/02 (C) 2002, University of Wisconsin, CS 559 Last Time Color Spaces File formats.
Graphics Lecture 4: Slide 1 Interactive Computer Graphics Lecture 4: Colour.
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.
Image Processing Ch2: Digital image Fundamentals Prepared by: Tahani Khatib.
02/05/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Mach Banding –Humans exaggerate sharp boundaries, but not fuzzy ones.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
CS 101 – Sept. 14 Review Huffman code Image representation –B/W and color schemes –File size issues.
1 Machine Vision. 2 VISION the most powerful sense.
Digitization Informatics INFO I101 January 26, 2004 John C.Paolillo.
Computer Science 121 Scientific Computing Winter 2014 Chapter 14 Images.
Image Perception ‘Let there be light! ‘. “Let there be light”
ISAN-DSP GROUP Digital Image Fundamentals ISAN-DSP GROUP What is Digital Image Processing ? Processing of a multidimensional pictures by a digital computer.
©Soham Sengupta,
Thresholding Foundation:. Thresholding In A: light objects in dark background To extract the objects: –Select a T that separates the objects from the.
1 Embedded Signal Processing Laboratory The University of Texas at Austin Austin, TX USA 1 Mr. Vishal Monga,
Color Measurement and Reproduction Eric Dubois. How Can We Specify a Color Numerically? What measurements do we need to take of a colored light to uniquely.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
Image Perception ‘Let there be light! ‘. “Let there be light”
Digital Image Processing Lecture 12: Color Image Processing Naveed Ejaz.
Digital Image Fundamentals
Image Processing Objectives To understand pixel based image processing
Tone Dependent Color Error Diffusion
Multimedia Systems and Applications
Computer Vision Lecture 4: Color
Tone Dependent Color Error Diffusion
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Digital Image Fundamentals
Digital Image Processing
Presentation transcript:

 Image Characteristics  Image Digitization Spatial domain Intensity domain 1

2 What is an Image ? An image is a projection of a 3D scene into a 2D projection plane. An image can be defined as a 2 variable function f(x,y): R 2  R, where for each position (x,y) in the projection plane, f(x,y) defines the light intensity at this point.

Image as a function 3

4 i(x,y) r(x,y) f(x,y)=i(x,y)  r(x,y) g(i,j) Image Acquisition pixel=picture element

Acquisition System 5 WorldCameraDigitizer Digital Image CMOS sensor

Image Types Three types of images: –Binary images g(x,y)  {0, 1} –Gray-scale images g(x,y)  C typically c={0,…,255} –Color Images three channels: g R (x,y)  C g G (x,y)  C g B (x,y)  C 6

Gray Scale Image x = y =

Color Image 8

Notations Image Intensity - –Light energy emitted from a unit area in the image –Device dependence Image Brightness - –The subjective appearance of a unit area in the image –Context dependence –Subjective Image Gray-Level - –The relative intensity at each unit area –Between the lowest intensity (Black value) and the highest intensity (White value) –Device independent 9

Intensity vs. Brightness 10

11 Intensity f1f1 f2f2 f2 f1 f 1 < f 2,  f 1 =  f 2 Equal intensity steps: Equal brightness steps: Intensity vs. Brightness

Weber Law Describe the relationship between the physical magnitudes of stimuli and the perceived intensity of the stimuli. In general,  f needed for just noticeable difference (JND) over background f was found to satisfy: 12 Brightness  log(f)

What about Color Space? JND in XYZ color space was measured by Wright and Pitt, and MacAdam in the thirties MacAdam ellipses: JND plotted at the CIE-xy diagram Conclusion: measuring perceptual distances in the cie-XYZ space is not a good idea

Perceptually Uniform Color Space Most common: CIE-L*a*b* (CIELAB) color space. L* represents luminance. a* represents the difference between green and red, and b* represents the difference between yellow and blue.

Perceptually Uniform Color Space XYZ to CIELAB conversion: where (X 0,Y 0,Z 0 ) are the XYZ values of a reference white point

Digitization Two stages in the digitization process: –Spatial sampling: Spatial domain –Quantization: Gray level 16 f x y f(x,y) Continuous ImageDigital Image g(i,j)  C j i

Spatial Sampling When a continuous scene is imaged on the sensor, the continuous image is divided into discrete elements - picture elements (pixels)

Spatial Sampling

0 x Sampling The density of the sampling denotes the separation capability of the resulting image Image resolution defines the finest details that are still visible by the image We use a cyclic pattern to test the separation capability of an image

Sampling Rate

1D Example: 0 Nyquist Frequency Nyquist Rule: To observe details at frequency f (wavelength d) one must sample at frequency > 2f (sampling intervals < d/2) The Frequency 2f is the Nyquist Frequency. Aliasing: If the pattern wavelength is less than 2d erroneous patterns may be produced.

Aliasing - Moiré Patterns

Temporal Aliasing

Temporal Aliasing Example

Image De-mosaicing Can we do better than Nyquist?

Image De-mosaicing Basic idea: use correlations between color bands

Quantization Choose number of gray levels (according to number of assigned bits) Divide continuous range of intensity values

Quantization

Quantization 8 bits image 4 bits image Low freq. areas are more sensitive to quantization

How should we quantize an image? Simplest approach: uniform quantization Gray-Level Sensor Voltage Z0Z0 Z1Z1 Z2Z2 Z3Z3 Z4Z4 Z k-1 ZkZk.. q0q0 q1q1 q2q2 q3q3 q k-1.. sensor voltage quantization level

Non-uniform Quantization Quantize according to visual sensitivity (Weber’s Law) Non uniform sensor voltage distribution Z7Z7 Z6Z6 Z5Z5 Z4Z4 Z3Z3 Z1Z1 Z0Z0 Z2Z2 q6q6 q5q5 q3q3 q2q2 q0q0 q4q4 q1q1 Low Visual Sensitivity High Visual Sensitivity

Optimal Quantization (Lloyd-Max) Content dependant Minimize quantization error q0q0 q1q1 q2q2 q3q3 sensor voltage quantization level Z0Z0 Z1Z1 Z2Z2 Z3Z3 Z4Z4

Optimal Quantization (Lloyd-Max) Also known as Loyd-Max quantizer Denote P(z) the probability of sensor voltage The quantization error is : Solution: Iterate until convergence (but optimal minimum is not guaranteed).

Example 8 bits image 4 bits image Uniform quantization 4 bits image Optimal quantization

Common color resolution for high quality images is 256 levels for each Red, Greed, Blue channels, or = 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. from: Daniel Cohen-Or 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 from: Daniel Cohen-Or Color Quantization

from: Daniel Cohen-Or 2 colors 256 colors 16 colors 4 colors Color Quantization

Naïve (uniform) Color Quantization 24 bit to 8 bit: Retaining most significant bits of the R,G and B components. false contours from: Daniel Cohen-Or

Median Cut R G B

from: Daniel Cohen-Or

Median Cut from: Daniel Cohen-Or

Median Cut from: Daniel Cohen-Or

Median Cut from: Daniel Cohen-Or

Median Cut from: Daniel Cohen-Or

Color_MedCut (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 from: Daniel Cohen-Or

Better Solution from: Daniel Cohen-Or

Generalized Lloyed Algorithm (GLA) pipi from: Daniel Cohen-Or

Generalized Lloyed Algorithm (GLA) pipi from: Daniel Cohen-Or

Generalized Lloyed Algorithm (GLA) pipi from: Daniel Cohen-Or

Color_GLloyd(Image, K) { - Guess K cluster centre locations - Repeat until convergence { - For each data point finds out which centre it’s closest to - For each centre finds the centroid of the points it owns - Set a new set of cluster centre locations - optional: split clusters with high variance } The GLA algorithms aims at minimizing the quantization error:

8 bit4 bit24 bit from: Daniel Cohen-Or

More on Color Quantization Observation 1: Distances and quantization errors measured in RGB space, do not relate to human perception. Solution: Apply quantization in perceptually uniform color space (such as CIELAB).

More on Color Quantization Original RGB QuantizationLab Quantization

More on Color Quantization Observation 2: Quantization errors are spatially dependent: we are more sensitive to errors at lower spatial frequencies Sensitivity Spatial Frequency

More on Color Quantization Solution: Assign weight for each pixel color Using this scheme we minimize:

Original Standard quantization Weighted quantization

T H E E N D 57