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

Gis technology, GIS technology: GIS could be used to derive diverse in...

GIS technology: GIS could be used to derive diverse information for efficient technical and commercial management of a power distribution utility, e.g., capacity analysis, inv

Dsp causal LTI system, cosider a causal LTI system whose system function is...

cosider a causal LTI system whose system function is H(z)=1-1/5z^-1/(1-1/2z^-1+1/3z^-2)(1+1/4z^-1) find the direct form 1 and direct form 2

Determine the sampling rate, Q. If an analog message that has a spectral ex...

Q. If an analog message that has a spectral extent of 15 kHz is sampled at three times the Nyquist rate, determine the sampling rate.

Compare with register, Compare with Register The contents  of the re...

Compare with Register The contents  of the register  are compared with  the contents  of the accumulator  here  register  may be  any one  of the  A, B, C, D E, H, or L  reg

Calculate armature voltage, Question: A DC, separately excited motor is...

Question: A DC, separately excited motor is supplied from a 240-V source. When the motor is unloaded, it draws 1A of current from the source. When the motor is loaded, it draws

List out the reasons for automation, Describe the term (i) Automation ...

Describe the term (i) Automation (ii) Automated lines 04 List out the reasons for automation and discuss in detail the process of work part transport.

Switching characteristics, Switching Characteristics The switching  cha...

Switching Characteristics The switching  characteristic  of an IGBT  during  turn on and turn off time all  shown  in the sum of delay time  and rise time gives  the total  tur

Bcd to excess 3 code converter, What are the industrial applications of the...

What are the industrial applications of the project bcd to excess 3 code converter?

Induction motor, A 100hp,460v,8pole,60hz,star connected 3phase IM runs at 8...

A 100hp,460v,8pole,60hz,star connected 3phase IM runs at 891rpm under full load what is the speed of the rotor field relative to i)rotor structure ii)stator rotating field

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