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

Satellite Communication, ubmission Deadline: Wednesday, July 7, 2021 Assign...

ubmission Deadline: Wednesday, July 7, 2021 Assignment 2 EE5543 - Satellite Communication Question 1: MEASAT-1 is located at 91.5 o E and operating at the base frequency of 10.982

Compute the power factor for zero voltage regulation, A three - phase,wye -...

A three - phase,wye - connected, 2500-kVA, 6600- V, 60-Hz turboalternator has a per-phase synchronous reactance and an armature resistance of 10.4 and 0.071 , respectively. Comput

Explain fundamentals of load flow analysis, Explain Fundamentals of Load Fl...

Explain Fundamentals of Load Flow Analysis The calculation of electrical power system load flow or current flow is a problem which has no direct solution. It is not that a solu

Explain a common emitter configuration without a feedback, Q. Explain a com...

Q. Explain a common emitter configuration without a feedback. A simple common emitter transistor amplifier--having no negative feedback--is not an ideal amplifier. This is beca

Find the magnetic-field force exerted on the moving bar, Consider the arran...

Consider the arrangement shown in Figure. A conductor bar of length l is free to move along a pair of conducting rails. The bar is driven by an external force at a constant velocit

Change management in power distribution, Change Management in Power Distrib...

Change Management in Power Distribution: Organisational change might be described as an organisation-wide effort to augment the effectiveness of an organisation through str

D.c machine, What are the advantages of distributing windings in an alterna...

What are the advantages of distributing windings in an alternator?

What is the size of ports in 8255, What is the size of ports in 8255? P...

What is the size of ports in 8255? Port-A : 8-bits Port-CU : 4-bits Port-B : 8-bits Port-CL : 4-bits

Psuedo code, Ask questiIn a right triangle, the square of the length of one...

Ask questiIn a right triangle, the square of the length of one side is equal to the sum of the squares of the lengths of the other two sides. Stephanie has the integer lengths of t

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