Introduction to Computer Vision

Total Page:16

File Type:pdf, Size:1020Kb

Introduction to Computer Vision Edges and Features - 2 CAP 5415, FALL 2019 Credits and Sources ▪This lecture contains open source materials authored by ▪ Dr. Mubarak Shah ▪ Dr. Ajit Rajwade ▪ Dr. David Lowe (inventor of SIFT) ▪ Dr. George Bebis ▪ Dr. Cornelia Fermüller Aspects of Classical Computer Vision Edges & Features Tracking Classification Shape From 3D Edges and Features are precursors to other functions such as tracking, recovering 3D shape from 2D images, and object classification Uses of Features - •Automate object tracking •Point matching for computing disparity •Stereo calibration •Estimation of fundamental matrix •Motion based segmentation •Recognition •3D object reconstruction •Robot navigation •Image retrieval and indexing 푤 푥, 푦 window SIFT: Motivation The Harris operator is not invariant to scale and correlation is not invariant to rotation1. For better image matching, Lowe’s goal was to develop an interest operator that is invariant to scale and rotation. Also, Lowe aimed to create a descriptor that was robust to the variations corresponding to typical viewing conditions. The descriptor is the most-used part of SIFT. 1But Schmid and Mohr developed a rotation invariant descriptor for it in 1997. 4/28/2020 30 Idea of SIFT Image content is transformed into local feature coordinates that are invariant to translation, rotation, scale, and other imaging parameters SIFT Features 4/28/2020 31 Overall Procedure at a High Level 1. Scale-space extrema detection Search over multiple scales and image locations. 2. Keypoint localization Fit a model to detrmine location and scale. Select keypoints based on a measure of stability. 3. Orientation assignment Compute best orientation(s) for each keypoint region. 4. Keypoint description Use local image gradients at selected scale and rotation to describe each keypoint region. 4/28/2020 35 A blob detector for different sizes Lowe’s Scale-space Interest Points Laplacian of Gaussian kernel ◦ Scale normalised (x by scale2) ◦ Proposed by Lindeberg Scale-space detection ◦ Find local maxima across scale/space ◦ A good “blob” detector [ T. Lindeberg IJCV 1998 ] 4/28/2020 40 Lowe’s Scale-space Interest Points: Difference of Gaussians Gaussian is an ad hoc solution of heat diffusion equation Hence k is not necessarily very small in practice 4/28/2020 41 Lowe’s Pyramid Scheme • Scale space is separated into octaves: • Octave 1 uses scale • Octave 2 uses scale 2 • etc. • In each octave, the initial image is repeatedly convolved with Gaussians to produce a set of scale space images. • Adjacent Gaussians are subtracted to produce the DOG • After each octave, the Gaussian image is down-sampled by a factor of 2 to produce an image ¼ the size to start the next level. 4/28/2020 42 Keypoint localization with orientation 832 233x189 initial keypoints 536 729 keypoints after keypoints after gradient threshold ratio threshold 4/28/2020 54 4. Scale Invariant Feature Transform (SIFT) 1. Take a 16 x16 window around interest point (i.e., at the scale detected). 2. Divide into a 4x4 grid of cells. 3. Compute histogram of image gradient directions in each cell (8 bins each). 16 histograms x 8 orientations = 128 features 5. Feature matching For each feature in A, find nearest neighbor in B A B Example: Planar recognition Training images Example: Planar recognition • Reliably recognized at a rotation of 60° away from the camera • Affine fit is an approximation of perspective projection • Only 3 points are needed for recognition 3D object recognition Training images 3D object recognition Only 3 keys are needed for recognition, so extra keys provide robustness Affine model is no longer as accurate Recognition under occlusion Illumination invariance Robot Localization Credits and Sources ▪This lecture contains open source materials authored by ▪ Dr. Mubarak Shah ▪ Dr. Ajit Rajwade ▪ Dr. David Lowe (inventor of SIFT) ▪ Dr. George Bebis ▪ Dr. Cornelia Fermüller.
Recommended publications
  • Edge Detection of an Image Based on Extended Difference of Gaussian
    American Journal of Computer Science and Technology 2019; 2(3): 35-47 http://www.sciencepublishinggroup.com/j/ajcst doi: 10.11648/j.ajcst.20190203.11 ISSN: 2640-0111 (Print); ISSN: 2640-012X (Online) Edge Detection of an Image Based on Extended Difference of Gaussian Hameda Abd El-Fattah El-Sennary1, *, Mohamed Eid Hussien1, Abd El-Mgeid Amin Ali2 1Faculty of Science, Aswan University, Aswan, Egypt 2Faculty of Computers and Information, Minia University, Minia, Egypt Email address: *Corresponding author To cite this article: Hameda Abd El-Fattah El-Sennary, Abd El-Mgeid Amin Ali, Mohamed Eid Hussien. Edge Detection of an Image Based on Extended Difference of Gaussian. American Journal of Computer Science and Technology. Vol. 2, No. 3, 2019, pp. 35-47. doi: 10.11648/j.ajcst.20190203.11 Received: November 24, 2019; Accepted: December 9, 2019; Published: December 20, 2019 Abstract: Edge detection includes a variety of mathematical methods that aim at identifying points in a digital image at which the image brightness changes sharply or, more formally, has discontinuities. The points at which image brightness changes sharply are typically organized into a set of curved line segments termed edges. The same problem of finding discontinuities in one-dimensional signals is known as step detection and the problem of finding signal discontinuities over time is known as change detection. Edge detection is a fundamental tool in image processing, machine vision and computer vision, particularly in the areas of feature detection and feature extraction. It's also the most important parts of image processing, especially in determining the image quality.
    [Show full text]
  • 3D Object Modeling and Recognition Using Local Affine-Invariant Image Descriptors and Multi-View Spatial Constraints
    3D Object Modeling and Recognition Using Local Affine-Invariant Image Descriptors and Multi-View Spatial Constraints Fred Rothganger ([email protected]) Svetlana Lazebnik ([email protected]) Department of Computer Science and Beckman Institute University of Illinois at Urbana-Champaign, Urbana, IL 61801, USA Cordelia Schmid ([email protected]) INRIA Rhone-Alpesˆ 665, Avenue de l’Europe, 38330 Montbonnot, France Jean Ponce ([email protected]) Department of Computer Science and Beckman Institute University of Illinois at Urbana-Champaign, Urbana, IL 61801, USA Abstract. This article introduces a novel representation for three-dimensional (3D) objects in terms of local affine-invariant descriptors of their images and the spatial relationships between the corresponding surface patches. Geometric constraints associated with different views of the same patches under affine projection are combined with a normalized representation of their appearance to guide matching and reconstruction, allowing the acquisition of true 3D affine and Euclidean models from multiple unregistered images, as well as their recognition in photographs taken from arbitrary viewpoints. The proposed approach does not require a separate segmentation stage, and it is applicable to highly cluttered scenes. Modeling and recognition results are presented. Keywords: Three-dimensional object recognition, image-based modeling, affine-invariant image descriptors, multi- view geometry. 1. Introduction This article addresses the problem of recognizing three-dimensional (3D) objects
    [Show full text]
  • Scale Invariant Feature Transform - Scholarpedia 2015-04-21 15:04
    Scale Invariant Feature Transform - Scholarpedia 2015-04-21 15:04 Scale Invariant Feature Transform +11 Recommend this on Google Tony Lindeberg (2012), Scholarpedia, 7(5):10491. doi:10.4249/scholarpedia.10491 revision #149777 [link to/cite this article] Prof. Tony Lindeberg, KTH Royal Institute of Technology, Stockholm, Sweden Scale Invariant Feature Transform (SIFT) is an image descriptor for image-based matching and recognition developed by David Lowe (1999, 2004). This descriptor as well as related image descriptors are used for a large number of purposes in computer vision related to point matching between different views of a 3-D scene and view-based object recognition. The SIFT descriptor is invariant to translations, rotations and scaling transformations in the image domain and robust to moderate perspective transformations and illumination variations. Experimentally, the SIFT descriptor has been proven to be very useful in practice for image matching and object recognition under real-world conditions. In its original formulation, the SIFT descriptor comprised a method for detecting interest points from a grey- level image at which statistics of local gradient directions of image intensities were accumulated to give a summarizing description of the local image structures in a local neighbourhood around each interest point, with the intention that this descriptor should be used for matching corresponding interest points between different images. Later, the SIFT descriptor has also been applied at dense grids (dense SIFT) which have been shown to lead to better performance for tasks such as object categorization, texture classification, image alignment and biometrics . The SIFT descriptor has also been extended from grey-level to colour images and from 2-D spatial images to 2+1-D spatio-temporal video.
    [Show full text]
  • View Matching with Blob Features
    View Matching with Blob Features Per-Erik Forssen´ and Anders Moe Computer Vision Laboratory Department of Electrical Engineering Linkoping¨ University, Sweden Abstract mographic transformation that is not part of the affine trans- formation. This means that our results are relevant for both This paper introduces a new region based feature for ob- wide baseline matching and 3D object recognition. ject recognition and image matching. In contrast to many A somewhat related approach to region based matching other region based features, this one makes use of colour is presented in [1], where tangents to regions are used to de- in the feature extraction stage. We perform experiments on fine linear constraints on the homography transformation, the repeatability rate of the features across scale and incli- which can then be found through linear programming. The nation angle changes, and show that avoiding to merge re- connection is that a line conic describes the set of all tan- gions connected by only a few pixels improves the repeata- gents to a region. By matching conics, we thus implicitly bility. Finally we introduce two voting schemes that allow us match the tangents of the ellipse-approximated regions. to find correspondences automatically, and compare them with respect to the number of valid correspondences they 2. Blob features give, and their inlier ratios. We will make use of blob features extracted using a clus- tering pyramid built using robust estimation in local image regions [2]. Each extracted blob is represented by its aver- 1. Introduction age colour pk,areaak, centroid mk, and inertia matrix Ik. I.e.
    [Show full text]
  • Edge Detection Low Level
    Image Processing - Lesson 10 Image Processing - Computer Vision Edge Detection Low Level • Edge detection masks Image Processing representation, compression,transmission • Gradient Detectors • Compass Detectors image enhancement • Second Derivative - Laplace detectors • Edge Linking edge/feature finding • Hough Transform image "understanding" Computer Vision High Level UFO - Unidentified Flying Object Point Detection -1 -1 -1 Convolution with: -1 8 -1 -1 -1 -1 Large Positive values = light point on dark surround Large Negative values = dark point on light surround Example: 5 5 5 5 5 -1 -1 -1 5 5 5 100 5 * -1 8 -1 5 5 5 5 5 -1 -1 -1 0 0 -95 -95 -95 = 0 0 -95 760 -95 0 0 -95 -95 -95 Edge Definition Edge Detection Line Edge Line Edge Detectors -1 -1 -1 -1 -1 2 -1 2 -1 2 -1 -1 2 2 2 -1 2 -1 -1 2 -1 -1 2 -1 -1 -1 -1 2 -1 -1 -1 2 -1 -1 -1 2 gray value gray x edge edge Step Edge Step Edge Detectors -1 1 -1 -1 1 1 -1 -1 -1 -1 -1 -1 -1 -1 -1 1 -1 -1 1 1 -1 -1 -1 -1 1 1 1 1 -1 1 -1 -1 1 1 1 1 1 1 gray value gray -1 -1 1 1 1 -1 1 1 x edge edge Example Edge Detection by Differentiation Step Edge detection by differentiation: 1D image f(x) gray value gray x 1st derivative f'(x) threshold |f'(x)| - threshold Pixels that passed the threshold are -1 -1 1 1 -1 -1 -1 -1 Edge Pixels -1 -1 1 1 -1 -1 -1 -1 -1 -1 1 1 1 1 1 1 -1 -1 1 1 1 -1 1 1 Gradient Edge Detection Gradient Edge - Examples ∂f ∂x ∇ f((x,y) = Gradient ∂f ∂y ∂f ∇ f((x,y) = ∂x , 0 f 2 f 2 Gradient Magnitude ∂ + ∂ √( ∂ x ) ( ∂ y ) ∂f ∂f Gradient Direction tg-1 ( / ) ∂y ∂x ∂f ∇ f((x,y) = 0 , ∂y Differentiation in Digital Images Example Edge horizontal - differentiation approximation: ∂f(x,y) Original FA = ∂x = f(x,y) - f(x-1,y) convolution with [ 1 -1 ] Gradient-X Gradient-Y vertical - differentiation approximation: ∂f(x,y) FB = ∂y = f(x,y) - f(x,y-1) convolution with 1 -1 Gradient-Magnitude Gradient-Direction Gradient (FA , FB) 2 2 1/2 Magnitude ((FA ) + (FB) ) Approx.
    [Show full text]
  • Fast Almost-Gaussian Filtering
    Fast Almost-Gaussian Filtering Peter Kovesi Centre for Exploration Targeting School of Earth and Environment The University of Western Australia 35 Stirling Highway Crawley WA 6009 Email: [email protected] Abstract—Image averaging can be performed very efficiently paper describes how the fixed low cost of averaging achieved using either separable moving average filters or by using summed through separable moving average filters, or via summed area area tables, also known as integral images. Both these methods tables, can be exploited to achieve a good approximation allow averaging to be performed at a small fixed cost per pixel, independent of the averaging filter size. Repeated filtering with to Gaussian filtering also at a small fixed cost per pixel, averaging filters can be used to approximate Gaussian filtering. independent of filter size. Thus a good approximation to Gaussian filtering can be achieved Summed area tables were devised by Crow in 1984 [12] but at a fixed cost per pixel independent of filter size. This paper only recently introduced to the computer vision community by describes how to determine the averaging filters that one needs Viola and Jones [13]. A summed area table, or integral image, to approximate a Gaussian with a specified standard deviation. The design of bandpass filters from the difference of Gaussians can be generated by computing the cumulative sums along the is also analysed. It is shown that difference of Gaussian bandpass rows of an image and then computing the cumulative sums filters share some of the attributes of log-Gabor filters in that down the columns.
    [Show full text]
  • Object Detection and Pose Estimation from RGB and Depth Data for Real-Time, Adaptive Robotic Grasping
    Object Detection and Pose Estimation from RGB and Depth Data for Real-time, Adaptive Robotic Grasping Shuvo Kumar Paul1, Muhammed Tawfiq Chowdhury1, Mircea Nicolescu1, Monica Nicolescu1, David Feil-Seifer1 Abstract—In recent times, object detection and pose estimation to the changing environment while interacting with their have gained significant attention in the context of robotic vision surroundings, and a key component of this interaction is the applications. Both the identification of objects of interest as well reliable grasping of arbitrary objects. Consequently, a recent as the estimation of their pose remain important capabilities in order for robots to provide effective assistance for numerous trend in robotics research has focused on object detection and robotic applications ranging from household tasks to industrial pose estimation for the purpose of dynamic robotic grasping. manipulation. This problem is particularly challenging because However, identifying objects and recovering their poses are of the heterogeneity of objects having different and potentially particularly challenging tasks as objects in the real world complex shapes, and the difficulties arising due to background are extremely varied in shape and appearance. Moreover, clutter and partial occlusions between objects. As the main contribution of this work, we propose a system that performs cluttered scenes, occlusion between objects, and variance in real-time object detection and pose estimation, for the purpose lighting conditions make it even more difficult. Additionally, of dynamic robot grasping. The robot has been pre-trained to the system needs to be sufficiently fast to facilitate real-time perform a small set of canonical grasps from a few fixed poses robotic tasks.
    [Show full text]
  • 3D Object Modeling and Recognition from Photographs and Image Sequences
    3D Object Modeling and Recognition from Photographs and Image Sequences Fred Rothganger1, Svetlana Lazebnik1, Cordelia Schmid2, and Jean Ponce1 1 Department of Computer Science and Beckman Institute University of Illinois at Urbana-Champaign, Urbana, IL 61801, USA {rothgang,slazebni,jponce}@uiuc.edu 2 INRIA Rhˆone-Alpes 665, Avenue de l’Europe, 38330 Montbonnot, France [email protected] Abstract. This chapter proposes a representation of rigid three-dimensional (3D) objects in terms of local affine-invariant descriptors of their images and the spatial relationships between the corresponding surface patches. Geometric constraints associated with different views of the same patches under affine projection are combined with a normalized representation of their appearance to guide the matching process involved in object mod- eling and recognition tasks. The proposed approach is applied in two do- mains: (1) Photographs — models of rigid objects are constructed from small sets of images and recognized in highly cluttered shots taken from arbitrary viewpoints. (2) Video — dynamic scenes containing multiple moving objects are segmented into rigid components, and the resulting 3D models are directly matched to each other, giving a novel approach to video indexing and retrieval. 1 Introduction Traditional feature-based geometric approaches to three-dimensional (3D) object recognition — such as alignment [13, 19] or geometric hashing [15] — enumerate various subsets of geometric image features before using pose consistency con- straints to confirm or discard competing match hypotheses. They largely ignore the rich source of information contained in the image brightness and/or color pattern, and thus typically lack an effective mechanism for selecting promis- ing matches.
    [Show full text]
  • Computer Vision Based Human Detection Md Ashikur
    Computer Vision Based Human Detection Md Ashikur. Rahman To cite this version: Md Ashikur. Rahman. Computer Vision Based Human Detection. International Journal of Engineer- ing and Information Systems (IJEAIS), 2017, 1 (5), pp.62 - 85. hal-01571292 HAL Id: hal-01571292 https://hal.archives-ouvertes.fr/hal-01571292 Submitted on 2 Aug 2017 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. International Journal of Engineering and Information Systems (IJEAIS) ISSN: 2000-000X Vol. 1 Issue 5, July– 2017, Pages: 62-85 Computer Vision Based Human Detection Md. Ashikur Rahman Dept. of Computer Science and Engineering Shaikh Burhanuddin Post Graduate College Under National University, Dhaka, Bangladesh [email protected] Abstract: From still images human detection is challenging and important task for computer vision-based researchers. By detecting Human intelligence vehicles can control itself or can inform the driver using some alarming techniques. Human detection is one of the most important parts in image processing. A computer system is trained by various images and after making comparison with the input image and the database previously stored a machine can identify the human to be tested. This paper describes an approach to detect different shape of human using image processing.
    [Show full text]
  • Local Feature Filtering for 3D Object Recognition
    Local Feature Filtering for 3D Object Recognition Md. Kamrul Hasan∗, Liang Chen†, Christopher J. Pal∗ and Charles Brown† ∗ Ecole Polytechnique de Montreal, QC, Canada E-mail: [email protected], [email protected], Tel: +1(514) 340-5121,x.7110 † University of Northern British Columbia, BC, Canada E-mail: [email protected], [email protected] Tel: +1(250) 960-5838 Abstract—Three filtering/sampling approaches for local fea- by the Bag of Words (BOW) model from textual information tures, namely Random sampling, Concentrated sampling, and retrieval, computer vision researchers have induced it as Bag Inversely concentrated sampling are proposed and investigated. Of Visual Words(BOVW) model[13,14], where visual features While local features characterize an image with distinctive key- points, the filtering/sampling analogies have a two-fold goal: (i) are quantized, the code-words are generated, and named as compressing an object definition, and (ii) reducing the classifier visual words. These Visual Words have been successfully learning bias, that is induced by the variance of key-point tested for feature matching in 2D object images. numbers among object classes. The proposed methodologies have In this work, we have proposed three new local image fea- been tested for 3D object recognition on the Columbia Object ture filtering methodologies that are based on some very sim- Library (COIL-20) dataset, where the Support Vector Machines (SVMs) is applied as a classification tool and winner takes all ple assumptions. Following these filtering approaches, three principle is used for inferences. The proposed approaches have object recognition models have been formulated, which are achieved promising performance with 100% recognition rate for described in section two.
    [Show full text]
  • Lecture 10 Detectors and Descriptors
    This lecture is about detectors and descriptors, which are the basic building blocks for many tasks in 3D vision and recognition. We’ll discuss Lecture 10 some of the properties of detectors and descriptors and walk through examples. Detectors and descriptors • Properties of detectors • Edge detectors • Harris • DoG • Properties of descriptors • SIFT • HOG • Shape context Silvio Savarese Lecture 10 - 16-Feb-15 Previous lectures have been dedicated to characterizing the mapping between 2D images and the 3D world. Now, we’re going to put more focus From the 3D to 2D & vice versa on inferring the visual content in images. P = [x,y,z] p = [x,y] 3D world •Let’s now focus on 2D Image The question we will be asking in this lecture is - how do we represent images? There are many basic ways to do this. We can just characterize How to represent images? them as a collection of pixels with their intensity values. Another, more practical, option is to describe them as a collection of components or features which correspond to “interesting” regions in the image such as corners, edges, and blobs. Each of these regions is characterized by a descriptor which captures the local distribution of certain photometric properties such as intensities, gradients, etc. Feature extraction and description is the first step in many recent vision algorithms. They can be considered as building blocks in many scenarios The big picture… where it is critical to: 1) Fit or estimate a model that describes an image or a portion of it 2) Match or index images 3) Detect objects or actions form images Feature e.g.
    [Show full text]
  • Object Recognition Using Hough-Transform Clustering of SURF Features
    Object Recognition Using Hough-transform Clustering of SURF Features Viktor Seib, Michael Kusenbach, Susanne Thierfelder, Dietrich Paulus Active Vision Group (AGAS), University of Koblenz-Landau Universit¨atsstr. 1, 56070 Koblenz, Germany {vseib, mkusenbach, thierfelder, paulus}@uni-koblenz.de http://homer.uni-koblenz.de Abstract—This paper proposes an object recognition approach important algorithm parameters. Finally, we provide an open intended for extracting, analyzing and clustering of features from source implementation of our approach as a Robot Operating RGB image views from given objects. Extracted features are System (ROS) package that can be used with any robot capable matched with features in learned object models and clustered in of interfacing ROS. The software is available at [3]. Hough-space to find a consistent object pose. Hypotheses for valid poses are verified by computing a homography from detected In Sec.II related approaches are briefly presented. These features. Using that homography features are back projected approaches either use similar techniques or are used by other onto the input image and the resulting area is checked for teams competing in the RoboCup@Home league. Hereafter, possible presence of other objects. This approach is applied by Sec.III presents our approach in great detail, an evaluation our team homer[at]UniKoblenz in the RoboCup[at]Home league. follows in Sec.IV. Finally, Sec.V concludes this paper. Besides the proposed framework, this work offers the computer vision community with online programs available as open source software. II. RELATED WORK Similar to our approach, Leibe and Schiele [4] use the I. INTRODUCTION Hough-space for creating hypotheses for the object pose.
    [Show full text]