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

Types of power diode , Types of Power Diode According  to their  rever...

Types of Power Diode According  to their  reverse recovery characteristics of power diodes it can be  classified as follows: a.       General purpose  diodes b.      Fas

Variable capacitors, how can I simulate air variable capacitors in cst simu...

how can I simulate air variable capacitors in cst simulator?

Show maximum common-mode input voltage, Q. Show Maximum Common-Mode Input V...

Q. Show Maximum Common-Mode Input Voltage of amplifier? This is the maximum voltage that the two inputs can be raised above ground potential before the op amp becomes nonlinear

Show that conservation of power is satisfied by the circuit, Given the netw...

Given the network in Figure, (a) Find the currents through resistors R 1 , R 2 , and R 3 . (b) Compute the voltage V 1 . (c) Show that the conservation of power is satisfi

DC motor and DC generator, write down the similarities between motors and g...

write down the similarities between motors and generators

Signals and system, how can i calculate that is following signal is periodi...

how can i calculate that is following signal is periodic or not? X[n]= ?_(k=-8)^8¦?{d[n-4k]-d[n-1]-4k]}?

Find the total current and total resistance, For the circuit in figure, fin...

For the circuit in figure, find: a)  Total resistance b)  Total current c)  Current flow through resistor 6Ω and 4Ω

Explain the ascii character set - microprocessor, Explain the ASCII Charact...

Explain the ASCII Character Set? Most programming languages have a means of defining a character as a numeric code and, conversely, converting the code back to the character. ASC

Karnaugh map, how can be a karnaugh map of the count of sequence: 0-5-6-9-1...

how can be a karnaugh map of the count of sequence: 0-5-6-9-11-14

Mathematics, The two sides of a triangle are 17 cm and 28 cm long, and the ...

The two sides of a triangle are 17 cm and 28 cm long, and the length of the median drawn to the third side is equal to 19.5 cm. Find the distance from an endpoint of this median to

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