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

Explain junction transistors (npn and pnp), Explain junction transistors (n...

Explain junction transistors (npn and pnp). Junction Transistor: This transistor consists of two p-n junctions combined in one crystal as demonstrated in figure below.

Basic structure of an scr and the common circuit symbol, Q. Draw the basic ...

Q. Draw the basic structure of an SCR and the common circuit symbol ? The SILICON CONTROLLED RECTIFIER, usually referred to as an SCR, is one of the families of semiconductors

Jfet applications, how is it possible to operate Q3 with no dc drain? where...

how is it possible to operate Q3 with no dc drain? where is the dc operating point?

Equalizer rings, purpose of equalizer rings in lap winding

purpose of equalizer rings in lap winding

Valence band- conduction band- valence electrons energy gap, Explain the te...

Explain the terms: valence band, conduction band, valence electrons, and energy gap with the help of suitable diagrams. Valence Electrons: The electrons in the outermost orbi

What is non-folded network, Q. What is Non-Folded Network? Non-Folded ...

Q. What is Non-Folded Network? Non-Folded Network: In a switching network, all outlet/inlet connection may be used for inter exchange transmission. In such a case, exchange d

Voltages source inverter - vsi, Voltages source inverter ( VSI) A volta...

Voltages source inverter ( VSI) A voltage  source  inverter is a constant voltage  source  which  is having  negligible  impedance. In these inverters the amplitude of output

Explain the bidirectional shift registers, Explain the Bidirectional Shift ...

Explain the Bidirectional Shift Registers? A Reversible or A Bidirectional shift register is one in which the data can be shift either left or right. D flip-flops are used by

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