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

Voltage quadrupler, Voltage Quadrupler : A voltage quadrupler circuit is s...

Voltage Quadrupler : A voltage quadrupler circuit is shown in fig. which provides output voltage V0 = 4 Vm. Operation : Capacitor C 1 , C 2 and C 3 charges to Vm, 2Vm and 2Vm

Basic electromagnetic principles, It has been known for a thousand years or...

It has been known for a thousand years or more (originating in China) that certain (magnetic) materials would always orientate    themselves in a  particular direction if suspended

Objectives of electricity and gas hazards, Objectives After studying th...

Objectives After studying this unit, you should be able to: 1. Describe the consequences of passing electric current through human body, 2. State and recognise the colour

A 450 ns eprom won''t work directly with a 5mhz 8088, A 450 ns EPROM won't ...

A 450 ns EPROM won't work directly with a 5MHz 8088.Why? Explain. While the 8088 is operated along with a 5 MHz clock, it permits 460 ns for the memory to access data. Due to t

Find the bandwidth of the modulated signal, The signal m(t), whose frequenc...

The signal m(t), whose frequency spectrum M(f ) is to be transmitted from one station to another. Let the signal be nor- malized, i.e., -1 ≤ m(t) ≤ 1. Find the bandwidth of the mod

Reasons for the augmentation of electromagnetic radiation, Question: Ge...

Question: General EMC Knowledge (a) Give 2 reasons for the augmentation of electromagnetic radiation in urban regions. (b) Pointe aux Diable bears its name due to the a

Biasing the bjt, Q. Biasing the BJT? A simple method of biasing the BJT...

Q. Biasing the BJT? A simple method of biasing the BJT is shown in Figure. While no general biasing procedure that will work in all cases can be outlined, a reasonable approach

3-phase 3 wire meter, 3-Phase 3 Wire Meter A 3-phase 3 wire meter has ...

3-Phase 3 Wire Meter A 3-phase 3 wire meter has 2 elements of each category on the other hand of 3 elements as in the case of 3-phase 4 wire meter. The primary principle of op

Define intermodal dispersion, Define intermodal dispersion? Dispersion...

Define intermodal dispersion? Dispersion of the transmitted optical signal causes distortion for both digital and analog transmitted signal. The dispersion causes broadening o

Customer relationship management software, Customer Relationship Management...

Customer Relationship Management Software CRM software products are most varied and variable in cost and functionality. The significant CRM software application includes: a

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