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

Determine and plot the ratios for air, 1.Determine and plot the ratios μ tr...

1.Determine and plot the ratios μ tr /μ and μ ab /μ  from 5 keV to 100 MeV for      (a) air,              (b) water,      (c) muscle,     (d) bone, and      (d) lead

Draw the differentiator circuit, Q. Draw the differentiator circuit. Explai...

Q. Draw the differentiator circuit. Explain its principle of operation with necessary waveforms ? A circuit in which the output voltage is directly proportional to the derivati

Evaluate the four parameters of the hybrid model, Q. Show that any amplifie...

Q. Show that any amplifier represented by the model of Figure of the text can also be represented by themore general hybridmodel of Figure. Evaluate the four parameters of the hybr

Interrupt signals - pins and signals , Interrupt Signals There are five...

Interrupt Signals There are five  interrupt  signals in 8085 microprocessor.  These  signals  are used to inter rut the  current  program  under  execution and  transfer the ex

Discuss the operation of the jk flip-flop, Q. Figure shows the master-slave...

Q. Figure shows the master-slave JKFF. Assuming that the output changes on the falling edge of the clock pulse (i.e., when the clock pulse goes from high to low), discuss the opera

Triac - power semiconductor devices , Triac  As the  name  suggests T...

Triac  As the  name  suggests TRIAC  is advice which  has three  electrodes and works  on AC.  The three terminals of triac are MTI ( Main Terminal ) MT2 ( Main  terminal ) an

Can you show the decimal to octal conversion, Q. Can you show the Decimal t...

Q. Can you show the Decimal to Octal Conversion? To convert decimal to octal is somewhat more difficult. The usual method to convert from decimal to octal is repeated division

Canonical sum-of-products form, Q. The truth table for F(A,B,C) = mi (2, 3,...

Q. The truth table for F(A,B,C) = mi (2, 3, 4 5) is as follows: (a) Express F in a canonical sum-of-products form. (b) Minimize F in an SOP form, and obtain a possible realiz

Electrical Machines, Design a suitable double –layer lap winding for a 6-po...

Design a suitable double –layer lap winding for a 6-pole dc armature with 18 slots and two coil sides per slot. Give values of front-pitch, brack–pitch and commutator pitch. Draw 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