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

What do you mean by feedback in amplification, Q. What do you mean by Feedb...

Q. What do you mean by Feedback in amplification? Feedback :   Feedback in its broadest sense means that a certain amount of the output signal is "fed back" into the input. An

Determine rc and resistance, Q. A silicon npn BJT is biased by the method s...

Q. A silicon npn BJT is biased by the method shown in Figure, with R E = 240 , R 2 = 3000 , and V CC = 24 V. The operating point corresponds to V BEQ = 0.8V, I BQ = 110 µA,

Analog computers, Q. Analog Computers? Although not used as much as the...

Q. Analog Computers? Although not used as much as the digital computer (which nowadays forms the basic tool for numerical analysis and the solution of algebraic as well as diff

8. A road 300 m long is required to be illuminated b, Ask questio8. A road ...

Ask questio8. A road 300 m long is required to be illuminated by providing 40W fluorescent lamps. The width of the road is 4m. Design a street lighting scheme for obtaining minimu

Explain the time division space switching, a. Explain the time division spa...

a. Explain the time division space switching b. Verify the execution complexity of 2048 channel TST switch with 16 TDM links and 128 channels. Let the time slot of space switch

Describe the lastprivate clause, Q. Describe the Lastprivate Clause? Th...

Q. Describe the Lastprivate Clause? The lastprivate clause declares one or more list items to be private to a thread in additin causes corresponding original list item to be up

Multiplexer, design a 32:1 multiplexer using two 16:1 multiplexer

design a 32:1 multiplexer using two 16:1 multiplexer

Determine the output waveform of the voltage, Q. The first four harmonics i...

Q. The first four harmonics in the Fourier series of current waveform given by where I m = 15 mA and T = 1 ms. If such a current is applied to a parallel combination of R

Sr flip flop - introduction to microprocessors , SR Flip Flop The SR  f...

SR Flip Flop The SR  flip  flop is an arrangement  of logic gates that maintain astable output even after  the  input  are turned off.  It has  two  inputs namely  SET input (S

Ac, power factor improvement

power factor improvement

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