CSE1710. Big Picture. Reminder

Size: px
Start display at page:

Download "CSE1710. Big Picture. Reminder"

Transcription

1 CSE1710 Click to edit Master Week text 09, styles Lecture 17 Second level Third level Fourth level Fifth level Fall 2013! Thursday, Nov 6, Big Picture For the next three class meetings, we will be covering Chapter 5 of the textbook. We will be using images to demonstrate the concepts of iterative and selection. Reminder On Thurs Nov 20/Fri Nov 21, we will have out final labtest. 2 1

2 Images Take good notes there is relatively little material in the textbook; most of the material will be provided in lecture 3 To work with images, we need to: 1. work with the file system 2. work with the operating system s window manager and the platform s graphics hardware 3. understand colour models and image representation formats 4. understand the services of the RasterImage and the Pixel classes 5. iterate and construct conditions 4 4 2

3 A Code Segment, deconstructed VS 5 File pathnames are system dependent The file separator can be abstracted away as File.separator! Windows Local File System (LFS):! C:\USER\DOCS\LETTER.TXT!! Windows Uniform Naming Convention (UNC)! \\Server\Volume\File!! Unix-like OS! /home/user/docs/letter.txt! 6 6 3

4 The RasterImage class! provides services to create and to manipulate raster images 7 7 The RasterImage class a little more info! attributes are:! filename : String (might be null)! filenameextension : String (might be null)! title : String! width : int! height : int! a collection of pixels which are arranged in a rectangular grid! 8 8 4

5 A rectangular grid of pixels pixel a single point at a given coordinate that has specific colour attributes 9 9 A rectangular grid of pixels

6 A rectangular grid of pixels A rectangular grid of pixels

7 A rectangular grid of pixels when the grid becomes large enough and the pixels become small enough, the human eye ceases to see the individual pixels the exact threshold for this is complicated and depends on angular displacement of the eye within the visual field A rectangular grid of pixels pixel

8 The Rectangular Grid of Pixels! each element has a (x,y) coordinate! the convention is that (0,0) is in the upper left hand corner! the x part of coordinate indicates the column! the y part of the coordinate indicates the row! in the door and down the stairs The Rectangular Grid of Pixels! the RasterImage class provides services to! get all of the pixels from an instance of a RasterImage! get a specific pixel from an instance of a RasterImage

9 What is a Pixel? A Pixel object encapsulates several attributes: the raster image to which it belongs its x and y location within its parent picture its colour Of these three attributes only one attribute is mutable*: the pixel s colour. the pixel s (x,y) coordinate within its parent image cannot be changed; they are immutable! 17 *mutable means able to be changed! Services for a Pixel! once we have a pixel, what can we do with it?! we can query its state! we can modify its state! both of these things concern the representation of colour

10 Pixels: How to mutate Suppose the variable p is an object reference, and refers to a Pixel object. So the only attribute I can change in a Pixel object is its colour. here are some examples: p.setcolor( ); this must be a reference to a Color object! 1. use a predefined color! 2. construct one from scratch! 3. use a reference from somewhere else (e.g., another pixel)! 19 Pixels: How to mutate p.setcolor( ); this must be a reference to a Color object! look at the API for the Color class! 1. use a predefined color! 2. construct one from scratch! 3. use a reference from somewhere else (e.g., another pixel)! There are many pre-defined colors: Color.RED Color.MAGENTA Color.BLACK Color.black 20 10

11 Pixels: How to mutate p.setcolor( ); this must be a reference to a Color object! 1. use a predefined color! Here is a constructor: new Color(255, 0, 0) 2. construct one from scratch! 3. use a reference from somewhere else (e.g., another pixel)! 21 Pixels: How to mutate p.setcolor( ); this must be a reference to a Color object! 1. use a predefined color! 2. construct one from scratch! 3. use a reference from somewhere else (e.g., another pixel)! look at the API for the Pixel class to see the accessor method for an object s color attribute! r.getcolor() 22 11

12 A Crash Course in Colour Perception and Colour Models! Two Color Models: RGB and HSV! The RGB model is much more intuitive than HSV! We ll first explain RGB, then show the mapping into HSV space! First, we will discuss the basics of colour perception The Retina! the retina of the human eye is packed with photoreceptors! the photoreceptors receive light stimulus via the lens of the eye

13 The Retina! there are two types of photoreceptors in the retina!! rods : specialized for sensitivity! lower threshold, more sensitive than cones! provide sensing that something happened, but not specialized to colour! cones : specialized for colour and acuity! come in three types! short-wavelength! medium-wavelength! long-wavelength The Retina! the fovea is a specialty region of the retina, more or less in the centre of the retina! rods: none! cones: completely and tightly packed! specialized for acute detailed vision! towards the periphery of retina! rods: more! cones: fewer! the proportion of rods to cones increase toward edge of retina!

14 Hue Hue corresponds to what we typically refer to as colour. It is determined by the light s wavelength Blue perceived by short-wavelength cones Green perceived by medium-wavelength cones Red perceived by long-wavelength cones Colour is complicated! perception based on 2 types of receptors (hue and intensity)! our brain does more seeing than our eyes! what we call colour is more accurately described as hue and brightness

15 A Key Fact! the combination of red, blue and green together is indistinguishable from white to the human eye! this is exploited by computer displays Pixels and Subpixels! Many displays have a cluster of R, G, B sub-pixels for each pixel! max intensity for R, G, B = seen as white! min intensity for R, G, B = seen as black! and other saturated colours

16 RGB Colour Space white cyan green yellow magenta blue red black Color Red Green Blue Red Green Blue Yellow Cyan Magenta White Black

17 Other cases! if the RGB intensities are all the same! this gets perceived as shade of grey! if the RGB intensities are different! then perception depends on relative difference between strongest and weakest intensities! Bottom line: Given a colour out in the world, it can be very difficult to determine its corresponding RGB values Hue-Saturation-Value (HSV) Model! Each of hue, saturation, and brightness individually specified! similarities to the way humans perceive and describe colour! Given a colour out in the world, it is often easier to determine its corresponding HSV values than its RGB values

18 Small digression:! End of digression. back to regular programming Let s talk about two forms of iteration!! one form: built upon a boolean condition! another form: built around a collection!

19 The Collection Form of Iteration!! a collection is simply a bunch of elements, possibly in a particular order, but not necessarily! the elements must have a type (e.g., Pixel)! there are certain sub categories for collections! a set is a collection in which duplicates are not permitted! a list is a collection in which the elements are ordered! an array is a specific kind of list collection, set, list : abstractions, not specific to Java array : a Java programming element The Collection Form of Iteration!! for ( Type-of-Element e : Identifier-of-Collection ) { // here is the body of the loop } } This is called an enhanced for loop

20 The Collection Form of Iteration! It just so happens that a RasterImage object can function as a collection of Pixel elements for (Pixel p : myimage) { } // here is the body of the loop The Condition Form of Iteration! for (; boolean expression ;) { } // here is the body of the loop

21 The Condition Form of Iteration! for ( initial ; boolean expression ; bottom ) { } // here is the body of the loop Iterating over all of the pixels (v.2) The second version of this involves iterating over a set of indices and using an index-based accessor method to obtain a reference to each and every pixel! There are two ways to do this: by index in the array of pixels and by row and column index. First by index in the array of pixels 42 21

22 A Crash Course in Arrays Pixel[] thepixels = mypict.getpixelarray(); int firstpixelindex = 0; int lastpixelindex = thepixels.length-1; thepixels[60].getcolor(); this retrieves the 61 tst element in the array! thepixels[lastpixelindex].getcolor(); // the final //element thepixels[0].getcolor(); // the first element length is a special final attribute of arrays in Java! WHY minus 1?! 43 A Crash Course in Arrays Pixel[] thepixels = mypict.getpixelarray(); int firstpixelindex = 0; int lastpixelindex = thepixels.length-1; thepixels[lastpixelindex+1].getcolor(); // runtime error thepixels[-1].getcolor(); // runtime error 44 22

23 Iterating over all of the pixels (v.2) the array of pixels Pixel[] thepixels = mypict.getpixels(); // this sets the color of the first pixel thepixels[firstpixelindex].setcolor(color.red); // this sets the color of the second pixel thepixels[firstpixelindex+1].setcolor(color.red); // // this sets the color of the second-last pixel thepixels[lastpixelindex-1].setcolor(color.red); // this sets the color of the last pixel thepixels[lastpixelindex].setcolor(color.red); so how could we automate this? 45 Iterating over all of the pixels (v.2) Pixel[] thepixels = mypict.getpixels(); int firstpixelindex = 0; int lastpixelindex = thepixels.length-1; int currentindex = firstpixelindex; boolean iswithinbounds = currentindex <= lastpixelindex; for( ; iswithinbounds ; ) { Pixel currentpixel = thepixels[currentindex]; currentpixel.setcolor(color.red); mypict.repaint(); currentindex++ iswithinbounds = currentindex <= lastpixelindex; } 46 23

24 Iterating over all of the pixels (v.2) Pixel[] thepixels = mypict.getpixels(); int firstpixelindex = 0; int lastpixelindex = thepixels.length-1; int currentindex = firstpixelindex; for( ; currentindex <= lastpixelindex; ) { Pixel currentpixel = thepixels[currentindex]; currentpixel.setcolor(color.red); mypict.repaint(); currentindex++ } 47 Iterating over all of the pixels (v.2) Pixel[] thepixels = mypict.getpixels(); int firstpixelindex = 0; int lastpixelindex = thepixels.length-1; for(int currentindex = firstpixelindex; currentindex <= lastpixelindex; ) { Pixel currentpixel = thepixels[currentindex]; currentpixel.setcolor(color.red); mypict.repaint(); currentindex++ } 48 24

25 Iterating over all of the pixels (v.2) Pixel[] thepixels = mypict.getpixels(); int firstpixelindex = 0; int lastpixelindex = thepixels.length-1; for(int currentindex = firstpixelindex; currentindex <= lastpixelindex;currentindex++) { Pixel currentpixel = thepixels[currentindex]; currentpixel.setcolor(color.red); mypict.repaint(); } Flow of Control! I t e r a t i o n loop body S B 1 B 2 X 50 Copyright 25

26 5.2.2 The for statement! Flow: Syntax : false { } 51 Copyright S for X initial condition { body } bottom condition true Statement -S for (initial; condition; b ottom) { body; } Statement -X Algorithm: 1. Start the for scope 2. Execute initial 3. If condition is false go to 9 4. Start the body scope { 5. Execute the body 6. End the body scope } 7. Execute bottom 8. If condition is true go to 4 9. End the for scope Example! final int MAX = 10; final double SQUARE_ROOT = 0.5; for (int i = 0; i < MAX; i = i + 1) { double sqrt = Math.pow(i, SQUARE_ROOT); output.print(i); output.print(\t); // tab output.println(sqrt); } 52 Copyright 26

27 for (initial; condition; bottom)! for (int i = 0; i < MAX; i = i + 1) {... } int i; for (; i < MAX; i = i + 1) {... } 53 Copyright for (initial; condition; bottom)! Can it be omitted?! Can it be set to the literal true?! What if it were false at the beginning?! Is it monitored throughout the body?! 54 Copyright 27

28 for (initial; condition; bottom)! Can it be any statement?! Will the loop be infinite if it is omitted?! 55 28

CSE1710. Big Picture. Reminder

CSE1710. Big Picture. Reminder CSE1710 Click to edit Master Week text 10, styles Lecture 19 Second level Third level Fourth level Fifth level Fall 2013 Thursday, Nov 14, 2013 1 Big Picture For the next three class meetings, we will

More information

Brief Introduction to Vision and Images

Brief Introduction to Vision and Images Brief Introduction to Vision and Images Charles S. Tritt, Ph.D. January 24, 2012 Version 1.1 Structure of the Retina There is only one kind of rod. Rods are very sensitive and used mainly in dim light.

More information

Digital Image Processing. Lecture # 8 Color Processing

Digital Image Processing. Lecture # 8 Color Processing Digital Image Processing Lecture # 8 Color Processing 1 COLOR IMAGE PROCESSING COLOR IMAGE PROCESSING Color Importance Color is an excellent descriptor Suitable for object Identification and Extraction

More information

Color & Graphics. Color & Vision. The complete display system is: We'll talk about: Model Frame Buffer Screen Eye Brain

Color & Graphics. Color & Vision. The complete display system is: We'll talk about: Model Frame Buffer Screen Eye Brain Color & Graphics The complete display system is: Model Frame Buffer Screen Eye Brain Color & Vision We'll talk about: Light Visions Psychophysics, Colorimetry Color Perceptually based models Hardware models

More information

Digital Image Processing. Lecture # 6 Corner Detection & Color Processing

Digital Image Processing. Lecture # 6 Corner Detection & Color Processing Digital Image Processing Lecture # 6 Corner Detection & Color Processing 1 Corners Corners (interest points) Unlike edges, corners (patches of pixels surrounding the corner) do not necessarily correspond

More information

Multimedia Systems Color Space Mahdi Amiri March 2012 Sharif University of Technology

Multimedia Systems Color Space Mahdi Amiri March 2012 Sharif University of Technology Course Presentation Multimedia Systems Color Space Mahdi Amiri March 2012 Sharif University of Technology Physics of Color Light Light or visible light is the portion of electromagnetic radiation that

More information

Images and Colour COSC342. Lecture 2 2 March 2015

Images and Colour COSC342. Lecture 2 2 March 2015 Images and Colour COSC342 Lecture 2 2 March 2015 In this Lecture Images and image formats Digital images in the computer Image compression and formats Colour representation Colour perception Colour spaces

More information

Mahdi Amiri. March Sharif University of Technology

Mahdi Amiri. March Sharif University of Technology Course Presentation Multimedia Systems Color Space Mahdi Amiri March 2014 Sharif University of Technology The wavelength λ of a sinusoidal waveform traveling at constant speed ν is given by Physics of

More information

Interactive Computer Graphics

Interactive Computer Graphics Interactive Computer Graphics Lecture 4: Colour Graphics Lecture 4: Slide 1 Ways of looking at colour 1. Physics 2. Human visual receptors 3. Subjective assessment Graphics Lecture 4: Slide 2 The physics

More information

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET Some color images on this slide Last Lecture 2D filtering frequency domain The magnitude of the 2D DFT gives the amplitudes of the sinusoids and

More information

Image and video processing (EBU723U) Colour Images. Dr. Yi-Zhe Song

Image and video processing (EBU723U) Colour Images. Dr. Yi-Zhe Song Image and video processing () Colour Images Dr. Yi-Zhe Song yizhe.song@qmul.ac.uk Today s agenda Colour spaces Colour images PGM/PPM images Today s agenda Colour spaces Colour images PGM/PPM images History

More information

Visual Perception. human perception display devices. CS Visual Perception

Visual Perception. human perception display devices. CS Visual Perception Visual Perception human perception display devices 1 Reference Chapters 4, 5 Designing with the Mind in Mind by Jeff Johnson 2 Visual Perception Most user interfaces are visual in nature. So, it is important

More information

Visual Perception. Jeff Avery

Visual Perception. Jeff Avery Visual Perception Jeff Avery Source Chapter 4,5 Designing with Mind in Mind by Jeff Johnson Visual Perception Most user interfaces are visual in nature. So, it is important that we understand the inherent

More information

Color Image Processing

Color Image Processing Color Image Processing Selim Aksoy Department of Computer Engineering Bilkent University saksoy@cs.bilkent.edu.tr Color Used heavily in human vision. Visible spectrum for humans is 400 nm (blue) to 700

More information

Image Perception & 2D Images

Image Perception & 2D Images Image Perception & 2D Images Vision is a matter of perception. Perception is a matter of vision. ES Overview Introduction to ES 2D Graphics in Entertainment Systems Sound, Speech & Music 3D Graphics in

More information

Bettina Selig. Centre for Image Analysis. Swedish University of Agricultural Sciences Uppsala University

Bettina Selig. Centre for Image Analysis. Swedish University of Agricultural Sciences Uppsala University 2011-10-26 Bettina Selig Centre for Image Analysis Swedish University of Agricultural Sciences Uppsala University 2 Electromagnetic Radiation Illumination - Reflection - Detection The Human Eye Digital

More information

Capturing Light in man and machine

Capturing Light in man and machine Capturing Light in man and machine CS194: Image Manipulation & Computational Photography Alexei Efros, UC Berkeley, Fall 2016 Textbook http://szeliski.org/book/ General Comments Prerequisites Linear algebra!!!

More information

Figure 1: Energy Distributions for light

Figure 1: Energy Distributions for light Lecture 4: Colour The physical description of colour Colour vision is a very complicated biological and psychological phenomenon. It can be described in many different ways, including by physics, by subjective

More information

Introduction & Colour

Introduction & Colour Introduction & Colour Eric C. McCreath School of Computer Science The Australian National University ACT 0200 Australia ericm@cs.anu.edu.au Overview 2 Computer Graphics Uses (Chapter 1) Basic Hardware

More information

Human Vision, Color and Basic Image Processing

Human Vision, Color and Basic Image Processing Human Vision, Color and Basic Image Processing Connelly Barnes CS4810 University of Virginia Acknowledgement: slides by Jason Lawrence, Misha Kazhdan, Allison Klein, Tom Funkhouser, Adam Finkelstein and

More information

Capturing Light in man and machine

Capturing Light in man and machine Capturing Light in man and machine CS194: Image Manipulation & Computational Photography Alexei Efros, UC Berkeley, Fall 2014 Etymology PHOTOGRAPHY light drawing / writing Image Formation Digital Camera

More information

Capturing Light in man and machine

Capturing Light in man and machine Capturing Light in man and machine CS194: Image Manipulation & Computational Photography Alexei Efros, UC Berkeley, Fall 2015 Etymology PHOTOGRAPHY light drawing / writing Image Formation Digital Camera

More information

Computer Graphics: Graphics Output Primitives Primitives Attributes

Computer Graphics: Graphics Output Primitives Primitives Attributes Computer Graphics: Graphics Output Primitives Primitives Attributes By: A. H. Abdul Hafez Abdul.hafez@hku.edu.tr, 1 Outlines 1. OpenGL state variables 2. RGB color components 1. direct color storage 2.

More information

Colors in Images & Video

Colors in Images & Video LECTURE 8 Colors in Images & Video CS 5513 Multimedia Systems Spring 2009 Imran Ihsan Principal Design Consultant OPUSVII www.opuseven.com Faculty of Engineering & Applied Sciences 1. Light and Spectra

More information

IMAGE PROCESSING >COLOR SPACES UTRECHT UNIVERSITY RONALD POPPE

IMAGE PROCESSING >COLOR SPACES UTRECHT UNIVERSITY RONALD POPPE IMAGE PROCESSING >COLOR SPACES UTRECHT UNIVERSITY RONALD POPPE OUTLINE Human visual system Color images Color quantization Colorimetric color spaces HUMAN VISUAL SYSTEM HUMAN VISUAL SYSTEM HUMAN VISUAL

More information

LECTURE 07 COLORS IN IMAGES & VIDEO

LECTURE 07 COLORS IN IMAGES & VIDEO MULTIMEDIA TECHNOLOGIES LECTURE 07 COLORS IN IMAGES & VIDEO IMRAN IHSAN ASSISTANT PROFESSOR LIGHT AND SPECTRA Visible light is an electromagnetic wave in the 400nm 700 nm range. The eye is basically similar

More information

Prof. Feng Liu. Winter /09/2017

Prof. Feng Liu. Winter /09/2017 Prof. Feng Liu Winter 2017 http://www.cs.pdx.edu/~fliu/courses/cs410/ 01/09/2017 Today Course overview Computer vision Admin. Info Visual Computing at PSU Image representation Color 2 Big Picture: Visual

More information

Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester

Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester Lecture 8: Color Image Processing 04.11.2017 Dr. Mohammed Abdel-Megeed Salem Media

More information

Sampling and Reconstruction. Today: Color Theory. Color Theory COMP575

Sampling and Reconstruction. Today: Color Theory. Color Theory COMP575 and COMP575 Today: Finish up Color Color Theory CIE XYZ color space 3 color matching functions: X, Y, Z Y is luminance X and Z are color values WP user acdx Color Theory xyy color space Since Y is luminance,

More information

4/9/2015. Simple Graphics and Image Processing. Simple Graphics. Overview of Turtle Graphics (continued) Overview of Turtle Graphics

4/9/2015. Simple Graphics and Image Processing. Simple Graphics. Overview of Turtle Graphics (continued) Overview of Turtle Graphics Simple Graphics and Image Processing The Plan For Today Website Updates Intro to Python Quiz Corrections Missing Assignments Graphics and Images Simple Graphics Turtle Graphics Image Processing Assignment

More information

Oversubscription. Sorry, not fixed yet. We ll let you know as soon as we can.

Oversubscription. Sorry, not fixed yet. We ll let you know as soon as we can. Bela Borsodi Bela Borsodi Oversubscription Sorry, not fixed yet. We ll let you know as soon as we can. CS 143 James Hays Continuing his course many materials, courseworks, based from him + previous staff

More information

Colour. Cunliffe & Elliott, Chapter 8 Chapman & Chapman, Digital Multimedia, Chapter 5. Autumn 2016 University of Stirling

Colour. Cunliffe & Elliott, Chapter 8 Chapman & Chapman, Digital Multimedia, Chapter 5. Autumn 2016 University of Stirling CSCU9N5: Multimedia and HCI 1 Colour What is colour? Human-centric view of colour Computer-centric view of colour Colour models Monitor production of colour Accurate colour reproduction Cunliffe & Elliott,

More information

Graphics and Image Processing Basics

Graphics and Image Processing Basics EST 323 / CSE 524: CG-HCI Graphics and Image Processing Basics Klaus Mueller Computer Science Department Stony Brook University Julian Beever Optical Illusion: Sidewalk Art Julian Beever Optical Illusion:

More information

Colour. Why/How do we perceive colours? Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!

Colour. Why/How do we perceive colours? Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow! Colour What is colour? Human-centric view of colour Computer-centric view of colour Colour models Monitor production of colour Accurate colour reproduction Colour Lecture (2 lectures)! Richardson, Chapter

More information

The human visual system

The human visual system The human visual system Vision and hearing are the two most important means by which humans perceive the outside world. 1 Low-level vision Light is the electromagnetic radiation that stimulates our visual

More information

Colour. Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!) Colour Lecture!

Colour. Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!) Colour Lecture! Colour Lecture! ITNP80: Multimedia 1 Colour What is colour? Human-centric view of colour Computer-centric view of colour Colour models Monitor production of colour Accurate colour reproduction Richardson,

More information

DESIGN & DEVELOPMENT OF COLOR MATCHING ALGORITHM FOR IMAGE RETRIEVAL USING HISTOGRAM AND SEGMENTATION TECHNIQUES

DESIGN & DEVELOPMENT OF COLOR MATCHING ALGORITHM FOR IMAGE RETRIEVAL USING HISTOGRAM AND SEGMENTATION TECHNIQUES International Journal of Information Technology and Knowledge Management July-December 2011, Volume 4, No. 2, pp. 585-589 DESIGN & DEVELOPMENT OF COLOR MATCHING ALGORITHM FOR IMAGE RETRIEVAL USING HISTOGRAM

More information

IMAGES AND COLOR. N. C. State University. CSC557 Multimedia Computing and Networking. Fall Lecture # 10

IMAGES AND COLOR. N. C. State University. CSC557 Multimedia Computing and Networking. Fall Lecture # 10 IMAGES AND COLOR N. C. State University CSC557 Multimedia Computing and Networking Fall 2001 Lecture # 10 IMAGES AND COLOR N. C. State University CSC557 Multimedia Computing and Networking Fall 2001 Lecture

More information

CS 565 Computer Vision. Nazar Khan PUCIT Lecture 4: Colour

CS 565 Computer Vision. Nazar Khan PUCIT Lecture 4: Colour CS 565 Computer Vision Nazar Khan PUCIT Lecture 4: Colour Topics to be covered Motivation for Studying Colour Physical Background Biological Background Technical Colour Spaces Motivation Colour science

More information

Colors in images. Color spaces, perception, mixing, printing, manipulating...

Colors in images. Color spaces, perception, mixing, printing, manipulating... Colors in images Color spaces, perception, mixing, printing, manipulating... Tomáš Svoboda Czech Technical University, Faculty of Electrical Engineering Center for Machine Perception, Prague, Czech Republic

More information

Review of concepts. What is a variable? Storage space to keep data used in our programs Variables have a name And also a type Example:

Review of concepts. What is a variable? Storage space to keep data used in our programs Variables have a name And also a type Example: Chapter 3 For Loops Review of concepts What is a variable? Storage space to keep data used in our programs Variables have a name And also a type Example: Age = 19 CourseTitle = CS140 In this course we

More information

Color Image Processing

Color Image Processing Color Image Processing Jesus J. Caban Outline Discuss Assignment #1 Project Proposal Color Perception & Analysis 1 Discuss Assignment #1 Project Proposal Due next Monday, Oct 4th Project proposal Submit

More information

Exercise NMCGJ: Image Processing

Exercise NMCGJ: Image Processing Exercise NMCGJ: Image Processing A digital picture (or image) is internally stored as an array or a matrix of pixels (= picture elements), each of them containing a specific color. This exercise is devoted

More information

Unit 8: Color Image Processing

Unit 8: Color Image Processing Unit 8: Color Image Processing Colour Fundamentals In 666 Sir Isaac Newton discovered that when a beam of sunlight passes through a glass prism, the emerging beam is split into a spectrum of colours The

More information

Waitlist. We ll let you know as soon as we can. Biggest issue is TAs

Waitlist. We ll let you know as soon as we can. Biggest issue is TAs Bela Borsodi Bela Borsodi Waitlist We ll let you know as soon as we can. Biggest issue is TAs CS 143 James Hays Many materials, courseworks, based from him + previous TA staff serious thanks! Textbook

More information

Image Processing. Michael Kazhdan ( /657) HB Ch FvDFH Ch. 13.1

Image Processing. Michael Kazhdan ( /657) HB Ch FvDFH Ch. 13.1 Image Processing Michael Kazhdan (600.457/657) HB Ch. 14.4 FvDFH Ch. 13.1 Outline Human Vision Image Representation Reducing Color Quantization Artifacts Basic Image Processing Human Vision Model of Human

More information

Chapter 3 Part 2 Color image processing

Chapter 3 Part 2 Color image processing Chapter 3 Part 2 Color image processing Motivation Color fundamentals Color models Pseudocolor image processing Full-color image processing: Component-wise Vector-based Recent and current work Spring 2002

More information

For a long time I limited myself to one color as a form of discipline. Pablo Picasso. Color Image Processing

For a long time I limited myself to one color as a form of discipline. Pablo Picasso. Color Image Processing For a long time I limited myself to one color as a form of discipline. Pablo Picasso Color Image Processing 1 Preview Motive - Color is a powerful descriptor that often simplifies object identification

More information

Digital Image Processing Color Models &Processing

Digital Image Processing Color Models &Processing Digital Image Processing Color Models &Processing Dr. Hatem Elaydi Electrical Engineering Department Islamic University of Gaza Fall 2015 Nov 16, 2015 Color interpretation Color spectrum vs. electromagnetic

More information

2. Color spaces Introduction The RGB color space

2. Color spaces Introduction The RGB color space Image Processing - Lab 2: Color spaces 1 2. Color spaces 2.1. Introduction The purpose of the second laboratory work is to teach the basic color manipulation techniques, applied to the bitmap digital images.

More information

Lecture 8. Color Image Processing

Lecture 8. Color Image Processing Lecture 8. Color Image Processing EL512 Image Processing Dr. Zhu Liu zliu@research.att.com Note: Part of the materials in the slides are from Gonzalez s Digital Image Processing and Onur s lecture slides

More information

COLOR and the human response to light

COLOR and the human response to light COLOR and the human response to light Contents Introduction: The nature of light The physiology of human vision Color Spaces: Linear Artistic View Standard Distances between colors Color in the TV 2 How

More information

DIGITAL IMAGE PROCESSING (COM-3371) Week 2 - January 14, 2002

DIGITAL IMAGE PROCESSING (COM-3371) Week 2 - January 14, 2002 DIGITAL IMAGE PROCESSING (COM-3371) Week 2 - January 14, 22 Topics: Human eye Visual phenomena Simple image model Image enhancement Point processes Histogram Lookup tables Contrast compression and stretching

More information

III: Vision. Objectives:

III: Vision. Objectives: III: Vision Objectives: Describe the characteristics of visible light, and explain the process by which the eye transforms light energy into neural. Describe how the eye and the brain process visual information.

More information

Digital Image Processing (DIP)

Digital Image Processing (DIP) University of Kurdistan Digital Image Processing (DIP) Lecture 6: Color Image Processing Instructor: Kaveh Mollazade, Ph.D. Department of Biosystems Engineering, Faculty of Agriculture, University of Kurdistan,

More information

Additive Color Synthesis

Additive Color Synthesis Color Systems Defining Colors for Digital Image Processing Various models exist that attempt to describe color numerically. An ideal model should be able to record all theoretically visible colors in the

More information

Computer Graphics. Si Lu. Fall er_graphics.htm 10/02/2015

Computer Graphics. Si Lu. Fall er_graphics.htm 10/02/2015 Computer Graphics Si Lu Fall 2017 http://www.cs.pdx.edu/~lusi/cs447/cs447_547_comput er_graphics.htm 10/02/2015 1 Announcements Free Textbook: Linear Algebra By Jim Hefferon http://joshua.smcvt.edu/linalg.html/

More information

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University Achim J. Lilienthal Mobile Robotics and Olfaction Lab, Room T1227, Mo, 11-12 o'clock AASS, Örebro University (please drop me an email in advance) achim.lilienthal@oru.se 1 2. General Introduction Schedule

More information

Computers and Imaging

Computers and Imaging Computers and Imaging Telecommunications 1 P. Mathys Two Different Methods Vector or object-oriented graphics. Images are generated by mathematical descriptions of line (vector) segments. Bitmap or raster

More information

Color images C1 C2 C3

Color images C1 C2 C3 Color imaging Color images C1 C2 C3 Each colored pixel corresponds to a vector of three values {C1,C2,C3} The characteristics of the components depend on the chosen colorspace (RGB, YUV, CIELab,..) Digital

More information

CS 544 Human Abilities

CS 544 Human Abilities CS 544 Human Abilities Color Perception and Guidelines for Design Preattentive Processing Acknowledgement: Some of the material in these lectures is based on material prepared for similar courses by Saul

More information

Digital Image Processing

Digital Image Processing Digital Image Processing IMAGE PERCEPTION & ILLUSION Hamid R. Rabiee Fall 2015 Outline 2 What is color? Image perception Color matching Color gamut Color balancing Illusions What is Color? 3 Visual perceptual

More information

USE OF COLOR IN REMOTE SENSING

USE OF COLOR IN REMOTE SENSING 1 USE OF COLOR IN REMOTE SENSING (David Sandwell, Copyright, 2004) Display of large data sets - Most remote sensing systems create arrays of numbers representing an area on the surface of the Earth. The

More information

Image Representation using RGB Color Space

Image Representation using RGB Color Space ISSN 2278 0211 (Online) Image Representation using RGB Color Space Bernard Alala Department of Computing, Jomo Kenyatta University of Agriculture and Technology, Kenya Waweru Mwangi Department of Computing,

More information

Color Perception and Applications. Penny Rheingans University of Maryland Baltimore County. Overview

Color Perception and Applications. Penny Rheingans University of Maryland Baltimore County. Overview Color Perception and Applications SIGGRAPH 99 Course: Fundamental Issues of Visual Perception for Effective Image Generation Penny Rheingans University of Maryland Baltimore County Overview Characteristics

More information

Technology and digital images

Technology and digital images Technology and digital images Objectives Describe how the characteristics and behaviors of white light allow us to see colored objects. Describe the connection between physics and technology. Describe

More information

TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES

TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B. Ericson, and instructor materials

More information

Astronomy and Image Processing. Many thanks to Professor Kate Whitaker in the physics department for her help

Astronomy and Image Processing. Many thanks to Professor Kate Whitaker in the physics department for her help Astronomy and Image Processing Many thanks to Professor Kate Whitaker in the physics department for her help What is an image? An image is an array, or a matrix, of square pixels (picture elements) arranged

More information

Lecture 3: Grey and Color Image Processing

Lecture 3: Grey and Color Image Processing I22: Digital Image processing Lecture 3: Grey and Color Image Processing Prof. YingLi Tian Sept. 13, 217 Department of Electrical Engineering The City College of New York The City University of New York

More information

Segmentation using Saturation Thresholding and its Application in Content-Based Retrieval of Images

Segmentation using Saturation Thresholding and its Application in Content-Based Retrieval of Images Segmentation using Saturation Thresholding and its Application in Content-Based Retrieval of Images A. Vadivel 1, M. Mohan 1, Shamik Sural 2 and A.K.Majumdar 1 1 Department of Computer Science and Engineering,

More information

Human Visual System. Digital Image Processing. Digital Image Fundamentals. Structure Of The Human Eye. Blind-Spot Experiment.

Human Visual System. Digital Image Processing. Digital Image Fundamentals. Structure Of The Human Eye. Blind-Spot Experiment. Digital Image Processing Digital Imaging Fundamentals Christophoros Nikou cnikou@cs.uoi.gr 4 Human Visual System The best vision model we have! Knowledge of how images form in the eye can help us with

More information

Digital Image Processing

Digital Image Processing Digital Image Processing Digital Imaging Fundamentals Christophoros Nikou cnikou@cs.uoi.gr Images taken from: R. Gonzalez and R. Woods. Digital Image Processing, Prentice Hall, 2008. Digital Image Processing

More information

Color and perception Christian Miller CS Fall 2011

Color and perception Christian Miller CS Fall 2011 Color and perception Christian Miller CS 354 - Fall 2011 A slight detour We ve spent the whole class talking about how to put images on the screen What happens when we look at those images? Are there any

More information

Wireless Communication

Wireless Communication Wireless Communication Systems @CS.NCTU Lecture 4: Color Instructor: Kate Ching-Ju Lin ( 林靖茹 ) Chap. 4 of Fundamentals of Multimedia Some reference from http://media.ee.ntu.edu.tw/courses/dvt/15f/ 1 Outline

More information

Colour (1) Graphics 2

Colour (1) Graphics 2 Colour (1) raphics 2 06-02408 Level 3 10 credits in Semester 2 Professor Aleš Leonardis Slides by Professor Ela Claridge Colours and their origin - spectral characteristics - human visual perception Colour

More information

Visual Perception. Overview. The Eye. Information Processing by Human Observer

Visual Perception. Overview. The Eye. Information Processing by Human Observer Visual Perception Spring 06 Instructor: K. J. Ray Liu ECE Department, Univ. of Maryland, College Park Overview Last Class Introduction to DIP/DVP applications and examples Image as a function Concepts

More information

Today. Color. Color and light. Color and light. Electromagnetic spectrum 2/7/2011. CS376 Lecture 6: Color 1. What is color?

Today. Color. Color and light. Color and light. Electromagnetic spectrum 2/7/2011. CS376 Lecture 6: Color 1. What is color? Color Monday, Feb 7 Prof. UT-Austin Today Measuring color Spectral power distributions Color mixing Color matching experiments Color spaces Uniform color spaces Perception of color Human photoreceptors

More information

Retina. last updated: 23 rd Jan, c Michael Langer

Retina. last updated: 23 rd Jan, c Michael Langer Retina We didn t quite finish up the discussion of photoreceptors last lecture, so let s do that now. Let s consider why we see better in the direction in which we are looking than we do in the periphery.

More information

Introduction. The Spectral Basis for Color

Introduction. The Spectral Basis for Color Introduction Color is an extremely important part of most visualizations. Choosing good colors for your visualizations involves understanding their properties and the perceptual characteristics of human

More information

University of British Columbia CPSC 414 Computer Graphics

University of British Columbia CPSC 414 Computer Graphics University of British Columbia CPSC 414 Computer Graphics Color 2 Week 10, Fri 7 Nov 2003 Tamara Munzner 1 Readings Chapter 1.4: color plus supplemental reading: A Survey of Color for Computer Graphics,

More information

COLOR. and the human response to light

COLOR. and the human response to light COLOR and the human response to light Contents Introduction: The nature of light The physiology of human vision Color Spaces: Linear Artistic View Standard Distances between colors Color in the TV 2 Amazing

More information

Announcements. Color. Last time. Today: Color. Color and light. Review questions

Announcements. Color. Last time. Today: Color. Color and light. Review questions Announcements Color Thursday, Sept 4 Class website reminder http://www.cs.utexas.edu/~grauman/cours es/fall2008/main.htm Pset 1 out today Last time Image formation: Projection equations Homogeneous coordinates

More information

Color Image Processing. Gonzales & Woods: Chapter 6

Color Image Processing. Gonzales & Woods: Chapter 6 Color Image Processing Gonzales & Woods: Chapter 6 Objectives What are the most important concepts and terms related to color perception? What are the main color models used to represent and quantify color?

More information

Images. CS 4620 Lecture Kavita Bala w/ prior instructor Steve Marschner. Cornell CS4620 Fall 2015 Lecture 38

Images. CS 4620 Lecture Kavita Bala w/ prior instructor Steve Marschner. Cornell CS4620 Fall 2015 Lecture 38 Images CS 4620 Lecture 38 w/ prior instructor Steve Marschner 1 Announcements A7 extended by 24 hours w/ prior instructor Steve Marschner 2 Color displays Operating principle: humans are trichromatic match

More information

Capturing Light in man and machine

Capturing Light in man and machine Capturing Light in man and machine 15-463: Computational Photography Alexei Efros, CMU, Fall 2010 Etymology PHOTOGRAPHY light drawing / writing Image Formation Digital Camera Film The Eye Sensor Array

More information

Introduction to computer vision. Image Color Conversion. CIE Chromaticity Diagram and Color Gamut. Color Models

Introduction to computer vision. Image Color Conversion. CIE Chromaticity Diagram and Color Gamut. Color Models Introduction to computer vision In general, computer vision covers very wide area of issues concerning understanding of images by computers. It may be considered as a part of artificial intelligence and

More information

Vision. The eye. Image formation. Eye defects & corrective lenses. Visual acuity. Colour vision. Lecture 3.5

Vision. The eye. Image formation. Eye defects & corrective lenses. Visual acuity. Colour vision. Lecture 3.5 Lecture 3.5 Vision The eye Image formation Eye defects & corrective lenses Visual acuity Colour vision Vision http://www.wired.com/wiredscience/2009/04/schizoillusion/ Perception of light--- eye-brain

More information

Retina. Convergence. Early visual processing: retina & LGN. Visual Photoreptors: rods and cones. Visual Photoreptors: rods and cones.

Retina. Convergence. Early visual processing: retina & LGN. Visual Photoreptors: rods and cones. Visual Photoreptors: rods and cones. Announcements 1 st exam (next Thursday): Multiple choice (about 22), short answer and short essay don t list everything you know for the essay questions Book vs. lectures know bold terms for things that

More information

SCD-0017 Firegrab Documentation

SCD-0017 Firegrab Documentation SCD-0017 Firegrab Documentation Release XI Tordivel AS January 04, 2017 Contents 1 User Guide 3 2 Fire-I Camera Properties 9 3 Raw Color Mode 13 4 Examples 15 5 Release notes 17 i ii SCD-0017 Firegrab

More information

Capturing Light in man and machine

Capturing Light in man and machine Capturing Light in man and machine 15-463: Computational Photography Alexei Efros, CMU, Fall 2008 Image Formation Digital Camera Film The Eye Digital camera A digital camera replaces film with a sensor

More information

Prof. Feng Liu. Fall /02/2018

Prof. Feng Liu. Fall /02/2018 Prof. Feng Liu Fall 2018 http://www.cs.pdx.edu/~fliu/courses/cs447/ 10/02/2018 1 Announcements Free Textbook: Linear Algebra By Jim Hefferon http://joshua.smcvt.edu/linalg.html/ Homework 1 due in class

More information

Digital Image Processing

Digital Image Processing Digital Image Processing Digital Imaging Fundamentals Christophoros Nikou cnikou@cs.uoi.gr Images taken from: R. Gonzalez and R. Woods. Digital Image Processing, Prentice Hall, 2008. Digital Image Processing

More information

In order to manage and correct color photos, you need to understand a few

In order to manage and correct color photos, you need to understand a few In This Chapter 1 Understanding Color Getting the essentials of managing color Speaking the language of color Mixing three hues into millions of colors Choosing the right color mode for your image Switching

More information

CSCE 763: Digital Image Processing

CSCE 763: Digital Image Processing CSCE 763: Digital Image Processing Spring 2018 Yan Tong Department of Computer Science and Engineering University of South Carolina Today s Agenda Welcome Tentative Syllabus Topics covered in the course

More information

Digital Image Fundamentals. Digital Image Processing. Human Visual System. Contents. Structure Of The Human Eye (cont.) Structure Of The Human Eye

Digital Image Fundamentals. Digital Image Processing. Human Visual System. Contents. Structure Of The Human Eye (cont.) Structure Of The Human Eye Digital Image Processing 2 Digital Image Fundamentals Digital Imaging Fundamentals Christophoros Nikou cnikou@cs.uoi.gr Those who wish to succeed must ask the right preliminary questions Aristotle Images

More information

Digital Image Fundamentals. Digital Image Processing. Human Visual System. Contents. Structure Of The Human Eye (cont.) Structure Of The Human Eye

Digital Image Fundamentals. Digital Image Processing. Human Visual System. Contents. Structure Of The Human Eye (cont.) Structure Of The Human Eye Digital Image Processing 2 Digital Image Fundamentals Digital Imaging Fundamentals Christophoros Nikou cnikou@cs.uoi.gr Images taken from: R. Gonzalez and R. Woods. Digital Image Processing, Prentice Hall,

More information

Introduction to Multimedia Computing

Introduction to Multimedia Computing COMP 319 Lecture 02 Introduction to Multimedia Computing Fiona Yan Liu Department of Computing The Hong Kong Polytechnic University Learning Outputs of Lecture 01 Introduction to multimedia technology

More information

VC 16/17 TP4 Colour and Noise

VC 16/17 TP4 Colour and Noise VC 16/17 TP4 Colour and Noise Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos Hélder Filipe Pinto de Oliveira Outline Colour spaces Colour processing

More information

Digital Image Processing

Digital Image Processing Digital Image Processing Digital Imaging Fundamentals Christophoros Nikou cnikou@cs.uoi.gr Images taken from: R. Gonzalez and R. Woods. Digital Image Processing, Prentice Hall, 2008. Digital Image Processing

More information

Overview of Human Cognition and its Impact on User Interface Design (Part 2)

Overview of Human Cognition and its Impact on User Interface Design (Part 2) Overview of Human Cognition and its Impact on User Interface Design (Part 2) Brief Recap Gulf of Evaluation What is the state of the system? Gulf of Execution What specific inputs needed to achieve goals?

More information