EE368/CS232 Digital Image Processing Winter Homework #7 Solutions

Size: px
Start display at page:

Download "EE368/CS232 Digital Image Processing Winter Homework #7 Solutions"

Transcription

1 1. Robustness of the SIFT Descriptor EE368/CS232 Digital Image Processing Winter Homework #7 Solutions Part A: Below, we show the SIFT keypoints for the original test image, before any additional distortions are introduced. We neglect the effect that the four types of distortions would have on the keypoint detector and focus exclusively on their effect on the feature descriptor in this problem, although in practice both the detector and the descriptor would be affected. Part B: The following plot shows how repeatability varies as the brightness offset changes. For small brightness offsets, the SIFT descriptor does not change, because the descriptor is formed from image gradients which are unaffected by a brightness offset. The reason why some of the descriptors change for larger brightness offsets is that the gray values are saturated when they reach 0 or 255 in an 8-bit image representation. 1

2 Repeatability Brightness Offset Part C: The following plot shows how repeatability varies as the g value in the contrast adjustment is changed. Like for small brightness offsets, the SIFT descriptor only changes very slightly when the contrast is adjusted. The SIFT descriptor is normalized to have unit L2 norm, so most effects of contrast changes are removed during the normalization Repeatability Contrast Gamma Part D: The following plot shows how repeatability varies as the noise standard deviation is increased. There is a slow but steady drop in the repeatability for larger noise levels. Since the image is low-pass filtered with a Gaussian kernel in generating the scale-space, the noise is reduced before the image gradients and feature descriptors are computed. 2

3 Repeatability Noise Standard Deviation Part E: The following plot shows how repeatability varies as the standard deviation of the Gaussian kernel used for blurring is increased. Since large amounts of blurring significantly alter the gradients and consequently the histograms of gradients, the SIFT descriptor changes noticeably as the amount of blurring increases. Of the four types of distortions tested, blurring seems to have the most serious effect on the SIFT descriptor Repeatability MATLAB Code: Blur Kernel Standard Deviation % EE368/CS232 % Homework 7 % Problem: SIFT Robustness % Script by David Chen, Huizhong Chen clc; clear all; run('../../../vlfeat /toolbox/vl_setup.m'); imagefiles = {'building.jpg'}; for nimage = 1:length(imageFiles) % Load image img = imread(imagefiles{nimage}); imggray = rgb2gray(img); peakthresh = 2; edgethresh = 10; 3

4 [f,d] = vl_sift(single(imggray)); disp(sprintf('image %d: %d features', nimage, size(f,2))); [fo,do] = vl_sift(single(imggray), 'Frames', f); [f,d] = reorder_sift_features(f, d, fo, do); figure(1); clf; set(gcf, 'Color', 'w'); imshow(imggray); hold on; h1 = vl_plotframe(f); h2 = vl_plotframe(f); set(h1, 'Color', 'k', 'linewidth', 3); set(h2, 'Color', 'y', 'linewidth', 2); % Study effect of brightness offset featurematches = []; offsetvec = -100 : 20 : 100; for offset = offsetvec % Add brightness offset if offset == 0 imgoffset = imggray; else imgoffset = uint8(double(imggray) + offset); [fo,do] = vl_sift(single(imgoffset), 'Frames', f); % Compare SIFT descriptors matches = vl_ubcmatch(do, d); featurematches(+1) = size(matches,2); % offset figure(2); clf; set(gcf, 'Color', 'w'); maxmatches = size(f,2); h = plot(offsetvec, featurematches/maxmatches, 'b-o'); grid on; set(h, 'LineWidth', 2); set(gca, 'FontSize', 14); xlabel('brightness Offset'); ylabel('repeatability'); axis([min(offsetvec) max(offsetvec) 0 1]); % Study effect of contrast change featurematches = []; gammavec = 0.5 : 0.25 : 2.0; for gamma = gammavec % Adjust contrast if gamma == 0 imggamma = imggray; else imgdouble = im2double(imggray); imggamma = uint8(255*imgdouble.^gamma); [fo,do] = vl_sift(single(imggamma), 'Frames', f); % Compare SIFT descriptors matches = vl_ubcmatch(do, d); featurematches(+1) = size(matches,2); % offset figure(3); clf; set(gcf, 'Color', 'w'); h = plot(gammavec, featurematches/maxmatches, 'b-o'); grid on; set(h, 'LineWidth', 2); set(gca, 'FontSize', 14); xlabel('contrast Gamma'); ylabel('repeatability'); axis([min(gammavec) max(gammavec) 0 1]); % Study effect of adding noise featurematches = []; gaussvarvec = (0:5:30).^2; for gaussvar = gaussvarvec % Add Gaussian noise gaussstd = sqrt(gaussvar); if gaussvar == 0 imgnoise = imggray; 4

5 else noise = gaussstd * (randn(size(imggray)) - 0.5); imgnoise = uint8(double(imggray) + noise); [fo,do] = vl_sift(single(imgnoise), 'Frames', f); % Compare SIFT descriptors matches = vl_ubcmatch(do, d); featurematches(+1) = size(matches,2); % gaussvar figure(4); clf; set(gcf, 'Color', 'w'); h = plot(sqrt(gaussvarvec), featurematches/maxmatches, 'b-o'); grid on; set(h, 'LineWidth', 2); set(gca, 'FontSize', 14); xlabel('noise Standard Deviation'); ylabel('repeatability'); axis([min(sqrt(gaussvarvec)) max(sqrt(gaussvarvec)) 0 1]); % Study effect of blurring featurematches = []; gaussvarvec = (1:10).^2; for gaussvar = gaussvarvec % Filter with Gaussian kernel if gamma == 0 imgblur = imggray; else sigma = sqrt(gaussvar); width = ceil(10*sigma + 1); if mod(width,2) == 0 width = width+1; kernel = fspecial('gaussian', [width width], sigma); imgblur = imfilter(imggray, kernel, 'symmetric'); [fo,do] = vl_sift(single(imgblur), 'Frames', f); % Compare SIFT descriptors matches = vl_ubcmatch(do, d); featurematches(+1) = size(matches,2); % offset figure(5); clf; set(gcf, 'Color', 'w'); h = plot(sqrt(gaussvarvec), featurematches/maxmatches, 'b-o'); grid on; set(h, 'LineWidth', 2); set(gca, 'FontSize', 14); xlabel('blur Kernel Standard Deviation'); ylabel('repeatability'); axis([min(sqrt(gaussvarvec)) max(sqrt(gaussvarvec)) 0 1]); if nimage < length(imagefiles) pause % nimage 5

6 2. Recognition of Posters with Local Image Features Below, we show (1) the query image and the best matching database image, (2) the SIFT features extracted from both images, (3) the feature matches after nearest neighbor search with a distance ratio test, and (4) the feature matches after RANSAC with a homography. Query Image (Left) and Best Matching Database Image (Right) SIFT Features Feature Matches After Distance Ratio Test Feature Matches after RANSAC 6

7 Query Image (Left) and Best Matching Database Image (Right) SIFT Features Feature Matches After Distance Ratio Test Feature Matches After RANSAC 7

8 Query Image (Left) and Best Matching Database Image (Right) SIFT Features Feature Matches After Distance Ratio Test Feature Matches After RANSAC MATLAB Code: % % % % EE368/CS232 Homework 7 Problem: Poster Matching Script by David Chen, Huizhong Chen clc; clear all; run('../../../vlfeat /toolbox/vl_setup'); 8

9 %% Process database dbimagefiles = dir('database/*.jpg'); peakthresh = 1; edgethresh = 10; for nimage = 1:length(dbImageFiles) fprintf('%d: %s \n', nimage, dbimagefiles(nimage).name); % Load and resize image img = imread(['database/' dbimagefiles(nimage).name]); [height,width,channels] = size(img); targetwidth = 800; resizefactor = targetwidth/width; img = imresize(img, resizefactor, 'bicubic'); dbimages{nimage} = img; imggray = rgb2gray(img); [f,d] = vl_sift(single(imggray),... 'PeakThresh', peakthresh, 'EdgeThresh', edgethresh); dbfeatures{nimage}.f = f; dbfeatures{nimage}.d = d; % nimage %% Recognize queries queryimagefiles = {'hw7_poster_1.jpg', 'hw7_poster_2.jpg', 'hw7_poster_3.jpg'}; for nquery = 1:length(queryImageFiles) fprintf('%d: %s \n', nquery, queryimagefiles{nquery}); % Load image img = imread(queryimagefiles{nquery}); imggray = rgb2gray(img); [f,d] = vl_sift(single(imggray),... 'PeakThresh', peakthresh, 'EdgeThresh', edgethresh); qfeatures.f = f; qfeatures.d = d; % Match to database SIFT features maxransacinliers = 0; maxransacinliersimage = -1; for ndatabase = 1:length(dbImageFiles) result = sift_match(img, dbimages{ndatabase},... qfeatures, dbfeatures{ndatabase}); if result.ransac > maxransacinliers maxransacinliers = result.ransac; maxransacinliersimage = ndatabase; % ndatabase sift_match(img, dbimages{maxransacinliersimage},... qfeatures, dbfeatures{maxransacinliersimage}); if nquery < length(queryimagefiles) pause % nquery 9

10 3. Recognition of Paintings with a Vocabulary Tree Below, we show next to each query image, the 10 most similar database images in terms of vocabulary tree scoring. Note that your database ranked lists may be slightly different, due to randomness in the hierarchical k-means clustering. The scores shown are the L1 distances between the query tree histogram and the database tree histograms. For all 5 query images, the top-ranked database image is the correct result. The feature extraction latency is around 0.81 seconds per query, and the retrieval latency is around 0.19 seconds per query. Query Image Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Elapsed time for feature extraction: 0.63 seconds Elapsed time for image retrieval: 0.20 seconds Query Image Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Elapsed time for feature extraction: 0.62 seconds Elapsed time for image retrieval: 0.19 seconds 10

11 Query Image Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Elapsed time for feature extraction: 0.99 seconds Elapsed time for image retrieval: 0.19 seconds Query Image Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Elapsed time for feature extraction: 0.88 seconds Elapsed time for image retrieval: 0.19 seconds 11

12 Query Image Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Database Score: Elapsed time for feature extraction: 0.94 seconds Elapsed time for image retrieval: 0.19 seconds MATLAB Code: % EE368/CS232 % Homework 7 % Problem: Image Retrieval of Paintings % Script by David Chen, Huizhong Chen clc; clear all; run('../../../vlfeat /toolbox/vl_setup.m'); %% Train vocabulary tree k = 10; numleaves = 10000; treefile = 'vocabulary_tree.mat'; if ~exist(treefile, 'file'); load('training_descriptors.mat'); [tree, assign] = vl_hikmeans(uint8(trainingdescriptors), k, numleaves); save(treefile, 'tree'); else load(treefile); %% Extract features for database images peakthresh = 1; edgethresh = 10; databasefeatures = {}; databaseimages = {}; for nimage = 1:91 filename = sprintf('database/%03d.jpg', nimage); img = imread(filename); imggray = rgb2gray(img); databaseimages{+1} = img; [f,d] = vl_sift(single(imggray), 'PeakThresh', peakthresh, 'EdgeThresh', edgethresh); features.f = f; features.d = d; 12

13 databasefeatures{+1} = features; disp(sprintf('database Image %d: %d features', nimage, size(f,2))); % nimage %% Extract features for query images queryfeatures = {}; queryimages = {}; for nimage = 1:5 tic; filename = sprintf('query/%03d.jpg', nimage); img = imread(filename); imggray = rgb2gray(img); queryimages{+1} = img; [f,d] = vl_sift(single(imggray), 'PeakThresh', peakthresh, 'EdgeThresh', edgethresh); features.f = f; features.d = d; queryfeatures{+1} = features; disp(sprintf('query Image %d: %d features', nimage, size(f,2))); toc; % nimage %% Extract tree histograms for database images databasetreehists = {}; for nimage = 1:length(databaseImages) % Quantize descriptors through vocabulary tree treepaths = vl_hikmeanspush(tree, databasefeatures{nimage}.d); % Compute histogram over bins treehist = vl_hikmeanshist(tree, treepaths); databasetreehists{+1} = treehist(-numleaves+1:) /... sum(treehist(-numleaves+1:)); % nimage %% Match query to database by vocabulary tree scoring for nquery = 1:length(queryImages) tic; % Quantize descriptors through vocabulary tree treepaths = vl_hikmeanspush(tree, queryfeatures{nquery}.d); % Compute histogram over bins treehist = vl_hikmeanshist(tree, treepaths); treehist = treehist(-numleaves+1:) / sum(treehist(-numleaves+1:)); % Compare against database histograms scores = zeros(1, length(databaseimages)); for ndatabase = 1:length(databaseImages) scores(ndatabase) = sum(abs(treehist - databasetreehists{ndatabase})); % ndatabase [scores, sortidx] = sort(scores, 'asc'); figure(1); clf; subplot(2,6,1); imshow(queryimages{nquery}); title('query Image'); for ntop = 1:10 subplot(2,6,ntop+1); imshow(databaseimages{sortidx(ntop)}); title(sprintf('database Score: %.3f', scores(ntop))); % ntop toc; if nquery < length(queryimages) pause % nquery 13

EE368/CS232 Digital Image Processing Winter

EE368/CS232 Digital Image Processing Winter EE368/CS232 Digital Image Processing Winter 207-208 Lecture Review and Quizzes (Due: Wednesday, February 28, :30pm) Please review what you have learned in class and then complete the online quiz questions

More information

EE368/CS232 Digital Image Processing Winter Homework #3 Solutions. Part A: Below, we show the binarized versions of the 36 template images.

EE368/CS232 Digital Image Processing Winter Homework #3 Solutions. Part A: Below, we show the binarized versions of the 36 template images. 1. License Plate Recognition EE368/CS232 Digital Image Processing Winter 2017-2018 Homework #3 Solutions Part A: Below, we show the binarized versions of the 36 template images. Below, we show the binarized

More information

EE368/CS232 Digital Image Processing Winter Homework #4 Solutions

EE368/CS232 Digital Image Processing Winter Homework #4 Solutions . Moire Pattern Suppression in Radiographs Part A: EE368/CS232 Digital Image Processing Winter 27-28 Homework #4 Solutions Original Image Median Filtered Image (7x7 window) Original Image Median Filtered

More information

Problem Session #6. EE368/CS232 Digital Image Processing

Problem Session #6. EE368/CS232 Digital Image Processing Problem Session #6 EE368/CS232 Digital Image Processing . Robustness of Harris Keypoints to Rotation and Scaling Part A: Apply a Harris corner detector and threshold the cornerness response so that about

More information

Scale Invariant Feature Transform

Scale Invariant Feature Transform Scale Invariant Feature Transform Why do we care about matching features? Camera calibration Stereo Tracking/SFM Image moiaicing Object/activity Recognition Objection representation and recognition Image

More information

Scale Invariant Feature Transform

Scale Invariant Feature Transform Why do we care about matching features? Scale Invariant Feature Transform Camera calibration Stereo Tracking/SFM Image moiaicing Object/activity Recognition Objection representation and recognition Automatic

More information

Exercise 1: The Scale-Invariant Feature Transform

Exercise 1: The Scale-Invariant Feature Transform Exercise 1: The Scale-Invariant Feature Transform August 9, 2010 1 Introduction The Scale-Invariant Feature Transform (SIFT) is a method for the detection and description of interest points developed by

More information

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science.

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science. Colorado School of Mines Computer Vision Professor William Hoff Dept of Electrical Engineering &Computer Science http://inside.mines.edu/~whoff/ 1 Vlfeat and SIFT Examples 2 Matlab code http://www.vlfeat.org

More information

CS 4495 Computer Vision A. Bobick. CS 4495 Computer Vision. Features 2 SIFT descriptor. Aaron Bobick School of Interactive Computing

CS 4495 Computer Vision A. Bobick. CS 4495 Computer Vision. Features 2 SIFT descriptor. Aaron Bobick School of Interactive Computing CS 4495 Computer Vision Features 2 SIFT descriptor Aaron Bobick School of Interactive Computing Administrivia PS 3: Out due Oct 6 th. Features recap: Goal is to find corresponding locations in two images.

More information

SCALE INVARIANT FEATURE TRANSFORM (SIFT)

SCALE INVARIANT FEATURE TRANSFORM (SIFT) 1 SCALE INVARIANT FEATURE TRANSFORM (SIFT) OUTLINE SIFT Background SIFT Extraction Application in Content Based Image Search Conclusion 2 SIFT BACKGROUND Scale-invariant feature transform SIFT: to detect

More information

Scale Invariant Feature Transform by David Lowe

Scale Invariant Feature Transform by David Lowe Scale Invariant Feature Transform by David Lowe Presented by: Jerry Chen Achal Dave Vaishaal Shankar Some slides from Jason Clemons Motivation Image Matching Correspondence Problem Desirable Feature Characteristics

More information

SUMMARY: DISTINCTIVE IMAGE FEATURES FROM SCALE- INVARIANT KEYPOINTS

SUMMARY: DISTINCTIVE IMAGE FEATURES FROM SCALE- INVARIANT KEYPOINTS SUMMARY: DISTINCTIVE IMAGE FEATURES FROM SCALE- INVARIANT KEYPOINTS Cognitive Robotics Original: David G. Lowe, 004 Summary: Coen van Leeuwen, s1460919 Abstract: This article presents a method to extract

More information

Feature descriptors. Alain Pagani Prof. Didier Stricker. Computer Vision: Object and People Tracking

Feature descriptors. Alain Pagani Prof. Didier Stricker. Computer Vision: Object and People Tracking Feature descriptors Alain Pagani Prof. Didier Stricker Computer Vision: Object and People Tracking 1 Overview Previous lectures: Feature extraction Today: Gradiant/edge Points (Kanade-Tomasi + Harris)

More information

SIFT - scale-invariant feature transform Konrad Schindler

SIFT - scale-invariant feature transform Konrad Schindler SIFT - scale-invariant feature transform Konrad Schindler Institute of Geodesy and Photogrammetry Invariant interest points Goal match points between images with very different scale, orientation, projective

More information

Obtaining Feature Correspondences

Obtaining Feature Correspondences Obtaining Feature Correspondences Neill Campbell May 9, 2008 A state-of-the-art system for finding objects in images has recently been developed by David Lowe. The algorithm is termed the Scale-Invariant

More information

EE368 Project Report CD Cover Recognition Using Modified SIFT Algorithm

EE368 Project Report CD Cover Recognition Using Modified SIFT Algorithm EE368 Project Report CD Cover Recognition Using Modified SIFT Algorithm Group 1: Mina A. Makar Stanford University mamakar@stanford.edu Abstract In this report, we investigate the application of the Scale-Invariant

More information

Local Features Tutorial: Nov. 8, 04

Local Features Tutorial: Nov. 8, 04 Local Features Tutorial: Nov. 8, 04 Local Features Tutorial References: Matlab SIFT tutorial (from course webpage) Lowe, David G. Distinctive Image Features from Scale Invariant Features, International

More information

Key properties of local features

Key properties of local features Key properties of local features Locality, robust against occlusions Must be highly distinctive, a good feature should allow for correct object identification with low probability of mismatch Easy to etract

More information

CS231A Section 6: Problem Set 3

CS231A Section 6: Problem Set 3 CS231A Section 6: Problem Set 3 Kevin Wong Review 6 -! 1 11/09/2012 Announcements PS3 Due 2:15pm Tuesday, Nov 13 Extra Office Hours: Friday 6 8pm Huang Common Area, Basement Level. Review 6 -! 2 Topics

More information

2D Image Processing Feature Descriptors

2D Image Processing Feature Descriptors 2D Image Processing Feature Descriptors Prof. Didier Stricker Kaiserlautern University http://ags.cs.uni-kl.de/ DFKI Deutsches Forschungszentrum für Künstliche Intelligenz http://av.dfki.de 1 Overview

More information

Features Points. Andrea Torsello DAIS Università Ca Foscari via Torino 155, Mestre (VE)

Features Points. Andrea Torsello DAIS Università Ca Foscari via Torino 155, Mestre (VE) Features Points Andrea Torsello DAIS Università Ca Foscari via Torino 155, 30172 Mestre (VE) Finding Corners Edge detectors perform poorly at corners. Corners provide repeatable points for matching, so

More information

SIFT: SCALE INVARIANT FEATURE TRANSFORM SURF: SPEEDED UP ROBUST FEATURES BASHAR ALSADIK EOS DEPT. TOPMAP M13 3D GEOINFORMATION FROM IMAGES 2014

SIFT: SCALE INVARIANT FEATURE TRANSFORM SURF: SPEEDED UP ROBUST FEATURES BASHAR ALSADIK EOS DEPT. TOPMAP M13 3D GEOINFORMATION FROM IMAGES 2014 SIFT: SCALE INVARIANT FEATURE TRANSFORM SURF: SPEEDED UP ROBUST FEATURES BASHAR ALSADIK EOS DEPT. TOPMAP M13 3D GEOINFORMATION FROM IMAGES 2014 SIFT SIFT: Scale Invariant Feature Transform; transform image

More information

CS 223B Computer Vision Problem Set 3

CS 223B Computer Vision Problem Set 3 CS 223B Computer Vision Problem Set 3 Due: Feb. 22 nd, 2011 1 Probabilistic Recursion for Tracking In this problem you will derive a method for tracking a point of interest through a sequence of images.

More information

Object recognition of Glagolitic characters using Sift and Ransac

Object recognition of Glagolitic characters using Sift and Ransac Object recognition of Glagolitic characters using Sift and Ransac Images in database: Glagolitic alphabet characters. Algorithm 1) Prepare a database of images. Images characteristics : 1. Scale changed

More information

Determinant of homography-matrix-based multiple-object recognition

Determinant of homography-matrix-based multiple-object recognition Determinant of homography-matrix-based multiple-object recognition 1 Nagachetan Bangalore, Madhu Kiran, Anil Suryaprakash Visio Ingenii Limited F2-F3 Maxet House Liverpool Road Luton, LU1 1RS United Kingdom

More information

Classifying Images with Visual/Textual Cues. By Steven Kappes and Yan Cao

Classifying Images with Visual/Textual Cues. By Steven Kappes and Yan Cao Classifying Images with Visual/Textual Cues By Steven Kappes and Yan Cao Motivation Image search Building large sets of classified images Robotics Background Object recognition is unsolved Deformable shaped

More information

Computational Optical Imaging - Optique Numerique. -- Multiple View Geometry and Stereo --

Computational Optical Imaging - Optique Numerique. -- Multiple View Geometry and Stereo -- Computational Optical Imaging - Optique Numerique -- Multiple View Geometry and Stereo -- Winter 2013 Ivo Ihrke with slides by Thorsten Thormaehlen Feature Detection and Matching Wide-Baseline-Matching

More information

CS 231A Computer Vision (Winter 2014) Problem Set 3

CS 231A Computer Vision (Winter 2014) Problem Set 3 CS 231A Computer Vision (Winter 2014) Problem Set 3 Due: Feb. 18 th, 2015 (11:59pm) 1 Single Object Recognition Via SIFT (45 points) In his 2004 SIFT paper, David Lowe demonstrates impressive object recognition

More information

Building a Panorama. Matching features. Matching with Features. How do we build a panorama? Computational Photography, 6.882

Building a Panorama. Matching features. Matching with Features. How do we build a panorama? Computational Photography, 6.882 Matching features Building a Panorama Computational Photography, 6.88 Prof. Bill Freeman April 11, 006 Image and shape descriptors: Harris corner detectors and SIFT features. Suggested readings: Mikolajczyk

More information

CS 231A Computer Vision (Winter 2018) Problem Set 3

CS 231A Computer Vision (Winter 2018) Problem Set 3 CS 231A Computer Vision (Winter 2018) Problem Set 3 Due: Feb 28, 2018 (11:59pm) 1 Space Carving (25 points) Dense 3D reconstruction is a difficult problem, as tackling it from the Structure from Motion

More information

Object Recognition with Invariant Features

Object Recognition with Invariant Features Object Recognition with Invariant Features Definition: Identify objects or scenes and determine their pose and model parameters Applications Industrial automation and inspection Mobile robots, toys, user

More information

CS 231A Computer Vision (Fall 2012) Problem Set 3

CS 231A Computer Vision (Fall 2012) Problem Set 3 CS 231A Computer Vision (Fall 2012) Problem Set 3 Due: Nov. 13 th, 2012 (2:15pm) 1 Probabilistic Recursion for Tracking (20 points) In this problem you will derive a method for tracking a point of interest

More information

Evaluation and comparison of interest points/regions

Evaluation and comparison of interest points/regions Introduction Evaluation and comparison of interest points/regions Quantitative evaluation of interest point/region detectors points / regions at the same relative location and area Repeatability rate :

More information

Introduction. Introduction. Related Research. SIFT method. SIFT method. Distinctive Image Features from Scale-Invariant. Scale.

Introduction. Introduction. Related Research. SIFT method. SIFT method. Distinctive Image Features from Scale-Invariant. Scale. Distinctive Image Features from Scale-Invariant Keypoints David G. Lowe presented by, Sudheendra Invariance Intensity Scale Rotation Affine View point Introduction Introduction SIFT (Scale Invariant Feature

More information

Local Features: Detection, Description & Matching

Local Features: Detection, Description & Matching Local Features: Detection, Description & Matching Lecture 08 Computer Vision Material Citations Dr George Stockman Professor Emeritus, Michigan State University Dr David Lowe Professor, University of British

More information

EECS150 - Digital Design Lecture 14 FIFO 2 and SIFT. Recap and Outline

EECS150 - Digital Design Lecture 14 FIFO 2 and SIFT. Recap and Outline EECS150 - Digital Design Lecture 14 FIFO 2 and SIFT Oct. 15, 2013 Prof. Ronald Fearing Electrical Engineering and Computer Sciences University of California, Berkeley (slides courtesy of Prof. John Wawrzynek)

More information

Fast Image Matching Using Multi-level Texture Descriptor

Fast Image Matching Using Multi-level Texture Descriptor Fast Image Matching Using Multi-level Texture Descriptor Hui-Fuang Ng *, Chih-Yang Lin #, and Tatenda Muindisi * Department of Computer Science, Universiti Tunku Abdul Rahman, Malaysia. E-mail: nghf@utar.edu.my

More information

A Comparison of SIFT, PCA-SIFT and SURF

A Comparison of SIFT, PCA-SIFT and SURF A Comparison of SIFT, PCA-SIFT and SURF Luo Juan Computer Graphics Lab, Chonbuk National University, Jeonju 561-756, South Korea qiuhehappy@hotmail.com Oubong Gwun Computer Graphics Lab, Chonbuk National

More information

ECE 661 HW # 5 Joonsoo Kim(PUID : )

ECE 661 HW # 5 Joonsoo Kim(PUID : ) ECE 661 HW # 5 Joonsoo Kim(PUID : 00258 41316) Email : kim1449@purdue.edu 10-16-2014 1. Finding corresponding points based on SIFT between 2 images. In this experiment, we used SIFT features and descriptors

More information

Feature descriptors and matching

Feature descriptors and matching Feature descriptors and matching Detections at multiple scales Invariance of MOPS Intensity Scale Rotation Color and Lighting Out-of-plane rotation Out-of-plane rotation Better representation than color:

More information

Shape Context Matching For Efficient OCR

Shape Context Matching For Efficient OCR Matching For Efficient OCR May 14, 2012 Matching For Efficient OCR Table of contents 1 Motivation Background 2 What is a? Matching s Simliarity Measure 3 Matching s via Pyramid Matching Matching For Efficient

More information

Feature Matching and Robust Fitting

Feature Matching and Robust Fitting Feature Matching and Robust Fitting Computer Vision CS 143, Brown Read Szeliski 4.1 James Hays Acknowledgment: Many slides from Derek Hoiem and Grauman&Leibe 2008 AAAI Tutorial Project 2 questions? This

More information

LOCAL AND GLOBAL DESCRIPTORS FOR PLACE RECOGNITION IN ROBOTICS

LOCAL AND GLOBAL DESCRIPTORS FOR PLACE RECOGNITION IN ROBOTICS 8th International DAAAM Baltic Conference "INDUSTRIAL ENGINEERING - 19-21 April 2012, Tallinn, Estonia LOCAL AND GLOBAL DESCRIPTORS FOR PLACE RECOGNITION IN ROBOTICS Shvarts, D. & Tamre, M. Abstract: The

More information

Computer Vision. Recap: Smoothing with a Gaussian. Recap: Effect of σ on derivatives. Computer Science Tripos Part II. Dr Christopher Town

Computer Vision. Recap: Smoothing with a Gaussian. Recap: Effect of σ on derivatives. Computer Science Tripos Part II. Dr Christopher Town Recap: Smoothing with a Gaussian Computer Vision Computer Science Tripos Part II Dr Christopher Town Recall: parameter σ is the scale / width / spread of the Gaussian kernel, and controls the amount of

More information

3D Object Recognition using Multiclass SVM-KNN

3D Object Recognition using Multiclass SVM-KNN 3D Object Recognition using Multiclass SVM-KNN R. Muralidharan, C. Chandradekar April 29, 2014 Presented by: Tasadduk Chowdhury Problem We address the problem of recognizing 3D objects based on various

More information

Copy and paste your LTspice schematic, your MATLAB code, and resulting plots to the document you submit. Please do not use screen capture.

Copy and paste your LTspice schematic, your MATLAB code, and resulting plots to the document you submit. Please do not use screen capture. ECE1 Project Fall 11 First-order project This is a three-part project assignment. This assignment uses the same voltage source as was used in Project 5. The grading total for the 3 parts will be: Part

More information

CAP 5415 Computer Vision Fall 2012

CAP 5415 Computer Vision Fall 2012 CAP 5415 Computer Vision Fall 01 Dr. Mubarak Shah Univ. of Central Florida Office 47-F HEC Lecture-5 SIFT: David Lowe, UBC SIFT - Key Point Extraction Stands for scale invariant feature transform Patented

More information

Implementing the Scale Invariant Feature Transform(SIFT) Method

Implementing the Scale Invariant Feature Transform(SIFT) Method Implementing the Scale Invariant Feature Transform(SIFT) Method YU MENG and Dr. Bernard Tiddeman(supervisor) Department of Computer Science University of St. Andrews yumeng@dcs.st-and.ac.uk Abstract The

More information

Matlab Tutorial. Session 2. SIFT. Gonzalo Vaca-Castano

Matlab Tutorial. Session 2. SIFT. Gonzalo Vaca-Castano Matlab Tutorial. Session 2. SIFT Gonzalo Vaca-Castano Sift purpose Find and describe interest points invariants to: Scale Rotation Illumination Viewpoint Do it Yourself Constructing a scale space LoG Approximation

More information

A Tutorial on VLFeat

A Tutorial on VLFeat A Tutorial on VLFeat Antonino Furnari Image Processing Lab Dipartimento di Matematica e Informatica Università degli Studi di Catania furnari@dmi.unict.it 17/04/2014 MATLAB & Computer Vision 2 MATLAB offers

More information

IMAGE-GUIDED TOURS: FAST-APPROXIMATED SIFT WITH U-SURF FEATURES

IMAGE-GUIDED TOURS: FAST-APPROXIMATED SIFT WITH U-SURF FEATURES IMAGE-GUIDED TOURS: FAST-APPROXIMATED SIFT WITH U-SURF FEATURES Eric Chu, Erin Hsu, Sandy Yu Department of Electrical Engineering Stanford University {echu508, erinhsu, snowy}@stanford.edu Abstract In

More information

Chapter 3 Image Registration. Chapter 3 Image Registration

Chapter 3 Image Registration. Chapter 3 Image Registration Chapter 3 Image Registration Distributed Algorithms for Introduction (1) Definition: Image Registration Input: 2 images of the same scene but taken from different perspectives Goal: Identify transformation

More information

SIFT Descriptor Extraction on the GPU for Large-Scale Video Analysis. Hannes Fassold, Jakub Rosner

SIFT Descriptor Extraction on the GPU for Large-Scale Video Analysis. Hannes Fassold, Jakub Rosner SIFT Descriptor Extraction on the GPU for Large-Scale Video Analysis Hannes Fassold, Jakub Rosner 2014-03-26 2 Overview GPU-activities @ AVM research group SIFT descriptor extraction Algorithm GPU implementation

More information

Identification of Paintings in Camera-Phone Images

Identification of Paintings in Camera-Phone Images Identification of Paintings in Camera-Phone Images Gabriel M. Hoffmann, Peter W. Kimball, Stephen P. Russell Department of Aeronautics and Astronautics Stanford University, Stanford, CA 94305 {gabeh,pkimball,sprussell}@stanford.edu

More information

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong) Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong) References: [1] http://homepages.inf.ed.ac.uk/rbf/hipr2/index.htm [2] http://www.cs.wisc.edu/~dyer/cs540/notes/vision.html

More information

Lecture 4.1 Feature descriptors. Trym Vegard Haavardsholm

Lecture 4.1 Feature descriptors. Trym Vegard Haavardsholm Lecture 4.1 Feature descriptors Trym Vegard Haavardsholm Feature descriptors Histogram of Gradients (HoG) descriptors Binary descriptors 2 Histogram of Gradients (HOG) descriptors Scale Invariant Feature

More information

TA Section 7 Problem Set 3. SIFT (Lowe 2004) Shape Context (Belongie et al. 2002) Voxel Coloring (Seitz and Dyer 1999)

TA Section 7 Problem Set 3. SIFT (Lowe 2004) Shape Context (Belongie et al. 2002) Voxel Coloring (Seitz and Dyer 1999) TA Section 7 Problem Set 3 SIFT (Lowe 2004) Shape Context (Belongie et al. 2002) Voxel Coloring (Seitz and Dyer 1999) Sam Corbett-Davies TA Section 7 02-13-2014 Distinctive Image Features from Scale-Invariant

More information

Image Matching. AKA: Image registration, the correspondence problem, Tracking,

Image Matching. AKA: Image registration, the correspondence problem, Tracking, Image Matching AKA: Image registration, the correspondence problem, Tracking, What Corresponds to What? Daisy? Daisy From: www.amphian.com Relevant for Analysis of Image Pairs (or more) Also Relevant for

More information

Image Features: Local Descriptors. Sanja Fidler CSC420: Intro to Image Understanding 1/ 58

Image Features: Local Descriptors. Sanja Fidler CSC420: Intro to Image Understanding 1/ 58 Image Features: Local Descriptors Sanja Fidler CSC420: Intro to Image Understanding 1/ 58 [Source: K. Grauman] Sanja Fidler CSC420: Intro to Image Understanding 2/ 58 Local Features Detection: Identify

More information

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

CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt. CEE598 - Visual Sensing for Civil Infrastructure Eng. & Mgmt. Section 10 - Detectors part II Descriptors Mani Golparvar-Fard Department of Civil and Environmental Engineering 3129D, Newmark Civil Engineering

More information

Pictures at an Exhibition: EE368 Project

Pictures at an Exhibition: EE368 Project Pictures at an Exhibition: EE368 Project Jacob Mattingley Stanford University jacobm@stanford.edu Abstract This report presents an algorithm which matches photographs of paintings to a small database.

More information

Eppur si muove ( And yet it moves )

Eppur si muove ( And yet it moves ) Eppur si muove ( And yet it moves ) - Galileo Galilei University of Texas at Arlington Tracking of Image Features CSE 4392-5369 Vision-based Robot Sensing, Localization and Control Dr. Gian Luca Mariottini,

More information

CS 556: Computer Vision. Lecture 2

CS 556: Computer Vision. Lecture 2 CS 556: Computer Vision Lecture 2 Prof. Sinisa Todorovic sinisa@eecs.oregonstate.edu 1 Basic MATLAB Commands imread size whos imshow imwrite im2double rgb2gray, im2uint8, im2bw img1 = img(1:end-4,:), img1

More information

Feature-based methods for image matching

Feature-based methods for image matching Feature-based methods for image matching Bag of Visual Words approach Feature descriptors SIFT descriptor SURF descriptor Geometric consistency check Vocabulary tree Digital Image Processing: Bernd Girod,

More information

Augmented Reality VU. Computer Vision 3D Registration (2) Prof. Vincent Lepetit

Augmented Reality VU. Computer Vision 3D Registration (2) Prof. Vincent Lepetit Augmented Reality VU Computer Vision 3D Registration (2) Prof. Vincent Lepetit Feature Point-Based 3D Tracking Feature Points for 3D Tracking Much less ambiguous than edges; Point-to-point reprojection

More information

Mobile Visual Search with Word-HOG Descriptors

Mobile Visual Search with Word-HOG Descriptors Mobile Visual Search with Word-HOG Descriptors Sam S. Tsai, Huizhong Chen, David M. Chen, and Bernd Girod Department of Electrical Engineering, Stanford University, Stanford, CA, 9435 sstsai@alumni.stanford.edu,

More information

PS3 Review Session. Kuan Fang CS231A 02/16/2018

PS3 Review Session. Kuan Fang CS231A 02/16/2018 PS3 Review Session Kuan Fang CS231A 02/16/2018 Overview Space carving Single Object Recognition via SIFT Histogram of Oriented Gradients (HOG) Space Carving Objective: Implement the process of space carving.

More information

Ulas Bagci

Ulas Bagci CAP5415- Computer Vision Lecture 5 and 6- Finding Features, Affine Invariance, SIFT Ulas Bagci bagci@ucf.edu 1 Outline Concept of Scale Pyramids Scale- space approaches briefly Scale invariant region selecqon

More information

Outline 7/2/201011/6/

Outline 7/2/201011/6/ Outline Pattern recognition in computer vision Background on the development of SIFT SIFT algorithm and some of its variations Computational considerations (SURF) Potential improvement Summary 01 2 Pattern

More information

Pictures at an Exhibition

Pictures at an Exhibition Pictures at an Exhibition Han-I Su Department of Electrical Engineering Stanford University, CA, 94305 Abstract We employ an image identification algorithm for interactive museum guide with pictures taken

More information

A NEW FEATURE BASED IMAGE REGISTRATION ALGORITHM INTRODUCTION

A NEW FEATURE BASED IMAGE REGISTRATION ALGORITHM INTRODUCTION A NEW FEATURE BASED IMAGE REGISTRATION ALGORITHM Karthik Krish Stuart Heinrich Wesley E. Snyder Halil Cakir Siamak Khorram North Carolina State University Raleigh, 27695 kkrish@ncsu.edu sbheinri@ncsu.edu

More information

A Keypoint Descriptor Inspired by Retinal Computation

A Keypoint Descriptor Inspired by Retinal Computation A Keypoint Descriptor Inspired by Retinal Computation Bongsoo Suh, Sungjoon Choi, Han Lee Stanford University {bssuh,sungjoonchoi,hanlee}@stanford.edu Abstract. The main goal of our project is to implement

More information

CS 4495 Computer Vision. Linear Filtering 2: Templates, Edges. Aaron Bobick. School of Interactive Computing. Templates/Edges

CS 4495 Computer Vision. Linear Filtering 2: Templates, Edges. Aaron Bobick. School of Interactive Computing. Templates/Edges CS 4495 Computer Vision Linear Filtering 2: Templates, Edges Aaron Bobick School of Interactive Computing Last time: Convolution Convolution: Flip the filter in both dimensions (right to left, bottom to

More information

Image Processing Fundamentals. Nicolas Vazquez Principal Software Engineer National Instruments

Image Processing Fundamentals. Nicolas Vazquez Principal Software Engineer National Instruments Image Processing Fundamentals Nicolas Vazquez Principal Software Engineer National Instruments Agenda Objectives and Motivations Enhancing Images Checking for Presence Locating Parts Measuring Features

More information

ECS 189G: Intro to Computer Vision, Spring 2015 Problem Set 3

ECS 189G: Intro to Computer Vision, Spring 2015 Problem Set 3 ECS 189G: Intro to Computer Vision, Spring 2015 Problem Set 3 Instructor: Yong Jae Lee (yjlee@cs.ucdavis.edu) TA: Ahsan Abdullah (aabdullah@ucdavis.edu) TA: Vivek Dubey (vvkdubey@ucdavis.edu) Due: Wednesday,

More information

Feature Detection. Raul Queiroz Feitosa. 3/30/2017 Feature Detection 1

Feature Detection. Raul Queiroz Feitosa. 3/30/2017 Feature Detection 1 Feature Detection Raul Queiroz Feitosa 3/30/2017 Feature Detection 1 Objetive This chapter discusses the correspondence problem and presents approaches to solve it. 3/30/2017 Feature Detection 2 Outline

More information

The SIFT (Scale Invariant Feature

The SIFT (Scale Invariant Feature The SIFT (Scale Invariant Feature Transform) Detector and Descriptor developed by David Lowe University of British Columbia Initial paper ICCV 1999 Newer journal paper IJCV 2004 Review: Matt Brown s Canonical

More information

Patch-based Object Recognition. Basic Idea

Patch-based Object Recognition. Basic Idea Patch-based Object Recognition 1! Basic Idea Determine interest points in image Determine local image properties around interest points Use local image properties for object classification Example: Interest

More information

Selection of Scale-Invariant Parts for Object Class Recognition

Selection of Scale-Invariant Parts for Object Class Recognition Selection of Scale-Invariant Parts for Object Class Recognition Gy. Dorkó and C. Schmid INRIA Rhône-Alpes, GRAVIR-CNRS 655, av. de l Europe, 3833 Montbonnot, France fdorko,schmidg@inrialpes.fr Abstract

More information

FAIR: Towards A New Feature for Affinely-Invariant Recognition

FAIR: Towards A New Feature for Affinely-Invariant Recognition FAIR: Towards A New Feature for Affinely-Invariant Recognition Radim Šára, Martin Matoušek Czech Technical University Center for Machine Perception Karlovo nam 3, CZ-235 Prague, Czech Republic {sara,xmatousm}@cmp.felk.cvut.cz

More information

Motion illusion, rotating snakes

Motion illusion, rotating snakes Motion illusion, rotating snakes Local features: main components 1) Detection: Find a set of distinctive key points. 2) Description: Extract feature descriptor around each interest point as vector. x 1

More information

Comparison of Feature Detection and Matching Approaches: SIFT and SURF

Comparison of Feature Detection and Matching Approaches: SIFT and SURF GRD Journals- Global Research and Development Journal for Engineering Volume 2 Issue 4 March 2017 ISSN: 2455-5703 Comparison of Detection and Matching Approaches: SIFT and SURF Darshana Mistry PhD student

More information

Recognition. Topics that we will try to cover:

Recognition. Topics that we will try to cover: Recognition Topics that we will try to cover: Indexing for fast retrieval (we still owe this one) Object classification (we did this one already) Neural Networks Object class detection Hough-voting techniques

More information

Image Processing. Image Features

Image Processing. Image Features Image Processing Image Features Preliminaries 2 What are Image Features? Anything. What they are used for? Some statements about image fragments (patches) recognition Search for similar patches matching

More information

Edge and Texture. CS 554 Computer Vision Pinar Duygulu Bilkent University

Edge and Texture. CS 554 Computer Vision Pinar Duygulu Bilkent University Edge and Texture CS 554 Computer Vision Pinar Duygulu Bilkent University Filters for features Previously, thinking of filtering as a way to remove or reduce noise Now, consider how filters will allow us

More information

Instance-level recognition

Instance-level recognition Instance-level recognition 1) Local invariant features 2) Matching and recognition with local features 3) Efficient visual search 4) Very large scale indexing Matching of descriptors Matching and 3D reconstruction

More information

Recognition of Degraded Handwritten Characters Using Local Features. Markus Diem and Robert Sablatnig

Recognition of Degraded Handwritten Characters Using Local Features. Markus Diem and Robert Sablatnig Recognition of Degraded Handwritten Characters Using Local Features Markus Diem and Robert Sablatnig Glagotica the oldest slavonic alphabet Saint Catherine's Monastery, Mount Sinai Challenges in interpretation

More information

Instance-level recognition

Instance-level recognition Instance-level recognition 1) Local invariant features 2) Matching and recognition with local features 3) Efficient visual search 4) Very large scale indexing Matching of descriptors Matching and 3D reconstruction

More information

Local invariant features

Local invariant features Local invariant features Tuesday, Oct 28 Kristen Grauman UT-Austin Today Some more Pset 2 results Pset 2 returned, pick up solutions Pset 3 is posted, due 11/11 Local invariant features Detection of interest

More information

Multi-resolution image recognition. Jean-Baptiste Boin Roland Angst David Chen Bernd Girod

Multi-resolution image recognition. Jean-Baptiste Boin Roland Angst David Chen Bernd Girod Jean-Baptiste Boin Roland Angst David Chen Bernd Girod 1 Scale distribution Outline Presentation of two different approaches and experiments Analysis of previous results 2 Motivation Typical image retrieval

More information

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science.

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science. Professor William Hoff Dept of Electrical Engineering &Computer Science http://inside.mines.edu/~whoff/ 1 Object Recognition in Large Databases Some material for these slides comes from www.cs.utexas.edu/~grauman/courses/spring2011/slides/lecture18_index.pptx

More information

Novelty Detection from an Ego- Centric Perspective

Novelty Detection from an Ego- Centric Perspective Novelty Detection from an Ego- Centric Perspective Omid Aghazadeh, Josephine Sullivan, and Stefan Carlsson Presented by Randall Smith 1 Outline Introduction Sequence Alignment Appearance Based Cues Geometric

More information

Object Classification Problem

Object Classification Problem HIERARCHICAL OBJECT CATEGORIZATION" Gregory Griffin and Pietro Perona. Learning and Using Taxonomies For Fast Visual Categorization. CVPR 2008 Marcin Marszalek and Cordelia Schmid. Constructing Category

More information

Beyond bags of Features

Beyond bags of Features Beyond bags of Features Spatial Pyramid Matching for Recognizing Natural Scene Categories Camille Schreck, Romain Vavassori Ensimag December 14, 2012 Schreck, Vavassori (Ensimag) Beyond bags of Features

More information

Local Image Features

Local Image Features Local Image Features Computer Vision Read Szeliski 4.1 James Hays Acknowledgment: Many slides from Derek Hoiem and Grauman&Leibe 2008 AAAI Tutorial Flashed Face Distortion 2nd Place in the 8th Annual Best

More information

ECE 662:Pattern Recognition and Decision-Making Processes Homework Assignment Two *************

ECE 662:Pattern Recognition and Decision-Making Processes Homework Assignment Two ************* ECE 662:Pattern Recognition and Decision-Making Processes Homework Assignment Two ************* Collaborators: None April 16, 28 1 1 Question 1: Numerical Experiments with the Fisher Linear discriminant

More information

Patch Descriptors. CSE 455 Linda Shapiro

Patch Descriptors. CSE 455 Linda Shapiro Patch Descriptors CSE 455 Linda Shapiro How can we find corresponding points? How can we find correspondences? How do we describe an image patch? How do we describe an image patch? Patches with similar

More information

CS4670: Computer Vision

CS4670: Computer Vision CS4670: Computer Vision Noah Snavely Lecture 6: Feature matching and alignment Szeliski: Chapter 6.1 Reading Last time: Corners and blobs Scale-space blob detector: Example Feature descriptors We know

More information

Local features: detection and description. Local invariant features

Local features: detection and description. Local invariant features Local features: detection and description Local invariant features Detection of interest points Harris corner detection Scale invariant blob detection: LoG Description of local patches SIFT : Histograms

More information

Exercise 4: Image Retrieval with Vocabulary Trees

Exercise 4: Image Retrieval with Vocabulary Trees High-Level Computer Vision Summer Semester 2014 Prof. Bernt Schiele, Dr. Mario Fritz Dr. Fabio Galasso, Dr. Zeynep Akata Exercise 4: Image

More information