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

Electrical machine, transformer voltage induced in armatur of ac commentato...

transformer voltage induced in armatur of ac commentator machin in case tha field flux in sinosoidal?..

What are the features used mode 2 in 8255, What are the features used mode ...

What are the features used mode 2 in 8255? The single 8-bit port in-group A is available. 1. The 8-bit port is bi-directional and additionally a 5-bit control port is availa

Transistors, how fet transistor works in self bias

how fet transistor works in self bias

Electrical distribution system, 1. Name the three parts of a programmable l...

1. Name the three parts of a programmable logic controller (PLC) and explain why the PLC is preferred by designers over electromechanical relays. 2. Medium-voltage circuit break

Determine the maximum value of the average torque, Q. A two-pole rotating m...

Q. A two-pole rotating machine with a singly excited magnetic field system as its stator and a rotor (that carries no coil) has a stator-coil inductance that can be approximated by

Describe the automated flow lines, Describe the Automated flow lines with s...

Describe the Automated flow lines with suitable diagrams? Also provide the Reason for Automating? Discuss the Work part Transfer Mechanisms in detail? Discuss the requirement fo

Draw the impedance diagram of the system, The one line diagram of a simple ...

The one line diagram of a simple power system is shown below.  The data of the system are given in the table below.  (a) Draw the impedance diagram of the system and mark all im

Embedded system, 10. List the three ways in which an RTOS handles ISRs in a...

10. List the three ways in which an RTOS handles ISRs in a multitasking environment

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