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
Body Effect The body effect explains the changes in the threshold voltage through the change in the source-bulk voltage, approximated by the subsequent equation: In whi

Lenz's law states: 'The direction of an induced e.m.f. is always like that it tends to set up a current opposing the motion or the change of flux responsible for inducing that

State by inspection (i.e. without performing any formal analysis) all you can about each of the periodic waveforms shown in FIGURE 1 in terms of their Fourier series when analysed


A squirrel-cage inductionmotor operates at a slip of 0.05 at full load. The rotor current at starting is five times the rotor current at full load. Neglecting stator resistance and

Ten 1.5V cells in series, each cells having an internal resistance of 0.3Ω, are connected series to a load of 25Ω. Determine : i.The current flowing the circuit

It is required that the current floor position be displayed as a number 1, 2, or 3 on a seven segment LED display on floor 1, which is quite close to the LCU. Data Storage It

Practical application of rc coupled amplifer

Q. A60-Hz, three-phase transmission line has a total per-phase series impedance of 35+j140 .Ifit delivers 40 MW at 220 kV and 0.9 power factor lagging, find: (a) The voltage, c

Q. What do you mean by Amplifier block? An amplifier can be modeled as a two-port device, that is, a box with two pairs of terminals designated as input and output, as shown in