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

Define the binary counting - counters, Define the Binary Counting - Counter...

Define the Binary Counting - Counters? The Binary counter is capable to be constructed from J-K flip-flops by taking the output of one cell to the clock input of the next The J

Engineering, State the different stabilization techniques and compensation ...

State the different stabilization techniques and compensation techniques

Earthing in electricity and gas hazards, Earthing : Any electrical applian...

Earthing : Any electrical appliance with a metal casing or with metal parts, likely to be touched by an operator is potentially dangerous. The danger is that an internal or extern

High voltage distribution system or hvds, High Voltage Distribution System ...

High Voltage Distribution System or HVDS Adoption of HVDS (High Voltage Distribution System) through converting existing LVDS to HVDS reduces the technical losses appreciably.

For an n-channel jfet find voltage, Q. For an n-channel JFET with V A = 35...

Q. For an n-channel JFET with V A = 350 V, I DSS = 10 mA, and V P = 3V, find V DS that will cause i D = 11 mA when v GS = 0.

Determine the value of resistance, Determine the value of Resistance: ...

Determine the value of Resistance: Determine the value of R, so that the condition for resonance is fulfilled Figure Solution Admittance of first branch

What is the physical length of this cable, Q. It is desired to cut a λ/4 le...

Q. It is desired to cut a λ/4 length of RG58A/U cable (ε r = 2.3) at 150MHz.What is the physical length of this cable?

Find the transmitters unmodulated carrier power, At the transmitter in a st...

At the transmitter in a standard AM system, P f = 50 W. In the receiver (S 0 /N 0 ) AM = 250 when (S i /N i ) AM = 3000. Find the transmitter's unmodulated carrier power and t

What are the major systems of a telecommunication network, Q. What do you u...

Q. What do you understand by major systems of a telecommunication network? Explain in detail the subscriber loop systems. Ans: Major systems of any telecommunication netw

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