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
how to make a underwater propulsion system?

The Ward-Leonard system, which is used in the control of large dc motors employed in rolling mills, is a highly flexible arrangement for effecting position and speed control of a s

why we plot graph to find bandwidth is drawn b/w av/avmax v/s frequency not av v/s frequency?

how back emf is produced in transformer?

Types of Field-Effect Transistors The channel of a FET (field-effect transistor) is doped to produce either an N-type semiconductor or a P-type semiconductor. The drain and so

Find the current through each resistor for the networking below using Superposition Theorem.

Q. Explain Repetitive coverage of satellite? Due to repeated passes of the satellite over the same reach, data is repeatedly acquired. Therefore, comparisons of a dynamic pheno

sketching of wire 1 is charged and wire 2 uncharged

A three-phase, wye-connected, cylindrical-rotor synchronous generator rated at 10 kVA and 230  V has a synchronous reactance of 1.5per phase and an armature resistance of 0.5  pe

atomic absorption theory