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

Common-emitter configuration, Q. Common-Emitter Configuration? The emit...

Q. Common-Emitter Configuration? The emitter part of a circuit being common to both the input and the output portions, Figure (a) illustrates a common-emitter (CE) BJT amplifie

Laplace transform, 1. Find the general solution y(t) of the ordinary di ere...

1. Find the general solution y(t) of the ordinary di erential equation where ω is a non-negative constant. (Consider the ω = 0 and ω > 0 cases separately). 2. Use Laplac

Determine the overall power factor, A three-phase, wye-connected, cylindric...

A three-phase, wye-connected, cylindrical-rotor, synchronous motor, with negligible armature resistance and a synchronous reactance of 1.27 per phase, is connected in parallel wit

Inductive coupling, advantages and disadvantages of inductive coupling

advantages and disadvantages of inductive coupling

Unconditional jump - jump instruction , Unconditional Jump JMP ( Uncon...

Unconditional Jump JMP ( Unconditional Jump ) Instruction: This  instruction is used to transfer  the execution to the  specified  memory  address unconditionally ( does not c

Forward bias, Forward bias In forward bias, the p-type is linked with...

Forward bias In forward bias, the p-type is linked with the positive terminal and the n-type is linked with the negative terminal.In forward bias mode the PN junction operati

Basic circuit elements, Define inductance.Explain the classification of ind...

Define inductance.Explain the classification of inductors

Ohm, what is ohm?

what is ohm?

Define johnson counters to produce a time delay, Define Johnson Counters to...

Define Johnson Counters to Produce a Time Delay? The "serial in-serial out" shift register can be used as a time delay device. The amount of delay able to be controlled by:

Discuss endp assembler directive, Discuss the ENDP assembler directive ...

Discuss the ENDP assembler directive with example ENDP: It is stands for End Procedure, which informs assembler the end of a procedure. Within assembly language programm

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