Brent M. Dingle, Ph.D. 2015 Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Quick Review.

Slides:



Advertisements
Similar presentations
Detecting and Mixing Colors STEM DIGITAL Institute Rob Snyder.
Advertisements

Images Images are a key component of any multimedia presentation.
ECE 472/572 - Digital Image Processing Lecture 10 - Color Image Processing 10/25/11.
Color & Light, Digitalization, Storage. Vision Rods work at low light levels and do not see color –That is, their response depends only on how many photons,
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.
Digital Image Processing: Digital Imaging Fundamentals.
CS 4731: Computer Graphics Lecture 24: Color Science
Sep 21, Fall 2005ITCS4010/ Computer Graphics Overview Color Displays Drawing Pipeline.
Sep 21, Fall 2006IAT 4101 Computer Graphics Overview Color Displays Drawing Pipeline.
IAT 3551 Computer Graphics Overview Color Displays Drawing Pipeline.
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
S. Mandayam/ ECE Dept./Rowan University Freshman Clinic II Spring 2005 Shreekanth Mandayam ECE Department Rowan University Digital Imaging April 19, 2005.
Basic Color Theory Susan Farnand
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Digital Media Dr. Jim Rowan ITEC 2110 Color. COLOR Is a mess It’s a subjective sensation PRODUCED in the brain Color differs for light and paint/ink Printing.
ICS 61 - Graphics. Light Color Wheel Color Perception.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS Light and Color Graphics Systems / Computer.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout HTML5 – Canvas.
Color Principles for Computer Graphics Donald House 9/17/09 Artist’s slides by Lynette House.
ELE 488 Fall 2006 Image Processing and Transmission Syllabus 1. Human Visual System 2. Image Representations (gray level, color) 3. Simple Processing:
Color in image and video Mr.Nael Aburas. outline  Color Science  Color Models in Images  Color Models in Video.
Topic 5 - Imaging Mapping - II DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Images The Science of Images What is an Image on the computer? The Psychology of Images What do we use images for? What effect color has on our mood and.
Color. Contents Light and color The visible light spectrum Primary and secondary colors Color spaces –RGB, CMY, YIQ, HLS, CIE –CIE XYZ, CIE xyY and CIE.
Fundamentals of Multimedia Chapter 4 : Color in Image and Video 2 nd Edition 2014 Ze-Nian Li Mark S. Drew Jiangchuan Liu 1.
Color Theory ‣ What is color? ‣ How do we perceive it? ‣ How do we describe and match colors? ‣ Color spaces.
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Filtering.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
BPC: Art and Computation – Summer 2007 Digital Media - Images Glenn Bresnahan
CIS 601 Image Fundamentals Longin Jan Latecki Slides by Dr. Rolf Lakaemper.
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout HTML5 – Canvas.
COLORCOLOR Angel 1.4 and 2.4 J. Lindblad
Digital Image Processing NET 404) ) Introduction and Overview
CS6825: Color 2 Light and Color Light is electromagnetic radiation Light is electromagnetic radiation Visible light: nm. range Visible light:
University of Kurdistan Digital Image Processing (DIP) Lecturer: Kaveh Mollazade, Ph.D. Department of Biosystems Engineering, Faculty of Agriculture,
Digital Image Processing
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout HTML5 – Canvas.
COLOR.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Introduction to Computer Graphics
Color Principles for Computer Graphics Donald House 9/17/09 Artist’s slides by Lynette House.
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Edge Detection.
Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Edge Detection:
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout More on Colors.
Digital Image Processing
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Image Perception ‘Let there be light! ‘. “Let there be light”
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Image Processing.
CS-321 Dr. Mark L. Hornick 1 Color Perception. CS-321 Dr. Mark L. Hornick 2 Color Perception.
David Luebke 1 2/5/2016 Color CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
09/10/02(c) University of Wisconsin, CS559 Fall 2002 Last Time Digital Images –Spatial and Color resolution Color –The physics of color.
Our EYE How does our eye see color?. The retina contains two types of photoreceptors, rods and conesretina.
Image Perception ‘Let there be light! ‘. “Let there be light”
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Color Image.
Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Some Details.
Color Image Processing
Color Image Processing
Color Image Processing
Image Warping (Geometric Transforms)
Digital Image Processing
Color Image Processing
Digital Image Processing
Color Image Processing
HTML5 – Canvas JavaScript Simple Drawing
Presentation transcript:

Brent M. Dingle, Ph.D Game Design and Development Program Mathematics, Statistics and Computer Science University of Wisconsin - Stout Quick Review Summary Reference Summary List

Lecture Objectives Quick review of topics covered and direction headed

List Summary Previously – What a Digital Image is Acquisition Human Perception Representation – Color Spaces – HTML5 and JavaScript Code Examples Pixel manipulation Image Loading Filtering

What is a Digital Image? Acquisition Sources – Electromagnetic (EM) spectrums – Acoustic Imaging EX: Ultrasounds, Seismic Imaging… – Electron Microscopy Generation – Synthetic Images Computer Generated – Graphics, Games, Digital Art…

What is a Digital Image? Human Perception – Human Eye is limited Rods: million, all over the retina surface and sensitive to low levels of illumination Cones: 6-7 million in each eye, central part of retina (fovea) and highly sensitive to color

What is a Digital Image? Human Perception – Human Brain interprets and adjusts

What is a Digital Image? Representation – Is designed for humans Red, Green, Blue  hardware based acquisition

What is a Digital Image? Representation – Is designed for humans Red, Green, Blue  storage

What is a Digital Image? Representation – Is designed for humans Red, Green, Blue  display

List Summary Previously – What a Digital Image is Acquisition Human Perception Representation – Color Spaces – HTML5 and JavaScript Code Examples Pixel manipulation Image Loading Filtering

Color Spaces Our images are designed for the human eye and the human brain – How does that work?

Color Spaces We have seen Representation is Red, Green, Blue Digital Storage is 2D Array of Pixels – Each Pixel with R, G, B values So…

Color Spaces What’s the theory? – How is the representation defined? Tri-Stimulus Theory of Color

Color Spaces: Human Eye Study the Human Eye Rods: million, all over the retina surface and sensitive to low levels of illumination Cones: 6-7 million in each eye, central part of retina (fovea) and highly sensitive to color

CIE Color Matching Functions DESIGN a model – By design the y curve is just the luminous efficiency curve of the human eye luminous efficiency curve

Tri-Stimulus Theory of Color Make the model work – Easy to use with hardware and humans – Easy to transition to equivalent models Experiment results extend across models So digital image (color) representation, use, perception becomes measurable, comparable, consistent Additive Color Systems – RGB – HSV – CIE xyY Subtractive Color System – CMY » CMYK

List Summary Previously – What a Digital Image is Acquisition Human Perception Representation – Color Spaces – HTML5 and JavaScript Code Examples Pixel manipulation Image Loading Filtering

Math and Programming Established is a model that is capable of acquiring, storing, and displaying images – It is mathematical in nature and based on experimental results of human perception This provides a “world” to play in – Mathematical theory and algorithmic exploration is fun – Programming computers based on/using such theory and experimentation is needed to “see” results

Coding Examples HTML5 and Javascript support digital image manipulation – Pixel based access to images through arrays

Coding Examples Loading an Image – Operations exist to decompress and load images via javascript through the browsers // Setup the listeners this.dropArea = document.getElementById('theDropArea'); this.dropArea.addEventListener('dragover', this.onDragOver, false); this.dropArea.addEventListener('drop', this.onDropFileSelect, false); onDropFileSelect: function (evt) { // get array of filenames that were dragged var files = evt.dataTransfer.files; // If the "first" file is not an image, do nothing var curFile = files[0]; // Only process image file if ( curFile.type.match('image.*') ) { var img = new Image; img.onload = function() { var canvas = document.getElementById(theProgram.SOURCE_IMG_CANVAS_ID); var ctx = canvas.getContext('2d'); canvas.style.display = "block"; canvas.width = img.width; canvas.height = img.height; canvas.style.width = canvas.width + "px" ; canvas.style.height = canvas.height + "px"; // Can draw the image on the canvas ctx.drawImage(img, 0, 0); // And can store the image data into a data structure theProgram.srcData = ctx.getImageData(0, 0, img.width, img.height); } img.src = URL.createObjectURL(curFile);

Coding Examples Having stored the image in a data structure we can write code to apply mathematical operations to the image – e.g. convolution filtering // applyConvIdentity: function() { // below should do 'nothing'  applies a filter but changes nothing var destData = theFilter.convolute(theProgram.srcData, [ 0, 0, 0, 0, 1, 0, 0, 0, 0 ]); theProgram.displayOutput(destData, theProgram.srcData); }, for y = 0 to imageHeight for x = 0 to imageWidth sum = 0 for i = -1 to 1 for j = -1 to 1 sum = sum + k(j+1, i+1) * f(x – j, y – i) end for j end for i g(x, y) = sum end for x end for y k(j, i) indexes into the convolution filter i.e. k(j, i) is [[0,0,0],[0,1,0],[0,0,0]] f(x, y) index into the image i.e. f(x,y) is referring to theProgram.srcData theFilter.convolute(f[][], k[][])

List Summary Previously – What a Digital Image is Acquisition Human Perception Representation – Color Spaces – HTML5 and JavaScript Code Examples Pixel manipulation Image Loading Filtering Near Future – Image Manipulation Filtering Enhancement Convolutions

Questions? Beyond D2L – Examples and information can be found online at: Continue to more stuff as needed

Extra Reference Stuff Follows

Credits Much of the content derived/based on slides for use with the book: – Digital Image Processing, Gonzalez and Woods Some layout and presentation style derived/based on presentations by – Donald House, Texas A&M University, 1999 – Bernd Girod, Stanford University, 2007 – Shreekanth Mandayam, Rowan University, 2009 – Igor Aizenberg, TAMUT, 2013 – Xin Li, WVU, 2014 – George Wolberg, City College of New York, 2015 – Yao Wang and Zhu Liu, NYU-Poly, 2015 – Sinisa Todorovic, Oregon State, 2015