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

Determine the capacitor voltage, Q. In an RLC series circuit excited by a v...

Q. In an RLC series circuit excited by a voltage source v(t), for R = 10 , L = 1 H, and C = 0.1F, determine v(t) if the capacitor voltage vC(t) = 5e -10t V.

Ohmic region operation, Q. In a depletion MOSFET for which V P = 3 V and I...

Q. In a depletion MOSFET for which V P = 3 V and I DSS = 11mA, the drain current is 3mA when v DS is set at the largest value that will maintain ohmic region operation. Find v G

Explain digital signal formatting, Q. Explain Digital Signal Formatting? ...

Q. Explain Digital Signal Formatting? After quantization and coding the samples of the message, a suitable waveform has to be chosen to represent the bits. This waveformcan the

Singular value decomposition, Singular Value Decomposition (i) initial...

Singular Value Decomposition (i) initialize a 2x2 matrix m=[4 0.5;0.5 7]  Factorize the matrix with SVD [u d v]=svd(m) How the matrix u and v differ? Why is that?

Thermal –root , A moving coil galvanometer consists of a coil  in a uniform...

A moving coil galvanometer consists of a coil  in a uniform magnetic field B o, suspended fro a fibre of torque constant C, current I produces a deflection O=nAB o i/c where n is

Basic electromagnetic principles, It has been known for a thousand years or...

It has been known for a thousand years or more (originating in China) that certain (magnetic) materials would always orientate    themselves in a  particular direction if suspended

What is segment displays, Q. What is Segment displays? Seven-segment di...

Q. What is Segment displays? Seven-segment displays are the most commonly used numeric display devices, while 10- and 16-segment (starburst) display devices are also available.

Concept of flux density, We can illustrate the direction and strength of a ...

We can illustrate the direction and strength of a magnetic field by means of drawing 'flux lines'. These have arrows to show the direction of the magnetic field at any point and th

Modify the jk flip-flop to operate like the t flip-flop, Q. A JK flip-flop ...

Q. A JK flip-flop is shown in Figure (a). (a) Modify it to operate like the D flip-flop of Figure (b). (b) Modify the JK flip-flop to operate like the T flip-flop of Figure (

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