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

Monostable delay in matlab, how to implement monostable delay in matlab sim...

how to implement monostable delay in matlab simulink environment? [email protected]

Calculate the antenna aperture area, Q. Amicrowave relay systemuses two ide...

Q. Amicrowave relay systemuses two identical horn antennas mounted on towers spaced 40 km apart. If f c = 6 GHz, and each relay hop has L = 60 dB, calculate the antenna aperture a

Difference between and and test instructions, Mention how do the AND & T...

Mention how do the AND & TEST instructions differ in their functionality AND: Changes the destination operand while performs the AND operation and. TEST: This ins

Abcd propagation , ABCD propagation of an optical ray through a system can...

ABCD propagation of an optical ray through a system can be explained by a simple 2_2 matrix. In ray optics, the characteristic of a system is given by the corresponding ray matrix

R = 10 ohms VB = 5V V1 is the sinusoidal wave having, Ask questionDraw the ...

Ask questionDraw the following circuits on the PROTEUS and check the output waveform on oscilloscope #Minimum 100 words accepted#

Current and voltage polarity, why Direct current flow through semiconductor...

why Direct current flow through semiconductors but alternating current cannot flow?

Analog averaging system, Consider the analog averager where x(t) is the inp...

Consider the analog averager where x(t) is the input and y(t) is the output. (a)   Find the impulse response h(t) of the average.  Is this system causal? (b)   Let x(t)

Regenerative braking control - motor control , Regenerative Braking Control...

Regenerative Braking Control In this  methods  motor  behaves like a  generator  and the kinetic energy of the  motor  and connected load is  returned to the supply. If means

Diode, report on diode

report on diode

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