Image gradient, Electrical Engineering

Assignment Help:

Image gradient

Write an m-file "grad.m" which computes and displays gradient and orientation of an input image (use Gaussian derivatives).
To compute Gaussian derivative in one dimension you need to perform differentiation in one dimension and smoothing in the other dimension.

( you have to compute 4 convolutions ).

function grad(imn,sigma)

gx=gauss_x(sigma);
g=gauss(sigma);
imgx=conv2(imn,gx);
imgxg=conv2(imgx,g');
figure(1);
imshow(imgxg,[]);

imgy=?
imgyg=?
figure(2);
imshow(imgyg,[]);

grad=?
figure(2);
imshow(grad,[]);

ori=atan2(imgyg,imgxg);
imshow(ori,[])

What the gradient represents in an image? What other kernels can be used to compute the gradient?


Related Discussions:- Image gradient

Describe common-mode rejection ratio, Q. Describe Common-Mode Rejection Rat...

Q. Describe Common-Mode Rejection Ratio ? When there is a common-mode input voltage, i.e., when the input signals are equal and greater than zero, the output voltage of an idea

Show silicon n-channel jfet, Q. Given that a silicon n-channel JFET has V P...

Q. Given that a silicon n-channel JFET has V P = 5 V and I DSS = 12 mA, check whether the device is operating in the ohmic or active region when v GS =-3.2 V and i D = 0.5 mA.

Illustrate the photo-conductive cell, Illustrate in detail digital encoders...

Illustrate in detail digital encoders. Illustrate the following with their application: Photo-conductive cell Photo-voltaic cell

Clapp oscillator, having looked at the circuit, i first wanted to start my ...

having looked at the circuit, i first wanted to start my frequency from 0 and plot for 10000 to 20000. so in matlab i used f = 0:10000:20000; but the equation for frequency is f= 1

The resistance of a 7 m length of the similar cable, The resistance of a 2 ...

The resistance of a 2 m length of cable is 2.5?. Verify (a) the resistance of a 7 m length of the similar cable and (b) the length of the same wire when the resistance is 6.2

Logic circuits, : A farmer owns two barns; one north of a creek and the oth...

: A farmer owns two barns; one north of a creek and the other south of the creek. The farmer has a Cabbage, a Goat, and a Wolf. The Farmer needs to put each item in a barn every ni

What is the direction of a line of flux, What is the Direction of a line of...

What is the Direction of a line of flux The direction of a line of flux is from the north pole to the south pole on the exterior of the magnet and is then supposed to continue

How many electrons all semiconductor have in last orbit, All semiconductors...

All semiconductors in their last orbit have (A)  8 electrons.  (B) 2 electrons. (C)  4 electrons. (D)  6 electrons. Ans:     All semiconductors in their

Explain about folded network, Q. Explain about Folded network? Folded ...

Q. Explain about Folded network? Folded network: When all the outlets/inlets are connected to the subscriber lines, logical connection appears as displayed in figure. In this

Write Your Message!

Captcha
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