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
Selection of Proper Fuse : Fuse is a safety device or a wire of metal in a cut-out which may be fused by an excessive current. The current drawn by an appliance is restricted by t

Q. Explain about blocking probabilityand Grade of service? And what do you mean by delay systems in telecommunication networks? Ans: Grade of service: In loss systems, traff

Q. Three single-phase 100-kVA, 2400:240-V, 60-Hz transformers (each ofwhich has an equivalent series impedance of 0.045+j0.16 referred to its low-voltage side) are connected to fo

Ans) A program runs on one machine and implements on another is known as cross-compiler Programs which compile on One Machine and implements on another machine is known cross

analysis and detail working of bootstrap sweep circuit

how can I simulate air variable capacitors in cst simulator?

Q. Draw and explain diode clipping circuit ? A diode clipping circuit can be used to limit the voltage swing of a signal. Clipper circuits are used to clip a portion of the w


For zero flag  RZ ( Return on Zero) and RNZ ( Return on no zero) Instructions RZ  returns from the subroutine to the  calling  program, if zero flag  is set  (Z= 1). The

Explain Sampling at the Nyquist Rate? What would happen if we reduced the sampling frequency? In the time domain, we would be getting less samples for each period. In the frequ