Color Space 1: RGB Color Space. Color Space 2: HSV. RGB Cube Easy for devices But not perceptual Where do the grays live? Where is hue and saturation?

Similar documents
Vision Review: Image Processing. Course web page:

Matlab (see Homework 1: Intro to Matlab) Linear Filters (Reading: 7.1, ) Correlation. Convolution. Linear Filtering (warm-up slide) R ij

CS534 Introduction to Computer Vision. Linear Filters. Ahmed Elgammal Dept. of Computer Science Rutgers University

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt.

Last Lecture. photomatix.com

EE482: Digital Signal Processing Applications

Lecture 2: Color, Filtering & Edges. Slides: S. Lazebnik, S. Seitz, W. Freeman, F. Durand, D. Forsyth, D. Lowe, B. Wandell, S.Palmer, K.

Image Processing. Adam Finkelstein Princeton University COS 426, Spring 2019

Last Lecture. photomatix.com

Color Image Processing

Motivation: Image denoising. How can we reduce noise in a photograph?

02/02/10. Image Filtering. Computer Vision CS 543 / ECE 549 University of Illinois. Derek Hoiem

CSE 564: Scientific Visualization

Motivation: Image denoising. How can we reduce noise in a photograph?

Digital Image Processing

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

Reading instructions: Chapter 6

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

Continued. Introduction to Computer Vision CSE 252a Lecture 11

Digital Image Processing

Midterm Examination CS 534: Computational Photography

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

Digital Image Processing. Lecture # 8 Color Processing

CoE4TN4 Image Processing. Chapter 3: Intensity Transformation and Spatial Filtering

Image Filtering in Spatial domain. Computer Vision Jia-Bin Huang, Virginia Tech

Color Image Processing

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

Images and Filters. EE/CSE 576 Linda Shapiro

Color Transformations

Capturing Light in man and machine

Practical Image and Video Processing Using MATLAB

Capturing Light in man and machine

Image features: Histograms, Aliasing, Filters, Orientation and HOG. D.A. Forsyth

>>> from numpy import random as r >>> I = r.rand(256,256);

Lecture 3: Grey and Color Image Processing

>>> from numpy import random as r >>> I = r.rand(256,256);

Capturing Light in man and machine

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

Prof. Vidya Manian Dept. of Electrical and Comptuer Engineering

Prof. Feng Liu. Winter /10/2019

Color. Some slides are adopted from William T. Freeman

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

Image Filtering. Median Filtering

CS 4501: Introduction to Computer Vision. Filtering and Edge Detection

Capturing Light in man and machine

Midterm is on Thursday!

Digital Image Processing. Digital Image Fundamentals II 12 th June, 2017

Miscellaneous Topics Part 1

Table of contents. Vision industrielle 2002/2003. Local and semi-local smoothing. Linear noise filtering: example. Convolution: introduction

Capturing Light in man and machine. Some figures from Steve Seitz, Steve Palmer, Paul Debevec, and Gonzalez et al.

Image processing for gesture recognition: from theory to practice. Michela Goffredo University Roma TRE

Image Filtering Josef Pelikán & Alexander Wilkie CGG MFF UK Praha

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

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

MEM455/800 Robotics II/Advance Robotics Winter 2009

Filip Malmberg 1TD396 fall 2018 Today s lecture

PRACTICAL IMAGE AND VIDEO PROCESSING USING MATLAB

Image restoration and color image processing

Brief Introduction to Vision and Images

Image filtering, image operations. Jana Kosecka

Image Processing for feature extraction

Color Image Processing II

Capturing Light in man and machine

Image Enhancement II: Neighborhood Operations

Histograms and Color Balancing

Digital Image Processing Chapter 6: Color Image Processing ( )

Image Manipulation: Filters and Convolutions

CS6670: Computer Vision Noah Snavely. Administrivia. Administrivia. Reading. Last time: Convolution. Last time: Cross correlation 9/8/2009

Sensors and Sensing Cameras and Camera Calibration

CIE tri-stimulus experiment. Color Value Functions. CIE 1931 Standard. Color. Diagram. Color light intensity for visual color match

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

High Level Computer Vision. Introduction - April 16, Bernt Schiele & Mario Fritz MPI Informatics and Saarland University, Saarbrücken, Germany

IMAGE ENHANCEMENT IN SPATIAL DOMAIN

Robert Collins CSE486, Penn State. Lecture 3: Linear Operators

Motion illusion, rotating snakes

Defocusing and Deblurring by Using with Fourier Transfer

Color Image Processing

Chapter 17. Shape-Based Operations

Making PHP See. Confoo Michael Maclean

Computer Vision for HCI. Noise Removal. Noise in Images

Chapter 3 Part 2 Color image processing

Image Enhancement in the Spatial Domain Low and High Pass Filtering

Frequencies and Color

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

Computing for Engineers in Python

Introduction to Multimedia Computing

Lecture: Color. Juan Carlos Niebles and Ranjay Krishna Stanford AI Lab. Lecture 1 - Stanford University

Digital Image Processing Lec.(3) 4 th class

Digital Image Processing. Lecture 5 (Enhancement) Bu-Ali Sina University Computer Engineering Dep. Fall 2009

SRI VENKATESWARA COLLEGE OF ENGINEERING. COURSE DELIVERY PLAN - THEORY Page 1 of 6

Filtering. Image Enhancement Spatial and Frequency Based

Image Processing COS 426

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

Numerical Derivatives See also T&V, Appendix A.2 Gradient = vector of partial derivatives of image I(x,y) = [di(x,y)/dx, di(x,y)/dy]

Fourier analysis of images

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

Experiment 9. PID Controller

Computer Graphics Fundamentals

Carmen Alonso Montes 23rd-27th November 2015

Mahdi Amiri. March Sharif University of Technology

Transcription:

Color Space : RGB Color Space Color Space 2: HSV RGB Cube Easy for devices But not perceptual Where do the grays live? Where is hue and saturation? Hue, Saturation, Value (Intensity) RBG cube on its vertex Decouples the 3 components (a bit) How do you convert from one to the other? Wikipedia Use rgb2hsv() and hsv2rgb() in Matlab 2 RGB XYZ Color Similarity in Different Color Spaces 3 4

CIE XYZ Color Space 4: CIE LAB Space (x,y) = (X/(X+Y+Z), Y/(X+Y+Z)) Color Space 5: YUV CIE LAB Difference in this space is more close to human color space 5 6 Color Calibration Histogram Averaging of region of interest Goal: Obtain a range of (u,v) to represent color Binary Morphological Operations Dilation, Erosion Opening, Closing Labeling Connected Components 7 8 2

Visual Servoing Navigation based on visual cues Open-Loop vs. Feedback Control Objective: Follow the color blob Visual Cue: Color Blob Navigation: Follow the Blob! PURELY reactive 9 0 Mechanical Speed Control Proportional Controller Let e(t) = y(t) r(t), then, P = K p e(t) Prone to overshooting the reference 2 3

Proportional Controller High K p results in large change in output Steady-state error depends on magnitude of K p Integral Controller t I = K I e( )d 0 I Note: Integral term makes adjustments based on BOTH magnitude and duration of the error 3 4 Integral Controller K I (w/ K p ) speeds up movement towards reference Possibility of overshooting Why? Can add instability to the system D = K d de(t)/dt Derivative Controller D Note: Integral term makes adjustments based on BOTH magnitude and duration of the error 5 6 4

Derivative Controller K d slows down movement towards reference In conjunction with K I can limit overshoot caused by K I Sensitive to noise in the signal Controller operates on the ERROR between reference & output Proportional Reduces disturbance error Non-zero steady-state error Integral Ensures zero steady-state error Can be destabilizing Derivative Adds artificial damping Slows response In Summary P I D 7 8 How this relates to following color blobs? What is the input? What is the output? Given an image 9 20 5

Convolution Graphical Explanation of Convolution Definition Continuous Discrete 2 22 Applying Masks to Images Convolution of the Image w/ another Signal Masks have origins Symmetric masks origins are the center pixels 2 2 4 2 2 23 24 6

Linear Functions Simple Neural Network Simplest: Linear filters Key Idea: Replace each pixel by a linear combination of its neighbors The prescription for the linear combination is called the convolution kernel 25 26 The Retina: Up-Close 27 28 7

29 30 Linear Filtering: Warm Up Exercise I Linear Filtering: Warm Up Exercise II 3 32 8

Linear Filtering: Warm Up Exercise III Blur Examples 33 34 Linear Filtering: Warm Up Exercise IV Linear Filtering: Warm Up Exercise V 35 36 9

Remember Blurring Linear Filtering: Warm Up Exercise V 37 38 Sharpening Examples Sharpening Examples 39 40 0

Convolution Let I be a Signal (image), g be the convolution kernel then the convolution of I and g is given by Image Convolution f[m,n] = I g = I[m-k,n-l]g[k,l] k,l Note: Discrete! Can think of it as a form of running average. 4 42 Note the Following Image Operations as Convolution Average Filter Masks w/ positive entries that sum to ; Replaces each pixel w/ an ave of its neighborhood; If all weights are equal called BOX filter (Camps) 43 44

Smoothing by Averaging Rotationally symmetric Weights nearby pixels more than distant ones This makes sense for probabilistic inference Gaussian Averaging 45 46 Other 2-D Filters An Isotropic Gaussian The picture shows a smoothing kernel proportional to Reasonable model for a fuzzy blob 47 48 2

Smoothing with a Gaussian The Effects of Smoothing Each row shows smoothing with Gaussians of different width; Each column shows different realizations of an image Gaussian noise. 49 50 5 52 3

Image Smoothing Can Remove Noise And also 53 54 Computing Gradient as a Convolution Operation 55 56 4

Can also compute gradient as a filtering operation! Can also compute gradient as a filtering operation! 57 58 Edge is Where Change Occurs In -D, change is measured by the derivative Derivatives can have maxes (Biggest Change) and mins (No Change) Computing Gradients: st Order Derivatives Compute the gradient in the X-direction: ) Take the image intensity difference in the X-direction 2) Average the difference in the Y-direction (smoothing) 59 60 5

Some Matlab Code An Example 6 62 63 64 6

Recall We can compute gradient as:. Convolution Operation 2. Filtering Operation First Order Derivatives 65 66 Computing Gradients Derivative in X-Direction 67 68 7

Computing Gradients: Y-Direction Matlab s Conv2 Function 69 70 7 8