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

Low investments in transmission and distribution system, Low Investments in...

Low Investments in Transmission and Distribution System The investment on T&D system in our country has commonly been lower than that on generation. It is hugely believed in

Compute the average number of open links, A zipper has N links every link h...

A zipper has N links every link has a state in which it is closed with energy 0 and a state in which it is open with energy 0 We require that the zipper only unzip from one side (s

Voltage regulator, Voltage regulator: A voltage regulator is an electr...

Voltage regulator: A voltage regulator is an electrical regulator intended to automatically keep a constant voltage level. A voltage regulator is an instance of a negative fee

State the significance of lock signal in 8086, State the significance of LO...

State the significance of LOCK signal in 8086? If 8086 is working at maximum mode, there are multiprocessors are there. If the system bus is given to a processor then the LOCK

Weighted resistor and the r-2 r ladder d/a converters, Q. What is the basic...

Q. What is the basic difference between the weighted resistor and the R-2 R ladder D/A converters?

Semiconductor diode, Semiconductor Diode: the semi conductor diode is ...

Semiconductor Diode: the semi conductor diode is formed by simply bringing n and p tripe material together (constructed from same base ge and si), at the instant the two mater

Define amplification factor, Q. Define amplification factor? Amplifica...

Q. Define amplification factor? Amplification factor  μ It is the ratio of the drain -source voltage (ΔVDS) to the change in the gate to source voltage (ΔV GS ) at constan

What is error-rate control, Q. What is error-rate control? A system is ...

Q. What is error-rate control? A system is said to possess error-rate damping when the generation of the output in some way depends upon the rate of change of the actuating sig

Determine the transfer function and driving-point impedance, Q. A filter is...

Q. A filter is a network employed to select one range of frequencies while rejecting all other frequencies. A basic building block often used in integrated-circuit filters is shown

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