Massachusetts Institute of Technology. Department of Computer Science and Electrical Engineering /6.866 Machine Vision Quiz I

Similar documents
Issues with Curve Detection Grouping (e.g., the Canny hysteresis thresholding procedure) Model tting They can be performed sequentially or simultaneou

Edge and local feature detection - 2. Importance of edge detection in computer vision

HOUGH TRANSFORM CS 6350 C V

Image Processing 1 (IP1) Bildverarbeitung 1

Lecture 15: Segmentation (Edge Based, Hough Transform)

Math 113 Calculus III Final Exam Practice Problems Spring 2003

Curves, Tangent Planes, and Differentials ( ) Feb. 26, 2012 (Sun) Lecture 9. Partial Derivatives: Signs on Level Curves, Tangent

Announcements. Edges. Last Lecture. Gradients: Numerical Derivatives f(x) Edge Detection, Lines. Intro Computer Vision. CSE 152 Lecture 10

Contents. MATH 32B-2 (18W) (L) G. Liu / (TA) A. Zhou Calculus of Several Variables. 1 Homework 1 - Solutions 3. 2 Homework 2 - Solutions 13

General Principles of 3D Image Analysis

Exam 3 SCORE. MA 114 Exam 3 Spring Section and/or TA:

Math 213 Calculus III Practice Exam 2 Solutions Fall 2002

Announcements. Edge Detection. An Isotropic Gaussian. Filters are templates. Assignment 2 on tracking due this Friday Midterm: Tuesday, May 3.

GENERALIZING THE HOUGH TRANSFORM TO DETECT ARBITRARY SHAPES. D. H. Ballard Pattern Recognition Vol. 13 No

f xx (x, y) = 6 + 6x f xy (x, y) = 0 f yy (x, y) = y In general, the quantity that we re interested in is

Edge linking. Two types of approaches. This process needs to be able to bridge gaps in detected edges due to the reason mentioned above

Types of Edges. Why Edge Detection? Types of Edges. Edge Detection. Gradient. Edge Detection

EN1610 Image Understanding Lab # 3: Edges

Computer Vision I. Announcements. Fourier Tansform. Efficient Implementation. Edge and Corner Detection. CSE252A Lecture 13.

(Refer Slide Time: 0:32)

Photometric Stereo, Shape from Shading SfS Chapter Szelisky

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

BIM472 Image Processing Image Segmentation

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

Chapter 12: Quadratic and Cubic Graphs

Straight Lines and Hough

Biomedical Image Analysis. Point, Edge and Line Detection

Gradient and Directional Derivatives

Name: Date: 1. Match the equation with its graph. Page 1

Practice problems from old exams for math 233 William H. Meeks III December 21, 2009

Multivariate Calculus: Review Problems for Examination Two

P1 REVISION EXERCISE: 1

Quiz 6 Practice Problems

Lecture 8 Object Descriptors

Lecture 9: Hough Transform and Thresholding base Segmentation

= f (a, b) + (hf x + kf y ) (a,b) +

Lecture 2 September 3

EE795: Computer Vision and Intelligent Systems

Biomedical Image Analysis. Mathematical Morphology

3D Motion Analysis Based on 2D Point Displacements

Image Processing

(c) 0 (d) (a) 27 (b) (e) x 2 3x2

Tangent Planes and Linear Approximations

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6

MIDTERM. Section: Signature:

Lecture 12 Level Sets & Parametric Transforms. sec & ch. 11 of Machine Vision by Wesley E. Snyder & Hairong Qi

Digital Image Processing

Photometric Stereo. Photometric Stereo. Shading reveals 3-D surface geometry BRDF. HW3 is assigned. An example of photometric stereo

EECS490: Digital Image Processing. Lecture #21

Generalized Hough Transform, line fitting

Lecture 7: Most Common Edge Detectors

Chapter 11 Representation & Description

Filtering Images. Contents

Massachusetts Institute of Technology Department of Computer Science and Electrical Engineering 6.801/6.866 Machine Vision QUIZ II

OpenGL Graphics System. 2D Graphics Primitives. Drawing 2D Graphics Primitives. 2D Graphics Primitives. Mathematical 2D Primitives.

We can conclude that if f is differentiable in an interval containing a, then. f(x) L(x) = f(a) + f (a)(x a).

14.5 Directional Derivatives and the Gradient Vector

CAP 5415 Computer Vision Fall 2012

A small review, Second Midterm, Calculus 3, Prof. Montero 3450: , Fall 2008

6. Find the equation of the plane that passes through the point (-1,2,1) and contains the line x = y = z.

Fitting. Lecture 8. Cristian Sminchisescu. Slide credits: K. Grauman, S. Seitz, S. Lazebnik, D. Forsyth, J. Ponce

CS4733 Class Notes, Computer Vision

LECTURE 18 - OPTIMIZATION

The base of a solid is the region in the first quadrant bounded above by the line y = 2, below by

Schedule for Rest of Semester

Finding 2D Shapes and the Hough Transform

18.02 Final Exam. y = 0

x + 2 = 0 or Our limits of integration will apparently be a = 2 and b = 4.

Output Primitives Lecture: 4. Lecture 4

Daily WeBWorK, #1. This means the two planes normal vectors must be multiples of each other.

Chapter 5 Partial Differentiation

Precomposing Equations

Computer Vision. Image Segmentation. 10. Segmentation. Computer Engineering, Sejong University. Dongil Han

Edge Detection Lecture 03 Computer Vision

Trigonometric Functions of Any Angle

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6. ) is graphed below:

14.4: Tangent Planes and Linear Approximations

Lambertian model of reflectance I: shape from shading and photometric stereo. Ronen Basri Weizmann Institute of Science

EE368 Project Report CD Cover Recognition Using Modified SIFT Algorithm

Linear and quadratic Taylor polynomials for functions of several variables.

38. Triple Integration over Rectangular Regions

QUIZ 4 (CHAPTER 17) SOLUTIONS MATH 252 FALL 2008 KUNIYUKI SCORED OUT OF 125 POINTS MULTIPLIED BY % POSSIBLE

Basic Algorithms for Digital Image Analysis: a course

Chapter 11 Arc Extraction and Segmentation

MATH 19520/51 Class 6

LIGHT: Two-slit Interference

MA 113 Calculus I Fall 2015 Exam 2 Tuesday, 20 October Multiple Choice Answers. Question

Segmentation I: Edges and Lines

Vector Addition. Qty Item Part Number 1 Force Table ME-9447B 1 Mass and Hanger Set ME Carpenter s level 1 String

MA 114 Worksheet #17: Average value of a function

Line, edge, blob and corner detection

Practical Image and Video Processing Using MATLAB

Name Class. (a) (b) (c) 2. Find the volume of the solid formed by revolving the region bounded by the graphs of

Multivariate Calculus Review Problems for Examination Two

Graphics and Interaction Transformation geometry and homogeneous coordinates

Topic 6 Representation and Description

Filtering and Enhancing Images

4. TANGENTS AND NORMALS

COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates

SPECIAL TECHNIQUES-II

Transcription:

Massachusetts Institute of Technology Department of Computer Science and Electrical Engineering 6.801/6.866 Machine Vision Quiz I Handed out: 2004 Oct. 21st Due on: 2003 Oct. 28th Problem 1: Uniform reflecting properties are a prerequisite for the usual shape from shading methods. Consider now a surface covered by a material of spatially varying reflectance. Suppose that the brightness can be treated as the product of a spatially varying reflectance or albedo ρ(x, y), and a geometric factor R(p, q) that depends only on surface orientation. There are two unknowns z(x, y) and ρ(x, y) at every position on the surface, so a single image will not provide enough information to recover both (consider, for example, a photographic print of a rounded object where the brightness variations could either be from a rounded object of uniform albedo or from a flat object of varying albedo). Now suppose we take two images under different lighting conditions. (a) Combine the two resulting image irradiance equations in such a way as to eliminate ρ(x, y). Suppose the new now ρ-free equation can be written in the form E (x, y) = R (p, q). (b) Show that if the underlying surface actually is a Lambertian reflector. then the isophotes in gradient space are straight lines. When will they be parallel straight lines? (c) Show that the isophotes all go through a common point in gradient space in the case that they are not parallel. Where in gradient space would you expect the highest accuracy in recovering surface orientation? That is, where is brightness (in the ρ-free equation) most affected by small changes in surface orientation? Relate this back to the original imaging situation. How should the lighting be arranged to obtain high accuracy? Problem 2: An edge detection method starts by finding the brightness gradient (E x,e y ) at each picture cell using some local estimator of the partial derivatives of image brightness E(x, y). The magnitude of the brightness gradient is then computed. Next, non-maximum suppression keeps for further consideration only pixels where the magnitude of the gradient is a local maximum in the direction of the local brightness gradient.

2 6.801/6.866 Quiz #1 The maximum of the gradient need, of course, not fall exactly on a discrete pixel location, when the gradient magnitude is considered as a continuous function of position, Edge locations can be estimated to finer than pixel resolution if this continuous function of image position is first estimated from the discrete samples of the magnitude of the brightness gradient at pixels. We can approximate the magnitude of the gradient locally as a power series M(x, y) = ax 2 + bxy + cy 2 + dx + ey + f where (x, y) is the displacement from the center of a 3 3 region of pixels. (a) Show that the parameters a, b, c, d, e, and f can be estimated from M, M x, M y, M xx, M xy and M yy evaluated at the origin i.e. at the center pixel. (b) The following six stencils (a.k.a. computational molecules) can be used to estimate the parameters a, b, c, d, e and f. Indicate which stencil corresponds to which parameter. (1) k 1 2 2 2 (2) k 2 (3) k 3 + 1 1 1 1 1 1 +2 1 (4) k 4 + 2 +5 +2 (5) k 5 (6) k 6 1 +2 1 (c) Determine suitable values for the six constants {k i }, assuming that the pixel i spacing is ɛ. (Hint: apply the stencil to the test functions x y j for i = 0, 1,... and j = 0, 1,...). (d) Show that the distance from the origin to the maximum in brightness gradient in the direction of the local brightness gradient is M x E x + M y E y ρ = E 2 + E M E 2 2 E 2 xx x + 2M x y xy E x E y + M yy y (e) This result only applies when the denominator of the above expression is negative. Why? (f) How large can ρ reasonably become? Keep in mind that a picture cell where this computation is performed is one that has survived the non-maximum suppression operation.

6.801/6.866 Quiz #1 3 Problem 3a: In a simple model of brightness in a Scanning Electron Microscope we have a reflectance map 2 R(p, q) = p 2 + q. At a singular point, E x = 0 and E y = 0. Assume the singular point is at (0, 0). Suppose that the surface near the singular point can be approximated by a power series of the form z = z 0 + s x x + s y y + ax 2 + 2bxy + cy 2 (a) First, show that s x = 0 and s y = 0 at the singular point. (b) Then show that E xx 2E xy + E yy = k ( (a b) 2 + (b c) 2) for some k. What is the value of k? (c) If E xx = E xy = E yy = 8, what are a, b, and c in the series expansion given above for the surface height near the singular point? Is there a unique answer? Verify that b(e xx E yy ) = (a c)e xy Problem 3b: In solving the shape from shading problem, we derived the characteristic strip equations from the image irradiance equation E(x, y) = R(p, q). Here we go in the other direction, showing that solutions of the characteristic strip equation satisfy the image irradiance equation. Show that when using the method of characteristic strip expansion to solve the shape from shading problem E(x, y) R(p, q) is constant along a characteristic strip. That is: d ( ) E(x, y) R(p, q) = 0 dξ along the strip. Conclude that, if E(x, y) = R(p, q) at the beginning of the strip, then E(x, y) = R(p, q) all along the strip. (If nothing else, this is a sanity check on the characteristic strip equations). Problem 4: The image brightness gradient is large where an edge is thought to occur. Derivatives of brightness can, however, be used for purposes other than finding edges. We saw this when we computed the perimeter of a binary object using Ex 2 + Ey 2 dx dy D where E(x, y) = 1 in the object and E(x, y) = 0 in the background, with a narrow, smooth transition region in between.

4 6.801/6.866 Quiz #1 For this exercise, consider an image with a circularly symmetric bright spot. Consider polar coordinates with x = r cos θ and y = r sin θ. Let E(x, y) = f(r) where r = x 2 + y 2. Suppose that f(r) = 1 for r< R ɛ, and f(r) = 0 for r> R + ɛ, Then the above integral of the magnitude of the brightness gradient yields 2πR i.e. the perimeter of the circular disk as ɛ 0. (a) Show that and (b) Show that and that E x = f (r) x r (c) How is the result changed if we replace the bright ( disk with ) a dark disk in a bright background (i.e. replace E(x, y) with 1 E(x, y)? What happens if the bright circular disk has an internal dark circular disk-shaped depression where E is zero? What happens if there is more than one bright circular disk in the image? and E y = f (r) y r E xx = f (r) x2 r + f (r) y 2 2 r r, 2 E xy = f (r) xy r f (r) xy 2 r r, 2 E yy = f (r) y2 r + f (r) x 2 2 r r. 2 ( ) ( Ex E y ) E x E y = ( f (r) ) 2, ( )( ) ( ) E Ey E xx E xy E y x = ( f E xy E yy E (r) ) 3 /r, x Conclude that Exx E 2 y 2E xy E x E y + E yy E 2 x dx dy = 2π E 2 + E 2 D x y for the image E(x, y) as given above, independent of R. (d) Based on the above, what measure or property do you think is computed by this integral when applied to a slightly blurred version of a binary image? Hint: It may help to consider an approximation of an arbitrary, simple, smooth, closed curve by a sequence of a large number of short circular arcs with tangent continuity. (e) Show that the integrand in the integral above is the directional second derivative of brightness in a particular direction. What direction?

6.801/6.866 Quiz #1 5 Problem 5a: Consider binary image data streaming in along a row. We feed the bits into an adder/accumulator that is reset to zero at the start of the row. Clearly at the end of the row the accumulator contains the number of bits that were 1 in that row. Now consider a second adder/accumulator that takes its input not from the image data, but from the output of the first accumulator. Like the first accumulator, it adds its current input to the current total when a new pixel is scanned in. (a) Show that the contribution of a single bit in the image to the output of the second accumulator depends on its position in the image row a bit at the end of the row being added in only once, while a bit at the start of the row is added in many times. (b) How would you use such a device (modified if needed) to compute the first moment without using multiplication? (c) Suggest how you could obtain the second (and higher) moments using additional accumulators, again without needing multiplication. Problem 5b: Consider the binary image of a circular disk that is approximately d pixels across. We are going to estimate the expected error in finding the horizontal (x) component of the centroid. We break the image up into rows. Within each row that intersects the disk there is a contiguous set of pixels where b ij = 1. Now the value of first and last pixels in this sequence are somewhat uncertain in that additive image measurement noise might push the brightness measurements below threshold, or push adjacent pixels, now classified as background, above threshold. The centroid of the row of pixels then has an error with standard deviation some multiple of the size of a pixel. Due to this error, the centroids of different rows intersecting the disc will not be exactly the same. In computing the centroid of the disc, we are in essence averaging these noisy estimates. How do you expect the error in the x-component of the centroid to depend on the size of the image of the disc?