Computes similarity between two histograms, Electrical Engineering

Assignment Help:

Write an m-file "distan.m"  which does all the following operations:

(i) computes 10 dimensional histogram of an input image
            h1=sum(hist(imn,10)');

(ii) computes negative image and  its histogram

(iii) normalizes  vectors h1, h2 such that the integral of each is 1
Why does it have to be normalized?

(iv) displays both histograms

(v) computes similarity between two histograms using
            euclidean distance,
            histogram intersection,
            correlation,
            chi-square

function distan(im)
imn=imnorm(im)/255.0;
h1=?
h1n=?

imnn=?
h2=?
h2n=?

%euclidean
he=sqrt(sum((h1-h2).^2))

%correlations
hc=?

%intersection, use min function
hh=?

%chi-square, use sum function
hch=?

How do the distances differ?


Related Discussions:- Computes similarity between two histograms

Magnetic ckt''s, what is the difference between statically and dynamically ...

what is the difference between statically and dynamically induced emf''s

DECISIEN FEEDBACK, Do you provide me matlab code for comparison the perfor...

Do you provide me matlab code for comparison the performance of decision feedback equalizer over MLSE

State the drawbacks of in band and out band voice signalling, a. Enlist the...

a. Enlist the benefits and drawbacks of in band and out band voice signalling? b. Describe Channel Associated mode, Channel Non-Associated mode and QuasiAssociated mode of commo

Consider the circuit of the noninverting amplifier, (a) Consider the circui...

(a) Consider the circuit of the noninverting amplifier in Figure, including an ideal op amp. Obtain an expression for the voltage gain of the overall circuit. (b) Let R i = 10

Sketch the inductor voltage and stored energy, (a) Consider a 5-µH inductor...

(a) Consider a 5-µH inductor to which a current source i(t) is attached, as shown in Figure (b). Sketch the inductor voltage and stored energy as a function of time. (b) Let a v

Cpopy 16 bit data register pair , cpopy 16 bit data  Register pair E...

cpopy 16 bit data  Register pair Example  : Copy  16 bit  data 3 E 21H  in register pair BC Solution   :The  statement  is LXI B 3E 21H 16  bit data  3E 21H in reg

Determine the node voltage, Determine the node voltage: Determine the ...

Determine the node voltage: Determine the node voltage V and then current flowing through each element by using KCL. Solution Apply KCL at the node whose voltage is V.

Explain the term assembler directives, Explain the term assembler directive...

Explain the term assembler directives. An assembler directive is a statement to provide direction to the assembler to execute the task of assembly process. These assembler dire

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