lecture 7: features part 2

Download Lecture 7: Features Part 2

If you can't read please download the document

Upload: magnar

Post on 07-Jan-2016

34 views

Category:

Documents


5 download

DESCRIPTION

CS4670/5670: Computer Vision. Noah Snavely. Lecture 7: Features Part 2. Reading. Szeliski: 4.1. Harris Detector: Invariance Properties. Rotation. Ellipse rotates but its shape (i.e. eigenvalues) remains the same. Corner response is invariant to image rotation. R. R. x (image coordinate). - PowerPoint PPT Presentation

TRANSCRIPT

  • Lecture 7: Features Part 2CS4670/5670: Computer VisionNoah Snavely

  • ReadingSzeliski: 4.1

  • Harris Detector: Invariance PropertiesRotationEllipse rotates but its shape (i.e. eigenvalues) remains the sameCorner response is invariant to image rotation

  • Harris Detector: Invariance PropertiesAffine intensity change: I aI + b Only derivatives are used => invariance to intensity shift I I + b Intensity scale: I a IPartially invariant to affine intensity change

  • Harris Detector: Invariance PropertiesScalingAll points will be classified as edgesCornerNot invariant to scaling

  • Scale invariant detectionSuppose youre looking for corners

    Key idea: find scale that gives local maximum of fin both position and scaleOne definition of f: the Harris operator

  • Slide from Tinne TuytelaarsLindeberg et al, 1996Slide from Tinne TuytelaarsLindeberg et al., 1996

  • ImplementationInstead of computing f for larger and larger windows, we can implement using a fixed window size with a Gaussian pyramid(sometimes need to create in-between levels, e.g. a -size image)

  • Another common definition of fThe Laplacian of Gaussian (LoG) (very similar to a Difference of Gaussians (DoG) i.e. a Gaussian minus a slightly smaller Gaussian)

  • Laplacian of GaussianBlob detector

    Find maxima and minima of LoG operator in space and scale*=maximumminima

  • Scale selectionAt what scale does the Laplacian achieve a maximum response for a binary circle of radius r?rimageLaplacian

  • Characteristic scaleWe define the characteristic scale as the scale that produces peak of Laplacian responsecharacteristic scaleT. Lindeberg (1998). "Feature detection with automatic scale selection." International Journal of Computer Vision 30 (2): pp 77--116.

  • Scale-space blob detector: Example

  • Scale-space blob detector: Example

  • Scale-space blob detector: Example

  • Questions?

  • Feature descriptors

  • Feature descriptorsWe know how to detect good pointsNext question: How to match them?

    Answer: Come up with a descriptor for each point, find similar descriptors between the two images

    ?

  • Feature descriptorsWe know how to detect good pointsNext question: How to match them?

    Lots of possibilities (this is a popular research area)Simple option: match square windows around the pointState of the art approach: SIFTDavid Lowe, UBC http://www.cs.ubc.ca/~lowe/keypoints/

    ?

  • Invariance vs. discriminabilityInvariance:Descriptor shouldnt change even if image is transformed

    Discriminability:Descriptor should be highly unique for each point

  • Image transformationsGeometric

    Rotation

    Scale Photometric Intensity change

  • InvarianceSuppose we are comparing two images I1 and I2I2 may be a transformed version of I1What kinds of transformations are we likely to encounter in practice?

  • InvarianceMost feature descriptors are designed to be invariant to Translation, 2D rotation, scale

    They can usually also handleLimited 3D rotations (SIFT works up to about 60 degrees)Limited affine transformations (some are fully affine invariant)Limited illumination/contrast changes

  • How to achieve invarianceNeed both of the following:Make sure your detector is invariant2. Design an invariant feature descriptorSimplest descriptor: a single 0Whats this invariant to?Next simplest descriptor: a square window of pixels Whats this invariant to?Lets look at some better approaches

  • Find dominant orientation of the image patchThis could be computed in several ways:xmax, the eigenvector of H corresponding to max (what could go wrong?)Smoothed gradient direction at the center pointRotate the patch according to this angleRotation invariance for feature descriptorsFigure by Matthew Brown

  • Take 40x40 square window around detected featureScale to 1/5 size (using prefiltering)Rotate to horizontalSample 8x8 square window centered at featureIntensity normalize the window by subtracting the mean, dividing by the standard deviation in the windowCSE 576: Computer VisionMultiscale Oriented PatcheS descriptor8 pixels40 pixelsAdapted from slide by Matthew Brown

    CSE 576: Computer Vision

  • Detections at multiple scales

  • Basic idea:Take 16x16 square window around detected featureCompute edge orientation (angle of the gradient - 90) for each pixelThrow out weak edges (threshold gradient magnitude)Create histogram of surviving edge orientationsScale Invariant Feature TransformAdapted from slide by David Loweangle histogram

  • SIFT descriptorFull versionDivide the 16x16 window into a 4x4 grid of cells (2x2 case shown below)Compute an orientation histogram for each cell16 cells * 8 orientations = 128 dimensional descriptor

    Adapted from slide by David Lowe

  • Properties of SIFTExtraordinarily robust matching techniqueCan handle changes in viewpointUp to about 60 degree out of plane rotationCan handle significant changes in illuminationSometimes even day vs. night (below)Fast and efficientcan run in real timeLots of code availablehttp://people.csail.mit.edu/albert/ladypack/wiki/index.php/Known_implementations_of_SIFT

  • Lots of applicationsFeatures are used for:Image alignment (e.g., mosaics)3D reconstructionMotion trackingObject recognition (e.g., Google Goggles)Indexing and database retrievalRobot navigation other

  • Object recognition (David Lowe)

  • 3D ReconstructionInternet Photos (Colosseum)Reconstructed 3D cameras and points

  • Sony Aibo

    SIFT usage:

    Recognize charging station

    Communicate with visual cards

    Teach object recognition

  • Questions?

    ***Show other scales and how the feature looks less corner like*******