Image gradient, Electrical Engineering

Assignment Help:

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?


Related Discussions:- Image gradient

Explain the ascii character set - microprocessor, Explain the ASCII Charact...

Explain the ASCII Character Set? Most programming languages have a means of defining a character as a numeric code and, conversely, converting the code back to the character. ASC

Explain computer-aided circuit analysis, Q. Explain Computer-aided circuit ...

Q. Explain Computer-aided circuit analysis? A word of caution is appropriate if this is the student's first experience with simulation. Just as the proliferation of calculators

Distribution loss reduction and efficiency improvement, Distribution Loss R...

Distribution Loss Reduction and Efficiency Improvement You are well aware of the fact in which all energy supplied to a distribution utility does not reach the end consumers.

Explain about automatic stabilizers, Q. Explain about Automatic Stabilizers...

Q. Explain about Automatic Stabilizers? Automatic Stabilizers: Government fiscal policies which have effect of automatically moderating cyclical ups and downs of capitalism.

How much energy could be saved on motor.., configured as attraction force ...

configured as attraction force rotation and brief stutter at zero degree putting a diode to a capacitor collecting energy of collapsing magnetic field to recycle on next power inpu

Image retreval and face recognization technique, block diagram of eigen fac...

block diagram of eigen face,Viola & Jones Method,Bio-ID,RWTH-i6 Groups of People Database

Determine the doppler frequency, We are given an M=32 pulse sequence of slo...

We are given an M=32 pulse sequence of slow time data, collected with PRF = 10 kHz.  We want to use a Cooley-Tukey radix 2 FFT algorithms to compute the Doppler spectrum of the dat

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd