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

What do you mean by addressing and numbering, Q. What do you mean by addres...

Q. What do you mean by addressing and numbering? Numbering and Addressing: In data and telephone networks, end equipment are more often single units than multiple devices uni

What are hard magnetic materials, What are hard magnetic materials? Har...

What are hard magnetic materials? Hard Magnetic materials- They have a slowly rising magnetization curve along with large hysteresis loop area and therefore large energy losses

Can you explain binary number systems, Q. Can you explain Binary Number Sys...

Q. Can you explain Binary Number Systems? The Binary numbers are used to represent digital information because like most digital systems, binary numbers have only two possible

Effect of feedback on dynamic response and bandwidth, Q. Effect of feedback...

Q. Effect of feedback on dynamic response and bandwidth? Let us consider the block-diagram representation of the open-loop system shown in Figure 16.2.5(a), whose direct transf

Determine the electric force on each charge, Q Point charges, each of √4πε0...

Q Point charges, each of √4πε0 C, are located at the vertices of an equilateral triangle of side a. Determine the electric force on each charge.

Series-parallel magnetic circuit, Series-Parallel Magnetic Circuit: Fi...

Series-Parallel Magnetic Circuit: Figure shows an electromagnet made of cast steel contain a coil of 500 turns wound on the central limb. The cross-sectional area of the outer

Counters, i need a counter of following o/p truth table 00000000 10000000 1...

i need a counter of following o/p truth table 00000000 10000000 11000000 11100000 11110000 11111000 11111100 11111110 11111111 00000000 10000000 . . . so please suggest me some IC

Calculate the thermal velocity of an electron, Question: a) Describe t...

Question: a) Describe two mechanisms by which electrons can be excited from the valence band to the conduction band? b) Given that the direct-band gap energy for Gallium N

What is key bouncing, What is Key bouncing? Mechanical switches are us...

What is Key bouncing? Mechanical switches are used as keys in lots of the keyboards. When a key is pressed the contact bounce back and forth and settle down only after a littl

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