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
1. The photon fluence rate is 10 7 photons mm -2 sec -1 for a beam of γ rays. One fourth of the photons have energies of 100 keV, one half have energies of 80 keV and the remain

Rectifiers As discussed  above the  purpose  of the  rectifier is to  convert the incoming  ac from a transformer or other ac  source  to some  form of  pulsating dc. That it i

I need I circuit that calculates f(n) = 2^2^n, where n is a 4bit number. I tried with a decoder but unsuccessfully.

Outdoor Termination for Cables - Measures for Improving Connection Outdoor terminations for paper insulated or PILCA cables were generally used without much of a problem. With

Q. Explain Steady-State Stability? The property of a power system that ensures that it will remain in equilibrium under both normal and abnormal conditions is known as power-sy

Q. What is Pinch - off voltage?  The reverse bias is relatively large near the source. As a result, the depletion region intrudes into the channel near the drain, and the effec

Ask quedisadvantages stion #Minimum 100 words accepted#

Holding current The holding  current is  the value  of on state  current  required  to maintain  conduction once the  device  the device has  fully timed  on and  the  gate

Role of ERCs: A National Electricity Policy is one of the key instruments for providing policy guidance to the Electricity Regulatory Commissions in discharge of their functio

With the help of energy bands explain how conduction takes place in insulators. Insulators: Substance as wood, glass, that do not permit the passage of current through them