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 does eu do?, Basically,8086 is separated into two part. 1. BIU. 2. EU ...

Basically,8086 is separated into two part. 1. BIU. 2. EU Execution Unit(EU)Fetch the instruction from Queue(memory(6 byte) in BIU.) and implement it.

Determine the percentage drop in load current, Q. A practical current sourc...

Q. A practical current source is represented by an ideal current source of 200 mA along with a shunt internal source resistance of 12 k. Determine the percentage drop in load curr

Usage of fixed bias, Usage: Because of the above inherent drawbacks, f...

Usage: Because of the above inherent drawbacks, fixed bias is seldom used in linear circuits (that is those circuits which use the transistor like a current source). Instead,

Characteristics of common source amplifier, Characteristics of Common Sou...

Characteristics of Common Source Amplifier At low frequencies and by using a simplified hybrid-pi model, the following small-signal characteristics can be derived.

Call instructions, Call Instructions Call instruction are used to call ...

Call Instructions Call instruction are used to call a  subroutine program in assembly language  procedure and functions are called  subroutines. There are two types  of calls i

Schottky diodes - types of power diodes , Schottky  diodes The schot...

Schottky  diodes The schottky diodes have very fast recovery time and  low forward drop.  The current  ratings of  these diodes  vary  from 1A to 300 a and  maximum  allowable

500Mhz Collpitts Oscillator, How to design an Oscillator Circuit (500 MHz r...

How to design an Oscillator Circuit (500 MHz range) with no Op amps?

Define the x-nor or exclusive-nor gate, Define the X-NOR or Exclusive-NOR G...

Define the X-NOR or Exclusive-NOR Gate?   This is the EX-OR gate with the output inverted, as shown by the 'o' on the output and the output Q is true if inputs A and B a

Lc filter, LC Filter To the load resistance R L the ripple factor i...

LC Filter To the load resistance R L the ripple factor is directly proportional in the inductor filter and inversely proportional to R L in the capacitor filter. Hence i

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