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

Analog signal processing, Derive Equation 13-20 pertaining to the convers...

Derive Equation 13-20 pertaining to the conversion algorithm based on redefined unit capacitor

Op-amp amplifier, A voltage signal generated by a sensor conditioning circu...

A voltage signal generated by a sensor conditioning circuit varies from -0.5V to +0.5V . The signal from the sensor is to be connected to the analog to digital  converter which onl

Armature reaction, is armature reaction good or bad for dc generator?

is armature reaction good or bad for dc generator?

Determine the total power in balanced delta-connected load, Q. Two wattmete...

Q. Two wattmeters are used, as shown in Figure, to measure the power absorbed by a balanced delta-connected load. Determine the total power in kW, the power factor, and the per-pha

Define super scalar architecture, Define super scalar architecture. Su...

Define super scalar architecture. Super scalar architecture: The Pentium microprocessor is organized along with three execution units. Individual executes floating-point inst

Energy band diagram, Sketch the Fermi-Dirac distribution function, F(E), al...

Sketch the Fermi-Dirac distribution function, F(E), alongside the energy band diagram for an n-type semiconductor, indicating the position of the Fermi level, EF, and the donor lev

Power system model, #i have an error at in the Matlab power system model..t...

#i have an error at in the Matlab power system model..thus i couldn''t run it...

Emf, discuss the factor affecting the emf induced in electric machines

discuss the factor affecting the emf induced in electric machines

Magnetic Circuits:, A circular ring of magnetic material has a mean length ...

A circular ring of magnetic material has a mean length of 1m and a cross sectional area of .001m^2.A sawcut of 5mm width is made in the ring . calculate the magnetizing current req

Physics, what is the significant of damping coficient

what is the significant of damping coficient

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