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
Survey Process -  issues of power supply The steps to be followed in any like survey procedure are given below. There is always a possibility of going back to any previous ste

A three stage switching structure is to accommodate N = 128 input and 128 output terminals. For 16 first stage and 16 last stage, verify the number of cross points for nonblocking.

Supercomputer The largest  fastest and most  powerful  are called supercomputers. Supercomputers are mainly used for  weather forecasting remote  sensing image processing, biom

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

(a) Draw and illustrate the V-I characteristics of PN junction diode. How the characteristics reflected with change in temperature? (b) Describe physically why a PN junction dio

How is 8255 (Programmable Peripheral Interface) configured if its control register contains 9B h. Ans. Programmable Peripheral Interface Command Byte B (sets or

Explain explanatory notes on A/D conversion. The digital inventory is working a revolution into the field of microcontrollers, technology and microprocessors are used more effi

Q. A certain 10-hp, 230-V motor has a rotational loss of 600 W, a stator copper loss of 350 W, a rotor copper loss of 350 W, and a stray load loss of 50 W. It is not known whether

Saturation or active mode While V GS   > V th  and  V DS   > (V GS   - V th ) The switch is turned on, and a channel has been made that allows current to flow

Two sine waves along with periods of 10 ms and 30 ms are added to generate a single waveform. A spectrum analyzer is utilized to examine the frequency contents of the waveform. Wha