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

Depletion type mosfet, Depletion type MOSFET The channel is of silico...

Depletion type MOSFET The channel is of silicon. It can be two type of channel that is an n-type or p-type channel; it is still mostly silicon. After that, we take note that

Draw a circuit using the cascade system, Design and draw a circuit using th...

Design and draw a circuit using the cascade system to operate two cylinders (A and B) which, on the operation of a start valve, produces the sequence A - B + B - A+. The cylinder

Life interactive ups systems , Normal 0 false false false ...

Normal 0 false false false EN-IN X-NONE X-NONE Life   Interactive UPS Systems

Microgrid, how to connect some DG together?

how to connect some DG together?

What are the various flags used in 8085, The various flags are: - Sign flag...

The various flags are: - Sign flag,  Axillary flag, Zero flag, Parity flag, Carry flag.

Explain the operation of oscillators, Q. Explain the operation of oscillato...

Q. Explain the operation of oscillators. Oscillator is a circuit that changes dc energy from the power supply into ac energy. An amplifier provided with a positive feedback bec

Explain dielectric constant, Explain Dielectric constant. Dielectric co...

Explain Dielectric constant. Dielectric constant: This is also termed as 'Permittivity'. All insulating material possesses an electrical capacitance. Such capacitance of unit d

Switching characteristics during turn off, Switching Characteristics During...

Switching Characteristics During Turn off The techniques  used for turning off a thyristor is known  as  commutation techniques. A  thyristor can be can be  turn off by reducin

Microcontroller, What are usue and all the details of 8051 microcontroller ...

What are usue and all the details of 8051 microcontroller with its block diagram pin diagram and all other details

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