September 10, 2012Introduction to Artificial Intelligence Lecture 2: Perception & Action 1 Boundary-following Robot Rules 1  2  3  4  5.

Slides:



Advertisements
Similar presentations
3-D Computer Vision CSc83020 / Ioannis Stamos  Revisit filtering (Gaussian and Median)  Introduction to edge detection 3-D Computater Vision CSc
Advertisements

CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 4 – Digital Image Representation Klara Nahrstedt Spring 2009.
EDGE DETECTION ARCHANA IYER AADHAR AUTHENTICATION.
October 2, 2014Computer Vision Lecture 8: Edge Detection I 1 Edge Detection.
Computer Vision Lecture 16: Region Representation
December 5, 2013Computer Vision Lecture 20: Hidden Markov Models/Depth 1 Stereo Vision Due to the limited resolution of images, increasing the baseline.
Image Filtering CS485/685 Computer Vision Prof. George Bebis.
1 Image filtering Hybrid Images, Oliva et al.,
MSU CSE 803 Stockman Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute.
September 14, 2010Neural Networks Lecture 3: Models of Neurons and Neural Networks 1 Visual Illusions demonstrate how we perceive an “interpreted version”
1 Image Filtering Readings: Ch 5: 5.4, 5.5, 5.6,5.7.3, 5.8 (This lecture does not follow the book.) Images by Pawan SinhaPawan Sinha formal terminology.
1 Lecture 12 Neighbourhood Operations (2) TK3813 DR MASRI AYOB.
CS443: Digital Imaging and Multimedia Filters Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University Spring 2008 Ahmed Elgammal Dept.
Computer Vision Lecture 3: Digital Images
September 25, 2014Computer Vision Lecture 6: Spatial Filtering 1 Computing Object Orientation We compute the orientation of an object as the orientation.
MSU CSE 803 Linear Operations Using Masks Masks are patterns used to define the weights used in averaging the neighbors of a pixel to compute some result.
Computer Vision Spring ,-685 Instructor: S. Narasimhan Wean Hall 5409 T-R 10:30am – 11:50am.
Introduction to Artificial Intelligence Lecture 2: Perception & Action
Neighborhood Operations
Artificial Intelligence Lecture 8. Outline Computer Vision Robots Grid-Space Perception and Action Immediate Perception Action Robot’s Perception Task.
University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Image processing.
September 5, 2013Computer Vision Lecture 2: Digital Images 1 Computer Vision A simple two-stage model of computer vision: Image processing Scene analysis.
Lecture 03 Area Based Image Processing Lecture 03 Area Based Image Processing Mata kuliah: T Computer Vision Tahun: 2010.
Artificial Intelligence Chapter 6 Robot Vision Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
November 13, 2014Computer Vision Lecture 17: Object Recognition I 1 Today we will move on to… Object Recognition.
Linear filtering. Motivation: Noise reduction Given a camera and a still scene, how can you reduce noise? Take lots of images and average them! What’s.
Machine Vision ENT 273 Image Filters Hema C.R. Lecture 5.
COMP322/S2000/L171 Robot Vision System Major Phases in Robot Vision Systems: A. Data (image) acquisition –Illumination, i.e. lighting consideration –Lenses,
October 7, 2014Computer Vision Lecture 9: Edge Detection II 1 Laplacian Filters Idea: Smooth the image, Smooth the image, compute the second derivative.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Templates, Image Pyramids, and Filter Banks
Intelligent Vision Systems ENT 496 Image Filtering and Enhancement Hema C.R. Lecture 4.
September 19, 2013Computer Vision Lecture 6: Image Filtering 1 Image Filtering Many basic image processing techniques are based on convolution. In a convolution,
1 Computational Vision CSCI 363, Fall 2012 Lecture 6 Edge Detection.
October 1, 2013Computer Vision Lecture 9: From Edges to Contours 1 Canny Edge Detector However, usually there will still be noise in the array E[i, j],
November 21, 2013Computer Vision Lecture 14: Object Recognition II 1 Statistical Pattern Recognition The formal description consists of relevant numerical.
CSE 6367 Computer Vision Image Operations and Filtering “You cannot teach a man anything, you can only help him find it within himself.” ― Galileo GalileiGalileo.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities May 2, 2005 Prof. Charlene Tsai.
Machine Vision Edge Detection Techniques ENT 273 Lecture 6 Hema C.R.
Edge Segmentation in Computer Images CSE350/ Sep 03.
Instructor: Mircea Nicolescu Lecture 7
Instructor: Mircea Nicolescu Lecture 5 CS 485 / 685 Computer Vision.
February 9, 2016Introduction to Artificial Intelligence Lecture 5: Perception & Action 1 Frege Notes In order to use many of the Java math functions in.
Chapter 24: Perception April 20, Introduction Emphasis on vision Feature extraction approach Model-based approach –S stimulus –W world –f,
September 26, 2013Computer Vision Lecture 8: Edge Detection II 1Gradient In the one-dimensional case, a step edge corresponds to a local peak in the first.
April 12, 2016Introduction to Artificial Intelligence Lecture 19: Neural Network Application Design II 1 Now let us talk about… Neural Network Application.
Introduction To Computational and Biological Vision Max Binshtok Ohad Greenshpan March 2006 Shot Detection in video.
March 31, 2016Introduction to Artificial Intelligence Lecture 16: Neural Network Paradigms I 1 … let us move on to… Artificial Neural Networks.
April 5, 2016Introduction to Artificial Intelligence Lecture 17: Neural Network Paradigms II 1 Capabilities of Threshold Neurons By choosing appropriate.
Image Enhancement in the Spatial Domain.
HCI/ComS 575X: Computational Perception Instructor: Alexander Stoytchev
April 21, 2016Introduction to Artificial Intelligence Lecture 22: Computer Vision II 1 Canny Edge Detector The Canny edge detector is a good approximation.
Miguel Tavares Coimbra
Edge Detection Phil Mlsna, Ph.D. Dept. of Electrical Engineering Northern Arizona University.
Digital Image Processing Lecture 16: Segmentation: Detection of Discontinuities Prof. Charlene Tsai.
Fourier Transform: Real-World Images
Chapter 6. Robot Vision.
Computer Vision Lecture 3: Digital Images
Computer Vision Lecture 9: Edge Detection II
Image filtering Images by Pawan Sinha.
Image filtering Images by Pawan Sinha.
Object Recognition Today we will move on to… April 12, 2018
Linear Operations Using Masks
Magnetic Resonance Imaging
Lecture 2: Image filtering
Computer Vision Lecture 19: Object Recognition III
Intensity Transformation
Image Filtering Readings: Ch 5: 5. 4, 5. 5, 5. 6, , 5
Introduction to Artificial Intelligence Lecture 22: Computer Vision II
Presentation transcript:

September 10, 2012Introduction to Artificial Intelligence Lecture 2: Perception & Action 1 Boundary-following Robot Rules 1  2  3  4  5

September 10, 2012Introduction to Artificial Intelligence Lecture 2: Perception & Action 2 Boundary-following Robot (2) Rules 1  2  3  4  5

September 10, 2012Introduction to Artificial Intelligence Lecture 2: Perception & Action 3 Thanks to Roshanak

September 10, 2012Introduction to Artificial Intelligence Lecture 2: Perception & Action 4 Linear Separability To explain linear separability, let us consider the function f:R n  {0, 1} with where x 1, x 2, …, x n represent real numbers. This will also be useful for understanding the computations of artificial neural networks later in the course.

September 10, 2012Introduction to Artificial Intelligence Lecture 2: Perception & Action 5Networks x1x1 x2x2 w 1 =? w 2 =?  =? Example: x 1 w 1 + x 2 w 2 >=  ? x 1 or x 2 x1x x2x x2x2 x1x x 1 =0.5, x 2 =0: 0.5w 1 + 0*w 2 =  x 1 =0, x 2 =0.5: 0*w w 2 =  w1 = w2 = 2 

September 10, 2012Introduction to Artificial Intelligence Lecture 2: Perception & Action 6 Realizing Robot Functions s2s2 s3s3 0.5 s5s5s5s5 s6s6s6s6 s7s7s7s7 s4s4s4s4 s8s8s8s8 s3s3s3s3 s2s2s2s2 s1s1s1s1 x1x1x1x1 s5s5s5s5 s6s6s6s6 s7s7s7s7 s4s4s4s4 s8s8s8s8 s3s3s3s3 s2s2s2s2 s1s1s1s1 x2x2x2x2 s4s4 s5s5 1 x1x2x1x s 2 w 2 + s 3 w 3 + s 4 w 4 + s 5 w 5 >=  ? Apply weights and threshold: s s s 4 - 2s 5 >= 0.5? When s 2 =1, s 3 =1, s 4 =0, s 5 =0 s 2 w 2 + s 3 w 3 + s 4 w 4 + s 5 w 5 =2 When s 2 =0, s 3 =1, s 4 =1, s 5 =0 s 2 w 2 + s 3 w 3 + s 4 w 4 + s 5 w 5 =-1 x

September 10, 2012Introduction to Artificial Intelligence Lecture 2: Perception & Action 7 Linear Separability So by varying the weights and the threshold, we can realize any linear separation of the input space into a region that yields output 1, and another region that yields output 0. As we have seen, a two-dimensional input space can be divided by any straight line. A three-dimensional input space can be divided by any two-dimensional plane. In general, an n-dimensional input space can be divided by an (n-1)-dimensional plane or hyperplane. Of course, for n > 3 this is hard to visualize.

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 8 let’s take a look at… Computer Vision

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 9 Computer Vision In grid-space world, sensory inputs are very simple: Only the state of neighboring cells can be perceived. In the real world, the visual input is highly complex, noisy, and often ambiguous (3D  2D projection). While humans can seemingly effortless extract all relevant information from within their visual field, this is an extremely difficult task for machines. For example, one major problem for computers is perceptual grouping, that is, determining which parts of an image belong to the same object.

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 10 Computer Vision In the following lectures, we will look at some “classical” approaches to computer vision. These approaches are not intended to replicate vision in humans or animals. Later in the course, we will also study artificial neural networks for vision problems, which are supposed (to some extent) to imitate the biological example.

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 11 Computer Vision A simple two-stage model of computer vision: Image processing Scene analysis Bitmap image Scene description feedback (tuning) Prepare image for scene analysis Build an iconic model of the world

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 12 Image Processing Image is represented as an m  n array, I(x, y) of numbers (image intensity array). Each number indicates the light intensity at one of the pixels in the image. Many basic image processing techniques are based on convolution. In a convolution, a convolution filter is applied to every pixel to create a filtered image I*(x, y):

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 13 x y Image Processing Example: Averaging filter: /91/91/90 01/91/91/90 01/91/91/

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 14 Image Processing Grayscale Image: /91/91/91/91/91/9 1/91/91/9 Averaging Filter:

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 15 Image Processing Original Image: Filtered Image: /91/91/91/91/91/9 1/91/91/9 value = 1  1/9 + 6  1/9 + 3  1/9 + 2  1/  1/9 + 3  1/9 + 5  1/  1/9 + 6  1/9 = 47/9 =

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 16 Image Processing Original Image: Filtered Image: /91/91/91/91/91/9 1/91/91/9 value = 6  1/9 + 3  1/9 + 2  1/  1/9 + 3  1/  1/  1/9 + 6  1/9 + 9  1/9 = 60/9 =

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 17 Image Processing Original Image: Filtered Image: Now you can see the averaging (smoothing) effect of the 3  3 filter that we applied.

Questions How about the boundaries?

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 19 Image Processing More common: Gaussian Filters Discrete version: 1/273 implement decreasing influence by more distant pixels

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 20 Image Processing original 33333333 99999999 15  15 Effect of Gaussian smoothing:

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 21 Different Types of Filters Smoothing can reduce noise in the image.Smoothing can reduce noise in the image. This can be useful, for example, if you want to find regions of similar color or texture in an image.This can be useful, for example, if you want to find regions of similar color or texture in an image. However, there are different types of noise.However, there are different types of noise. For so-called “salt-and-pepper” noise, for example, a median filter can be more effective.For so-called “salt-and-pepper” noise, for example, a median filter can be more effective.

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 22 Median Filter Use, for example, a 3  3 filter and move it across the image like we did before.Use, for example, a 3  3 filter and move it across the image like we did before. For each position, compute the median of the brightness values of the nine pixels in question.For each position, compute the median of the brightness values of the nine pixels in question. –To compute the median, sort the nine values in ascending order. –The value in the center of the list (the fifth value) is the median. Use the median as the new value for the center pixel.Use the median as the new value for the center pixel.

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 23 Median Filter Is Median Filter a convolution filter?Is Median Filter a convolution filter? If not, what is the difference?If not, what is the difference? –Median vs. Gaussian and Average Filters Size of median filter?Size of median filter? Advantage of the median filter: Capable of eliminating outliers such as the extreme brightness values in salt-and-pepper noise, and preserve edges (contours).Advantage of the median filter: Capable of eliminating outliers such as the extreme brightness values in salt-and-pepper noise, and preserve edges (contours). Disadvantage: The median filter may change the contours of objects in the image. (distorted)Disadvantage: The median filter may change the contours of objects in the image. (distorted)

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 24 Median Filter original image 3  3 median 7  7 median

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 25 Different Types of Filters How can an algorithm extract relevant information from an image that enables the algorithm to recognize objects? The most important information for the interpretation of an image (for both technical and biological systems) is the contour of objects. The most important information for the interpretation of an image (for both technical and biological systems) is the contour of objects. Contours are indicated by abrupt changes in brightness. Contours are indicated by abrupt changes in brightness. We can use edge detection filters to extract contour information from an image. We can use edge detection filters to extract contour information from an image.

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 26 Edge Detection Filters Let us take a look at the one-dimensional case:Let us take a look at the one-dimensional case: A change in brightness:A change in brightness: Its first derivative:Its first derivative: Its second derivative:Its second derivative:

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 27 Laplacian Filters Idea: Smooth the image, Smooth the image, compute the second derivative of the (2D) image, compute the second derivative of the (2D) image, Find the pixels where the brightness function “crosses” 0 and mark them. Find the pixels where the brightness function “crosses” 0 and mark them. We can actually devise convolution filters that carry out the smoothing and the computation of the second derivative.

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 28 Laplacian Filters Continuous variant: Discrete variants (applied after smoothing):

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 29 Laplacian Filters Let us apply a Laplacian filter to the following image:

September 12, 2012Introduction to Artificial Intelligence Lecture 3: Computer Vision I 30 Laplacian Filters 5  5 Laplacian zero detection 7  7 Laplacian 3  3 Laplacian