CSSE463: Image Recognition Day 2

Slides:



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

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:
Computer Vision Chapter 6 Color.
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.
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
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.
Color: Readings: Ch 6: color spaces color histograms color segmentation.
CS 376 Introduction to Computer Graphics 01 / 26 / 2007 Instructor: Michael Eckmann.
1 Color Processing Introduction Color models Color image processing.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Content-Based Image Retrieval
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.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Chapter 1. Introduction. Goals of Image Processing “One picture is worth more than a thousand words” 1.Improvement of pictorial information for human.
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.
Digitization Informatics INFO I101 January 26, 2004 John C.Paolillo.
CSSE463: Image Recognition Matt Boutell Myers240C x8534
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.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 4 – Visual Perception and Digital Image Representation Klara Nahrstedt Spring 2014.
Color Models Light property Color models.
CSSE463: Image Recognition Day 27
IMAGE PROCESSING COLOR IMAGE PROCESSING
Capturing Light… in man and machine
Sampling, Quantization, Color Models & Indexed Color
Color Image Processing
Color Image Processing
Color Image Processing
Miguel Tavares Coimbra
COLOR space Mohiuddin Ahmad.
Color 2017, Fall.
CSSE463: Image Recognition Day 11
Chapter 6: Color Image Processing
Color Image Processing
Color 2015, Fall.
CSSE463: Image Recognition
Color: Readings: Ch 6: color spaces color histograms
CSSE463: Image Recognition
Color: Readings: Ch 6: color spaces color histograms
Introduction to Perception and Color
CSSE463: Image Recognition Day 11
CSSE463: Image Recognition Day 3
Color Image Processing
Capturing Light… in man and machine
Slides taken from Scott Schaefer
Midterm Exam Closed book, notes, computer Format:
Color Image Processing
CSSE463: Image Recognition Day 25
Image Perception and Color Space
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
CSSE463: Image Recognition Day 3
Visuals are analog signals...
Midterm Exam Closed book, notes, computer Similar to test 1 in format:
CSSE463: Image Recognition Day 11
CSSE463: Image Recognition Day 11
Miguel Tavares Coimbra
Presentation transcript:

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

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

Basics of Color Images 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 32 bit? Source: Wikipedia

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

http://abstrusegoose.com/221

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

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

Color moments Central moments are statistics 1st order = mean 2nd order = variance 3rd order = ____ 4th order = ____ Some have used even higher order moments, but less intuitive For color images, take moments of each band skew kurtosis m1 = 116.3 m2 = 1152.9 m3 = -70078 m4 = 7.4 million m1 = 132.4 m2 = 2008.2 m3 = 4226 m4 =12.6 million Q6

RGB color space Red/green/blue Rectangular axes Simple, but non-intuitive Source: Wikipedia http://xstitch.zachrattner.com/Images/RGBCube.png http://dev.bowdenweb.com/css/colors/i/rgb-color-space-visualized-as-a-cube-msdn.png Q7

HSV color space 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 Must handle wraparound of hue angle correctly (0 = 2p) Matlab has method to convert from rgb to hsv, can find formula online. Wikipedia, http://www.getreuer.info/_/rsrc/1311740880043/home/colorspace/colorspace_01.jpg?height=209px&width=462px Q7

Interactive HSV color picker http://www.colorpicker.com/

Other color spaces LST (Ohta)1 Others L = luminance: L = (R + G + B)/sqrt(3) S and T are chroma bands. S: red vs. blue: S = (R – B) / sqrt(2) 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) Slightly less intuitive than HSV No problem with wraparound Others YIQ (TV signals), QUV, Lab, LUV http://www.scarse.org/docs/color_faq.html#graybw Y. I. Ohta, T. Kanade, and T. Sakai, Color information for region segmentation, Computer Graphics and Image Processing, Vol. 13, pp. 222-241, 1980. http://www.ri.cmu.edu/pub_files/pub4/ohta_y_1980_1/ohta_y_1980_1.pdf Q8

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

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