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

Illustrate about crossbar exchange, Q. Explain crossbar exchange, with all ...

Q. Explain crossbar exchange, with all call processing steps and diagrams. Ans: The basic concept of crossbar switching is to provide a matrix of n x m sets of contacts with

Energy bands, Energy Bands 1) Since isolated atoms are brought togethe...

Energy Bands 1) Since isolated atoms are brought together to make a solid, the electron wave functions begin to overlap. 2) Several interactions occur, and, at the proper i

Digital logic design, how to sort three number in descending order and disp...

how to sort three number in descending order and display on seven segment

Determine the type of the semiconductor, Determine the Type of the Semicond...

Determine the Type of the Semiconductor An unknown semiconductor has E g =1.1 eV and N t =N v . lt is doped with 10 16 /cm 3 donor atoms. - (a) Determine the type of the s

Estimate the network resistance, When three resistors R1, R2 and R3 are con...

When three resistors R1, R2 and R3 are connected in parallel as shown in the diagram. For these resistors the equivalent resistance is given by: a. Derive a rule to

Potentiometer, explain the details of varnier type potentiometer

explain the details of varnier type potentiometer

Representation of negative number, Representation of Negative Number: ...

Representation of Negative Number: As  mentioned  in chapter 1 in 8085  negative  numbers are represented in 2 complement  form  and subtraction is  performed  using 2  comple

Osillators.., what ie the use of mutual inductance in a hartley oscillator

what ie the use of mutual inductance in a hartley oscillator

Analog-to-digital converters, Analog-to-Digital (A/D) Converters An A/D...

Analog-to-Digital (A/D) Converters An A/D converter converts analog input signals into digital output data in many areas such as process control, aircraft control, and telemetr

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