Image gradient, Electrical Engineering

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?

Posted Date: 2/26/2013 12:22:10 AM | Location : United States







Related Discussions:- Image gradient, Assignment Help, Ask Question on Image gradient, Get Answer, Expert's Help, Image gradient Discussions

Write discussion on Image gradient
Your posts are moderated
Related Questions

Determine power reflection coefficient at the input port: For the MESFET equivalent circuit shown below, find S 11 and S 22 . Note that resistances associated with the voltag


Q. What is Traffic Intensity? Traffic Intensity: Traffic load on a given network may be on local switching unit, interoffice trunk lines or other common subsystem. For analyti


Role of Electricity Regulatory Commission in KPI The new Electricity Act, 2003, has empowered Electricity Regulatory Commission (ERC) to play an extremely decisive role in all

Q. Show Elementary Synchronous Machines? The polyphase synchronous machine operates with direct current supplied to the field winding (assumed to be on the rotor, which is usua

Q. For the circuit of Figure: (a) Find an expression for the power absorbed by the load as a function of RL. (b) Plot the power dissipated by the load as a function of the lo

An audiomessage is band-limited to 15 kHz, sampled at twice the Nyquist rate, and encoded by a 12-bit natural binary code that corresponds to Lb = 212 = 4096 levels, all of which s

Consider the circuit of Figure and obtain the complete solution for the voltage v C (t) across the 5-F capacitor and the voltage vx(t) across the 5- resistor.