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 what is interrupt latency, Interrupt latency refers to the amount o...

Interrupt latency refers to the amount of time among when an interrupt is triggered and when the interrupt is observe by software.

Explain n - type semiconductor, Explain n - Type semiconductor. n - ...

Explain n - Type semiconductor. n - Type semiconductor:- (i) If small amount of pentavalent impurity is added with, to a pure semiconductor giving a large number of free

Ohms law, Normal 0 false false false EN-US X-NONE X...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Shunt dc motor, Shunt DC motor In this arrangement, the armature and f...

Shunt DC motor In this arrangement, the armature and field coils are connected in parallel (the motor is called 'shunt connected').     Analysis With refere

Collector-coupled astable multivibrator, what happens when the resistors ha...

what happens when the resistors have different values

Power semiconductor-controlled drives, Q. Explain Power semiconductor-contr...

Q. Explain Power semiconductor-controlled drives? Power electronics deals with the applications of solid-state electronics for the control and conversion of electric power. Con

Define resistance in lumped-circuit, Q. Define Resistance in lumped-circuit...

Q. Define Resistance in lumped-circuit? An ideal resistor is a circuit element with the property that the current through it is linearly proportional to the potential differenc

Downsampling in dsp, #ques1. (MATLAB) Generate 100 samples of the signal ...

#ques1. (MATLAB) Generate 100 samples of the signal  = sin (0.125). We want to decimate this signal using D = 2. • Design a 25-order lowpass filter using the Parks-McClella

Vlsi, what is the difference between latch and flipflop

what is the difference between latch and flipflop

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