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
Actuators These devices convert electromagnetic energy to mechanical energy to produce intermittent mechanical movement (e.g. opening a valve in a central heating system or c

Q. Explain Television signal transmission? Television signals in television signal transmission are the electric signals generated by converting visual images through raster (T

what is serveces of operating system?

Operation of Zener Diode The Zener diode's operation depends upon the heavy doping of its p-n junction permitting electrons to tunnel from the valence band of the p-type mater

The covers of electrical machines are made of (A)  Soft magnetic materials.          (B) Hard magnetic materials. (C) Super conductors.                       (D) Semicond

??? ????? ????? ???????? ?????? ????????

A synchronous motor with a synchronous reactance of 12 ohms is operating with a current of 100 A at unity power factor supplying power to a large compressor. The phasor diagram for

What do you mean by Circuit Analysis Techniques?   One simplifying technique often used in complex circuit problems is that of breaking the circuit into pieces of manageable

Q. Explain the basic macroeconomic policy trilemma for open economies. Answer: Of three goals mainly countries share - independence in financial policy and stability in t

how much transformer oil is used in transformers