Defined the derivative of the gaussian function

Assignment Help Computer Engineering
Reference no: EM131098154

E27: Computer Vision Spring 2016 - HOMEWORK 3

1. Image warping and invertible transformations

Given a digital image, and an invertible transformation H˜ of the form

p˜' ≡ H˜p˜

we would like to compute the warped image whereby each point p˜ in the original image is transformed to its new location p˜'. This type of image warping is exactly what the cv2.warpPerspective function does, for example.

We could envision a somewhat straightforward algorithm for performing this image warp: for each location p˜ in the original image, compute the nearest pixel location of the transformed point p˜' in the warped image, and copy the color found in p˜ to the warped image at location p˜'.

However, the vastly preferable algorithm is to loop over the destination pixels p˜' in the warp image, and use the inverse transformation H˜-1 to identify the nearest pixel p˜ in the source image and copy the color from that source pixel to the destination.

What is the difference between the two approaches? Why is the second one preferable?

2. Convolution vs. Correlation

Given two real-valued functions f and g of one variable, the convolution of f and g is defined as:

(f * g)(x) = -∞ f(x - u) g(u) du

The correlation of f and g is defined similarly:

(f ⊗ g)(x) =  -∞f(x + u) g(u) du

a. How are convolution and correlation related? Given any functions f(x) and g(x), define a function h(x) such that

f * g = f ⊗ h

What is h(x) in terms of g(x)?

b. Filtering confusion. Although we have defined filtering operations in class in terms of convolution, many software packages (including OpenCV) define filtering in terms of correlation instead. As we will see, it doesn't make a huge difference.

Imagine that g(x) is a symmetric (even) function, such as a Gaussian, where

G(x) = g(-x)

Based upon your answer above, can you tell the difference between f * g and f ⊗ g? Why or why not?

Next, imagine that g(x) is antisymmetric (odd), where

G(x) = -g(-x)

Now can you tell the difference? What is the mathematical relationship between f * g and f ⊗ g in this case?

3. Image derivatives and separability

a. The Gaussian blur operation is seperable. Let I(x, y) be a continuous function specifiying image intensity at the point (x, y), and let G(x, y) be a Gaussian function:

G(x, y) = 1/Z2exp(-(x2+y2/2σ2))

where Z2 is a normalizing constant that makes G integrate (or sum, in the discrete domain) to 1. Show that the convolution of I with G can be represented as convolution with two functions gx and gy that depend only on the x and y coordinates respectively.

Remember, the discrete convolution I * G can be expressed as the sum

(I * G)(x, y) = ∑uvI(x - u, y - v)G(u, v)

What are the functions gx(x) and gy(y) such that I * G = I * gx * gy?

b. The partial derivative of a Gaussian is separable. Let G(x, y) be defined as the derivative of the Gaussian function with respect to x:

G(x, y) = (∂/∂x)G(x, y)

show that the convolution (I * G) can also be represented as a convolution with two functions that depend only on x and y.

c. Why do we care about separability? Say we are convolving a w x h image I with an arbitrary square n x n kernel G. How many operations (in terms of big-O notation) does it take to evaluate (I * G) for each pixel in I? How many operations if G is separable and we can evaluate the convolution as ((I * gx) * gy), where gx and gy are both kernels with size n? In short, why do we prefer to use separable convolutions?

4. Non-linear filtering

The erosion, dilation, opening and closing operators that we discussed in class are sometimes considered "non-linear filters". How are they similar to convolutions, and how are they different? What are some other examples of non-linear filters and their uses?

Reference no: EM131098154

Questions Cloud

Explain why these external factors are significant : Identify at least one area of growth in either of these roles you would like to further develop, and explain why - Explain why these external factors are significant and how they might affect your work as a leader or manager.
What would be the orbital period of such a planet : Planet Vulcan Suppose that a planet were discovered between the sun and Mercury, with a circular orbit of radius equal to 2/3 of the average orbit radius of Mercury. What would be the orbital period of such a planet?
Hypothesis or fail to reject the null hypothesis : When testing the executive's (using a 1% level ofsignificance), what can you conclude concerning the null hypothesis? Reject the null hypothesis or Fail to reject the null hypothesis?
Compare guilio roamnos use of the doric order at the pallazo : Compare Guilio Roamno's use of the Doric order at the Pallazo del Te in Mantua with the classical version, using your own drawings to illustrate the differences.
Defined the derivative of the gaussian function : E27: Computer Vision Spring 2016 - HOMEWORK 3. The partial derivative of a Gaussian is separable. Let G→(x, y) be defined as the derivative of the Gaussian function with respect to x: G→(x, y) = (∂/∂x)G(x, y)
Describe the goal as target behaviors : Describe the goal as target behaviors. What specific behaviors do you want to increase or decrease -
Probability that the process is operating correctly : If a defective bulb is found what is the probability that the process is functioning correctly? If a nondefective bulb is found what is the probability that the process is operating correctly?
Find the semi-major axis of this comet''s orbit : The orbital period of this comet is estimated to be about 30,000 years. Find the semi-major axis of this comet's orbit. Compare it to the average sun-Pluto distance and to the distance to Alpha Centauri, the nearest star to the sun, which is 4.3 l..
Researcher draws a sample from a normal distribution : Question 1. As a sample size approaches infinity, how does the student's t distribution compare to the normal z distribution? When a researcher draws a sample from a normal distribution, what can one conclude about the sample distribution? Explai..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd