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

Digital ecectronics, DISIGN A FENITE STATE MACHINE TO DETECT THE SEQUENCE 1...

DISIGN A FENITE STATE MACHINE TO DETECT THE SEQUENCE 10110

Customer indexing, Customer Indexing: Customer indexing (CI) is a meth...

Customer Indexing: Customer indexing (CI) is a method for enumerating the total number of consumers in a utility and tagging them to their respective poles, transformers and f

Determine the energy, Q. Consider a pair of coupled coils as shown in Figur...

Q. Consider a pair of coupled coils as shown in Figure of the text, with currents, voltages, and polarity dots as indicated. Show that the mutual inductance is L 12 = L 21 = M by

Power, why do we use commutator?

why do we use commutator?

Find the magnitude of the force, Q. A solenoid of cylindrical geometry is s...

Q. A solenoid of cylindrical geometry is shown in Figure. (a) If the exciting coil carries a steady direct current I, derive an expression for the force on the plunger. (b) F

Basic working of star topology, Q. Basic working of Star Topology? In S...

Q. Basic working of Star Topology? In Star topology, all user nodes are connected to central node point that interconnects all individual users links and nodes. Data flows from

Determine the response of a series r-c circuit, Determine the response of a...

Determine the response of a series R-C circuit to a SQUARE wave. Explain how the time constant affects the waveform observed across the components. Illustrate your answer by means

Electro magnetics and transmission lines, how does the kb come across the s...

how does the kb come across the sheet charge in the amperian sheet?

Switching characteristics , Switching Characteristics The switching  c...

Switching Characteristics The switching  characteristics of power MOSFET the delay time and rise time are responsible to remove the  effect of internal capacitance of the devi

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