Computer Vision Lecture 4: Color

Slides:



Advertisements
Similar presentations
November 12, 2013Computer Vision Lecture 12: Texture 1Signature Another popular method of representing shape is called the signature. In order to compute.
Advertisements

ECE 472/572 - Digital Image Processing Lecture 10 - Color Image Processing 10/25/11.
Color spaces CIE - RGB space. HSV - space. CIE - XYZ space.
1. What is Lighting? 2 Example 1. Find the cubic polynomial or that passes through the four points and satisfies 1.As a photon Metal Insulator.
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.
December 5, 2013Computer Vision Lecture 20: Hidden Markov Models/Depth 1 Stereo Vision Due to the limited resolution of images, increasing the baseline.
Informationsteknologi Monday, October 29, 2007Computer Graphics - Class 21 Today’s class Graphics programming Color.
Raster Data. The Raster Data Model The Raster Data Model is used to model spatial phenomena that vary continuously over a surface and that do not have.
© 2002 by Yu Hen Hu 1 ECE533 Digital Image Processing Color Imaging.
1 Color Color Used heavily in human vision Used heavily in human vision Color is a pixel property, making some recognition problems easy Color is a pixel.
Color.
What is color for?.
1 Computer Science 631 Lecture 6: Color Ramin Zabih Computer Science Department CORNELL UNIVERSITY.
A Novel 2D To 3D Image Technique Based On Object- Oriented Conversion.
Introduction of the intrinsic image. Intrinsic Images The method of Finlayson & Hordley ( 2001 ) Two assumptions 1. the camera ’ s sensors are sufficiently.
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.
Human Vision CS200 Art Technology Spring The Retina Contains two types of photoreceptors – Rods – Cones.
Course Website: Digital Image Processing Colour Image Processing.
Digital Image Processing Colour Image Processing.
Any questions about the current assignment? (I’ll do my best to help!)
By Meidika Wardana Kristi, NRP  Digital cameras used to take picture of an object requires three sensors to store the red, blue and green color.
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.
1 Perception and VR MONT 104S, Fall 2008 Lecture 7 Seeing Color.
Color Image Processing A spectrum of possibilities…
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Color in image and video Mr.Nael Aburas. outline  Color Science  Color Models in Images  Color Models in Video.
December 4, 2014Computer Vision Lecture 22: Depth 1 Stereo Vision Comparing the similar triangles PMC l and p l LC l, we get: Similarly, for PNC r and.
6. COLOR IMAGE PROCESSING
Lithological and Structural Mapping Using Satellite Data Mohamed Abdelsalam Missouri S&T.
September 17, 2013Computer Vision Lecture 5: Image Filtering 1ColorRGB HSI.
Digital Image Processing Part 1 Introduction. The eye.
CSC361/ Digital Media Burg/Wong
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.
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
Three-Receptor Model Designing a system that can individually display thousands of colors is very difficult Instead, colors can be reproduced by mixing.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Introduction to Computer Graphics
Autonomous Robots Vision © Manfred Huber 2014.
Intelligent Robotics Today: Vision & Time & Space Complexity.
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.
Processing Images and Video for An Impressionist Effect Automatic production of “painterly” animations from video clips. Extending existing algorithms.
1 Computational Vision CSCI 363, Fall 2012 Lecture 32 Biological Heading, Color.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Color Image.
Multimedia systems Lecture 5: Color in Image and Video.
Color Models Light property Color models.
School of Electronics & Information Engineering
IMAGE PROCESSING COLOR IMAGE PROCESSING
Histograms CSE 6363 – Machine Learning Vassilis Athitsos
Color Image Processing
Pengenalan Warna Teori Warna.
Chapter 6: Color Image Processing
Chapter II Color Theory.
Colour Theory Fundamentals
Gouraud Shading with Bilinear Interpolation
Color Representation Although we can differentiate a hundred different grey-levels, we can easily differentiate thousands of colors.
Common Classification Tasks
What Is Spectral Imaging? An Introduction
Introduction to Perception and Color
Computer Vision Lecture 16: Texture II
Geog 462: Digital Cartography: Graphic Variables
Digital Image Processing
Digital Image Processing
Slides taken from Scott Schaefer
Digital Image Fundamentals
Color Model By : Mustafa Salam.
Color Models l Ultraviolet Infrared 10 Microwave 10
Presentation transcript:

Computer Vision Lecture 4: Color Image Resampling Example: Downscaling from 5×5 to 3×3 pixels Centers of output pixels mapped onto input image February 8, 2018 Computer Vision Lecture 4: Color

Computer Vision Lecture 4: Color Image Resampling Nearest-neighbor method: For each output pixel, intensity is taken from the input pixel whose center is closest to the mapped output pixel’s center. 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 Centers of output pixels mapped onto input image February 8, 2018 Computer Vision Lecture 4: Color

Computer Vision Lecture 4: Color Image Resampling Bilinear interpolation method: Consider the four closest neighbors (2×2) of each mapped output pixel. Then use linear interpolation in horizontal and vertical direction to determine output pixel intensity. Bicubic interpolation method: Consider the 16 closest neighbors (4×4) of each mapped output pixel. Then use cubic interpolation (polynomials of degree 3) in horizontal and vertical direction to determine output pixel intensity. Many current image processing applications use bicubic interpolation. February 8, 2018 Computer Vision Lecture 4: Color

Computer Vision Lecture 4: Color 300 120 80 40 Nearest neighbor Bilinear interpolation Bicubic interpolation February 8, 2018 Computer Vision Lecture 4: Color

Computer Vision Lecture 4: Color February 8, 2018 Computer Vision Lecture 4: Color

Computer Vision Lecture 4: Color Our retina has three different types of color receptors. Their maximum responses occur for the colors red, green, and blue, respectively. Our color perception is entirely based on these three responses. Any two input spectra that create the same pattern of responses are perceived as identical colors. February 8, 2018 Computer Vision Lecture 4: Color

Computer Vision Lecture 4: Color How can we quantitatively describe a color? As computer programmers, we usually treat colors as RGB triples. The three components define the amount of red, green, and blue, respectively, whose combination results in the desired color on a computer screen. Typically, each channel uses discrete values from 0 to 255. The color space formed by all possible RGB values is also called the RGB cube. February 8, 2018 Computer Vision Lecture 4: Color

Computer Vision Lecture 4: Color The RGB color space is easy to use and represents color in the same way as the monitor requires it for its display. However, for computer vision applications such as the recognition of objects, other color spaces are more useful. We will discuss the HSI color model, standing for hue, saturation, and intensity. These dimensions characterize important object properties more naturally as compared to the RGB components. February 8, 2018 Computer Vision Lecture 4: Color

Computer Vision Lecture 4: Color Hue is determined by the dominant wavelength in the spectral distribution of light wavelengths. Saturation is the magnitude of the hue relative to other wavelengths. It is defined as the amount of light at the dominant wavelength divided by the amount of light at all wavelengths. Intensity is a measure of the overall amount of light within the visible spectrum. It is a scale factor that is applied across the entire spectrum. February 8, 2018 Computer Vision Lecture 4: Color

Computer Vision Lecture 4: Color Hue Saturation Brightness February 8, 2018 Computer Vision Lecture 4: Color

Computer Vision Lecture 4: Color Hue is (ideally) independent of the lighting conditions and the distance between object and observer. It is thus a reliable parameter for object recognition. Saturation decreases with the amount of particles between object and observer. We can use it to estimate our distance from a known object. Intensity is the only variable that changes when the lighting conditions vary. It can be used to infer shading and, in turn, three-dimensional structure. February 8, 2018 Computer Vision Lecture 4: Color

Computer Vision Lecture 4: Color RGB HSI February 8, 2018 Computer Vision Lecture 4: Color

Conversion from RGB to HSI It is not too difficult to convert RGB values into HSI values to facilitate color processing in computer vision applications. First of all, we normalize the range of the R, G, and B components to the interval from 0 to 1. For example, for 24-bit color information, this can be done by dividing each value by 255. Then we compute the intensity I as I = 1/3*(R + G + B). Obviously, intensity also ranges from 0 to 1. February 8, 2018 Computer Vision Lecture 4: Color

Conversion from RGB to HSI Then we compute the values r, g, b that are independent of intensity: r = R/(R + G + B) g = G/(R + G + B) b = B/(R + G + B) When we consider the RGB cube, then all possible triples (r, g, b) lie on a triangle with corners (1, 0, 0), (0, 1, 0), and (0, 0, 1). We could call this the rgb-subspace of our RGB cube. February 8, 2018 Computer Vision Lecture 4: Color

Conversion from RGB to HSI red (pr) green blue p - w p = (r, g, b) pr - w H w = (1/3, 1/3, 1/3) (white) The hue is the angle H from vector pr – w to vector p – w. The saturation is the distance from w to p relative to the distance from w to the fully saturated color of the same hue as p (on the edge of the triangle). February 8, 2018 Computer Vision Lecture 4: Color

Conversion from RGB to HSI Then we have: Since w = (1/3, 1/3, 1/3): And since pr = (1, 0, 0): February 8, 2018 Computer Vision Lecture 4: Color

Conversion from RGB to HSI We can also compute: With the above formulas, including those for deriving r, g, and b from R, G, and B, we can determine an equation for computing H directly from R, G, and B: February 8, 2018 Computer Vision Lecture 4: Color

Conversion from RGB to HSI Note that when we use the arccos function to compute H, arccos always gives you a value between 0 and 180 degrees. However, H can assume values between 0 and 360 degrees. If B > G, then H must be greater than 180 degrees. Therefore, if B > G, just compute H as before and then take (360 degrees – H) as the actual hue value. February 8, 2018 Computer Vision Lecture 4: Color

Conversion from RGB to HSI The saturation is the distance on the triangle in the rgb-subspace from white relative to the distance from white to the fully saturated color with the same hue. Fully saturated colors are on the edges of the triangle. The derivation of the formula for saturation S is very lengthy, so we will just take a look at the result: February 8, 2018 Computer Vision Lecture 4: Color

Computer Vision Lecture 4: Color February 8, 2018 Computer Vision Lecture 4: Color

Limitations of RGB and HSI Using three individual wavelengths to represent color can never cover the entire visible range of colors: February 8, 2018 Computer Vision Lecture 4: Color

Limitations of any Color Representation It is important to note (again) that our perception of an object’s color does not only depend on the frequency spectrum emitted from the object’s location. It also depends on the spectra of other objects or regions in the visual field. This mechanism called color constancy allows us to assign a color to a given object that is invariant to shading or illumination of the scene by varying light sources. February 8, 2018 Computer Vision Lecture 4: Color

Computer Vision Lecture 4: Color Color Constancy February 8, 2018 Computer Vision Lecture 4: Color