Image gradient, Electrical Engineering

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?

Posted Date: 2/26/2013 12:22:10 AM | Location : United States







Related Discussions:- Image gradient, Assignment Help, Ask Question on Image gradient, Get Answer, Expert's Help, Image gradient Discussions

Write discussion on Image gradient
Your posts are moderated
Related Questions
Differentiate between n and p type semiconductors. n - Type semiconductor:- (i) If small amount of pentavalent impurity is added with, to a pure semiconductor giving a la

No-load and blocked-rotor tests are conducted on a three-phase,wye-connected inductionmotor with the following results. The line-to-line voltage, line current, and total input powe

DC Motor Starting When voltage is applied to the armature of a dcmotorwith the rotor stationary, no emf is generated and the armature current is limited only by the internal ar

Why do we use XRA A instruction The XRA A instruction is used to clear the contents of the Accumulator and keep the value 00H.

Q. Give a block diagram for amodulo-5 binary ripple counter using JKFFs and draw its timing diagram.

Q. What do you mean by Byte? Without question, the most vital data structure used by the 80x86 microprocessor is the byte this is true since the ASCII code is a 7-bit non-weigh

short notes on thermal runaway

What is meant by doping? Doping: Semiconductors in its extremely pure form are termed as intrinsic semiconductor such intrinsic semiconductor to which several suitable impur

(a) A second order Sallen and Key Low Pass Active Filter has these component values R 1 =R 2 =15 kΩ, C 1 =C 2 =1 nF and the feedback resistors are R 3 =3.9 kΩ and R 4 =2.3 kΩ