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
Explain Dual Slope ADCs Dual slope ADCs make use of a capacitor connected to a reference voltage. The capacitor voltage begins at zero and is charged for a set time through the

What is the function of mode set register in 8257? The mode set register is used for programming the 8257 as per the needs of the system. The function of the mode set register

Q.   What is a wave analyzer? Explain any one technique of wave analyzer giving its application also. OR Write short note on HETERODYNE Wave analyzer. OR Explai

A sequential circuit has two inputs w1 and w2, and an output, z. Its function is to compare the input sequences on the two inputs. If w1=w2 during any four consecutive clock cycl

Consider the circuit in Figure (a), which include a controlled source, and find the current in the 5-V source and the voltage across the 5- resistor by using (a) the loop-current

Q. Characteristics of Transformer? The characteristics of most interest to power engineers are voltage regulation and ef?ciency. The voltage regulation of a transformer is a me

A three-phase, 34.5-kV, 60-Hz, 40-km transmission line has a per-phase series impedance of 0.2+j0.5/km. The load at the receiving end absorbs 10 MVA at 33 kV. Calculate the follow

Explain the various modes in which DMAC works. Working of Direct memory access controller: The modes of operation has demand mode, block mode, single mode and cascade mode.

DAA Decimal Adjust Accumulator Instruction This  instruction adjusts the contents  of the accumulator  into BDC (Binary Coded Decimal )  form  after a BCD  addition. It should

Time constant Time constant, defines as time for current achieve maximum (IM) if this maintain the early promotion rate current.