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

  Data-communication system

A data-communication system operates at the 28.8 kb/s (typical of the current high-speed telephone modems).

  Beginning with your code add a jmenubar to your main window

beginning with your code add a jmenubar to your main window with a game menu which contains 5 jradiobuttonmenuitems as

  Complete the design wlan based on ieee 802.11

Explain why 802.11b, is the first widely popular standard and still by far most used by the IT industry today.

  Questionto recover the overall functionality and good

questionto recover the overall functionality and good organization of your product ordering java application you are

  How many bits should immediate field of i-type instruction

By how many bits should the immediate field of an I-type instruction be reduced to match the length on an R-type instruction for the follow modifications to the MIPS architecture?

  What is the windows server 2003 and windows xp

Habibi's IT department wants to install Office 2003 and certain proprietary applications at each location as efficiently as possible. IT wants the applications to automatically repair themselves if they get corrupted. What must be completed to mak..

  Define involved in supporting data integrity in a database

define the key concepts that are involved in supporting data integrity in a database. How is integrity enforced? What are the advantages of enforcing integrity? What are the disadvantages? How do integrity constraints impact the overall applicatio..

  What do you mean by server side and client side scripting

what is server side and client side scripting? explain the differences between server-side and client - side scripting

  Determining the output

Specify the output if input is diamond diamond? State the output if the input is diamond gold?

  Describe which way you would choose to process the data

Assume that the program stores the array column by column. You can prepare your program to next the loops in either direction, that is, process row-by-row or column-by-column. describe which way you would choose to process the data.

  Why organization that meets the company''s specifications

A software application has been delivered to your organization that meets the company's specifications. Using associated examples, describe problems which may arise when it is installed and used in your organization.

  Define some uses of this instruction

Many instruction sets include the instruction NOOP, meaning no operation, which has no effect on the processor state other than incrementing the program counter Suggest some uses of this instruction.

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