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

Sr flip flop - introduction to microprocessors , SR Flip Flop The SR  f...

SR Flip Flop The SR  flip  flop is an arrangement  of logic gates that maintain astable output even after  the  input  are turned off.  It has  two  inputs namely  SET input (S

#titl4 bit binary addere.., Ask question #Madvantages of 4 bit binary adder...

Ask question #Madvantages of 4 bit binary adder inimum 100 words accepted#

Resistance temperature sensor, A Platinum resistance temperature sensor has...

A Platinum resistance temperature sensor has a resistance of 120 ohm at 0°C and forms one arm of a Wheatstone bridge. At this temperature the bridge is balanced with each of the ot

Find the voltage across the 50-resistor, Q. Write and execute a PSpice prog...

Q. Write and execute a PSpice programto analyze the resistor bridge circuit shown in Figure to solve for the node voltages and the voltage-source current. Then find the voltage acr

Pneumatics, 3. Design and draw a circuit using the cascade system to operat...

3. Design and draw a circuit using the cascade system to operate two cylinders (A and B) which, on the operation of a start valve, produces the sequence A – B + B – A+. The cylinde

What do you mean by induction, Q. What do you mean by Induction? The es...

Q. What do you mean by Induction? The essentials for producing an emf bymagneticmeans are electric andmagnetic circuits,mutually interlinked. Figure (a) shows a load (or sink o

Calculate I function using logic gates, I need I circuit that calculates f(...

I need I circuit that calculates f(n) = 2^2^n, where n is a 4bit number. I tried with a decoder but unsuccessfully.

Find resistance of the armature circuit and field circuit, When delivering ...

When delivering rated load a 10-kW, 230-V self excited shunt generator has an armature-circuit voltage drop that is 6% of the terminal voltage and a shunt-field current equal to 4%

Explain memory mapped i/o scheme, Explain Memory Mapped I/O Scheme. Me...

Explain Memory Mapped I/O Scheme. Memory Mapped I/O Scheme: In such scheme there is only one address space. These address space is defined as all possible addresses which m

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