CSSE463: Image Recognition Day 2 Roll call Roll call Announcements: Announcements: Moodle has drop box for Lab 1 Moodle has drop box for Lab 1 Next class:

Slides:



Advertisements
Similar presentations
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 4 – Digital Image Representation Klara Nahrstedt Spring 2009.
Advertisements

Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
Computer Vision Chapter 6 Color.
Image Processing IB Paper 8 – Part A Ognjen Arandjelović Ognjen Arandjelović
Color spaces CIE - RGB space. HSV - space. CIE - XYZ space.
COLORCOLOR A SET OF CODES GENERATED BY THE BRAİN How do you quantify? How do you use?
Color Image Processing
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.
Informationsteknologi Monday, October 29, 2007Computer Graphics - Class 21 Today’s class Graphics programming Color.
CSSE463: Image Recognition Day 2 Roll call Roll call Announcements: Announcements: Reinstall Matlab if you are having problems: Lab 1 has directions. Reinstall.
CSSE463: Image Recognition Day 2 Roll call Roll call Announcements: Announcements: Room change: Olin 267 starting next class Room change: Olin 267 starting.
CSSE463: Image Recognition Matt Boutell F-224 x8534
Multi-media Graphics JOUR 205 Color Models & Color Space 5 ways of specifying colors.
Color.
Color: Readings: Ch 6: color spaces color histograms color segmentation.
Graphics File Formats. 2 Graphics Data n Vector data –Lines –Polygons –Curves n Bitmap data –Array of pixels –Numerical values corresponding to gray-
Image Representation.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Colour Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman
Digital Image Processing Colour Image Processing.
CS 376 Introduction to Computer Graphics 01 / 26 / 2007 Instructor: Michael Eckmann.
Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos VC 14/15 – TP3 Digital Images Miguel Tavares Coimbra.
1 Color Processing Introduction Color models Color image processing.
Machine Vision for Robots
Chapter 6: Color Image Processing Digital Image Processing.
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.
by Utku Tatlıdede Kemal Kaplan
07: Color in Interactive Digital Media
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Color 2011, Fall. Colorimetry : Definition (1/2) Colorimetry  Light is perceived in the visible band from 380 to 780 nm  distribution of wavelengths.
Color Theory ‣ What is color? ‣ How do we perceive it? ‣ How do we describe and match colors? ‣ Color spaces.
Chapter 1. Introduction. Goals of Image Processing “One picture is worth more than a thousand words” 1.Improvement of pictorial information for human.
CIS 601 Image Fundamentals Longin Jan Latecki Slides by Dr. Rolf Lakaemper.
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
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.
Introduction to Computer Graphics
Color Web Design Professor Frank. Color Displays Based on cathode ray tubes (CRTs) or back- lighted flat-screen Monitors transmit light - displays use.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 4 – Visual Perception and Digital Image Representation Klara Nahrstedt Spring 2012.
Digitization Informatics INFO I101 January 26, 2004 John C.Paolillo.
CSSE463: Image Recognition Matt Boutell Myers240C x8534
Intelligent Robotics Today: Vision & Time & Space Complexity.
CSSE463: Image Recognition Day 3 Announcements/reminders: Announcements/reminders: Lab 1 should have been turned in yesterday (due now if use a late day).
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 4 – Audio and Digital Image Representation Klara Nahrstedt Spring 2010.
CSSE463: Image Recognition Day 25 This week This week Today: Applications of PCA Today: Applications of PCA Sunday night: project plans and prelim work.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
Color Models Light property Color models.
CSSE463: Image Recognition Day 27
Sampling, Quantization, Color Models & Indexed Color
Color Image Processing
Color Image Processing
Miguel Tavares Coimbra
Color Image Processing
CSSE463: Image Recognition
Color: Readings: Ch 6: color spaces color histograms
CSSE463: Image Recognition
Color: Readings: Ch 6: color spaces color histograms
Color Image Processing
Capturing Light… in man and machine
Midterm Exam Closed book, notes, computer Format:
Color Image Processing
CSSE463: Image Recognition Day 25
Color Model By : Mustafa Salam.
Digital Image Processing
Midterm Exam Closed book, notes, computer Similar to test 1 in format:
CSSE463: Image Recognition Day 25
CSSE463: Image Recognition Day 2
Visuals are analog signals...
Midterm Exam Closed book, notes, computer Similar to test 1 in format:
CSSE463: Image Recognition Day 2
Miguel Tavares Coimbra
Presentation transcript:

CSSE463: Image Recognition Day 2 Roll call Roll call Announcements: Announcements: Moodle has drop box for Lab 1 Moodle has drop box for Lab 1 Next class: lots more Matlab how-to (bring your laptop) Next class: lots more Matlab how-to (bring your laptop) Last class we discussed: Last class we discussed: Today: Color and color features Today: Color and color features Do questions 1-2 about ICME sunset paper now Do questions 1-2 about ICME sunset paper now Questions? Questions? Q1-2

Pixels to Predicates 1. Extract features from images 2. Use machine learning to cluster and classify ColorTextureShapeEdgesMotion Principal components Neural networks Support vector machines Gaussian models

Basics of Color Images A color image is made of red, green, and blue bands. A color image is made of red, green, and blue bands. Additive color Colors formed by adding primaries to black Comments from graphics? RGB mimics retinal cones in eye. RGB used in sensors and displays Why “16M colors”? Why “16M colors”? Why 32 bit? Why 32 bit? Source: Wikipedia

Basics of Color Images Each band is a 2D matrix Each band is a 2D matrix Each R, G, or B value typically stored in a byte. Each R, G, or B value typically stored in a byte. Range of values? The 4 th byte is typically left empty The 4 th byte is typically left empty Allows for quicker indexing, because of alignment Reserved for transparency (in graphics) How much storage is required for a 4 megapixel color image (uncompressed)? How much storage is required for a 4 megapixel color image (uncompressed)? Q3-4

We can extract different types of color features (statistics) from images 1. Color histograms 1. Color histograms 2. Color moments 2. Color moments 3. Color coherence vectors 3. Color coherence vectors Related considerations: Some color spaces “work better” Some color spaces “work better” Spatial components can help Spatial components can help Q5

Color histograms Gives distribution of colors Gives distribution of colors Sample to left is for intensities only Sample to left is for intensities only Pros Pros Quantizes data, but still keeps lots of info Cons Cons How to compare two images? Spatial info gone Histogram intersection (Swain and Ballard)

Color moments m 1 = m 2 = m 3 = m 4 = 7.4 million Central moments are statistics Central moments are statistics 1 st order = mean 2 nd order = variance 3 rd order = ____ 4 th order = ____ Some have used even higher order moments, but less intuitive For color images, take moments of each band For color images, take moments of each band m 1 = m 2 = m 3 = 4226 m 4 =12.6 million Q6 skew kurtosis

RGB color space Red/green/blue Red/green/blue Rectangular axes Rectangular axes Simple, but non-intuitive Simple, but non-intuitive Source: Wikipedia Q7

HSV color space Hue-saturation-value (HSV) cone Hue-saturation-value (HSV) cone also called HSI (intensity) Intuitive H: more than “what color”: it’s wavelength; position on the spectrum! S: how vibrant? V: how light or dark “Distance” between colors “Distance” between colors Must handle wraparound of hue angle correctly (0 = 2  ) Matlab has method to convert from rgb to hsv, can find formula online. Matlab has method to convert from rgb to hsv, can find formula online. online Wikipedia, Q7

Interactive HSV color picker

Other color spaces LST (Ohta) 1 LST (Ohta) 1 L = luminance: L = (R + G + B)/sqrt(3) L = luminance: L = (R + G + B)/sqrt(3) S and T are chroma bands. S and T are chroma bands. S: red vs. blue: S = (R – B) / sqrt(2) S: red vs. blue: S = (R – B) / sqrt(2) T: green vs. magenta: T = (R – 2G + B) / sqrt(6) T: green vs. magenta: T = (R – 2G + B) / sqrt(6) These 3 are the principal components of the RGB space (PCA and eigenvectors later in course) These 3 are the principal components of the RGB space (PCA and eigenvectors later in course) Slightly less intuitive than HSV Slightly less intuitive than HSV No problem with wraparound No problem with wraparound Others Others YIQ (TV signals), QUV, Lab, LUV YIQ (TV signals), QUV, Lab, LUV Q8 Y. I. Ohta, T. Kanade, and T. Sakai, Color information for region segmentation, Computer Graphics and Image Processing, Vol. 13, pp ,

Spatial component of color Break image into parts and describe each one Break image into parts and describe each one Can describe each part with moments or histograms Regular grid Regular grid Pros? Cons? Image regions Image regions Pros? Cons? Q9

Additional reading Color gamuts Color gamuts Color coherence vectors Color coherence vectors Extension of color histograms within local neighborhoods Extension of color histograms within local neighborhoods Used in: Used in: A. Vailaya, H-J Zhang, and A. Jain. On image classification: City images vs. landscapes. Pattern Recognition 31: , Dec A. Vailaya, H-J Zhang, and A. Jain. On image classification: City images vs. landscapes. Pattern Recognition 31: , Dec Defined in: Defined in: G Pass, R Zabih, and J Miller. Comparing images using color coherence vectors. 4 th ACM Conf. Multimedia, pp 65-73, Boston, G Pass, R Zabih, and J Miller. Comparing images using color coherence vectors. 4 th ACM Conf. Multimedia, pp 65-73, Boston, Q10