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

Calculate the magnetic flux in the core, Q. A toroid with a circular cross ...

Q. A toroid with a circular cross section is shown in Figure. It is made from cast steel with a relative permeability of 2500. The magnetic flux density in the core is 1.25 Tmeasur

What is the purpose of clock signal in an 8086 system, What is the purpose ...

What is the purpose of clock signal in an 8086 system? 8086 needs clock signal with 33%duty cycle from some external operations.8086 processor needs 5 MHZ clock signal

Fourier deconstruction, Find the Fourier series as far as the third harmoni...

Find the Fourier series as far as the third harmonic, to represent the periodic function y, given by the values in the following table. x 0 o 30

Network analysis, expain how to do proper initial approximatio for the give...

expain how to do proper initial approximatio for the given cct....... by a example

Evaluate the transfer function for multi loop control system, Q. The block ...

Q. The block diagram of Figure represents a multi loop control system. (a) Determine the transfer function C(s)/R(s). (b) For G 2 G 3 H 2 = 1, evaluate C(s)/R(s).

Vehicle tracking system, coding for vehicle tracking system using gsm in av...

coding for vehicle tracking system using gsm in avr atmega16 microcontroller

Split-phase or resistance-split-phasemotor, Q. Split-phase or resistance-sp...

Q. Split-phase or resistance-split-phasemotor? Split-phase or resistance-split-phasemotors: Split-phasemotors have two statorwindings (amainwinding and an auxiliarywinding)with

How many electrons all semiconductor have in last orbit, All semiconductors...

All semiconductors in their last orbit have (A)  8 electrons.  (B) 2 electrons. (C)  4 electrons. (D)  6 electrons. Ans:     All semiconductors in their

Show advantages of oscillators, Q. Show Advantages of Oscillators? Alth...

Q. Show Advantages of Oscillators? Although oscillations can be produced by mechanical devices (e.g. alternators), but electronic oscillators have the following advantages:

Working of microprocessor control, Q. Working of Microprocessor Control? ...

Q. Working of Microprocessor Control? The microprocessor, which has rapidly become a key component in digital control systems, and its associated circuits function as the digit

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