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

Composition of mosfet, Composition of MOSFET  In a test pattern the P...

Composition of MOSFET  In a test pattern the Photomicrograph of two metal-gate MOSFETs. Probe pads for two gates and three source or drain nodes are entitled.Generally the se

Electric automobile system specifications, The automobile shall not rely on...

The automobile shall not rely on fossil fuel for energy. The automobile shall be designed using available and emerging technology. The automobile shall seat at least five

Determine the current in the diode, Q. Consider the circuit shown in Figure...

Q. Consider the circuit shown in Figure. Determine the current in the diode by assuming: (a) The diode is ideal. (b) The diode is to be represented by the model of Figure 7.2

Determine resistance in ideal inverting summing amplifier, Q. In the ideal ...

Q. In the ideal inverting summing amplifier circuit with two inputs, for R f = 10 k, find R 1 and R 2 so that v o = -10v i1 -5 vi2 .

Find the current through each resistor, For the circuit in figure, find the...

For the circuit in figure, find the current through each resistor.

Control, The goal of this project is to model a system and to design a cont...

The goal of this project is to model a system and to design a controller for the system so that the closed-loop system performs satisfactorily.

Determine the fall-off rate, Q. A low-pass filter circuit is shown in Figur...

Q. A low-pass filter circuit is shown in Figure. Using a PSpice program and PROBE, obtain the Bode magnitude plot for the transfer function ¯H(f) = ¯V out / ¯V in for the frequ

Methods of material handling, Q. Show the Methods of material handling? ...

Q. Show the Methods of material handling? Methods of material handling during operations and maintenance activities shall be considered for all facilities to ensure that the fi

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