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

Self-inductance and the induced e.m.f, Self-inductance and the induced e.m....

Self-inductance and the induced e.m.f Inductance is the name given to the property of a circuit whereby there is an e.m.f induced into the circuit by alter of flux linkages pro

Network theorems.., how to calculate voltage when 3 voltage sources are giv...

how to calculate voltage when 3 voltage sources are given?

Referring to figure evaluate current in circuit, Referring to Figure, let b...

Referring to Figure, let boxes 2, 3, and 5 consist of a 0.2-H inductor, a 5- resistor, and a 0.1-F capacitor, respectively. Given A = 5, and v 1 = 10 sin 10t, i 2 = 5 sin 10t ,

Why ce configuration is widely used in amplifier circuit, Q . Why CE Config...

Q . Why CE Configuration is widely used in amplifier circuit? The main utility of a transistor lies in its ability to amplify weak signals. The transistor alone cannot perform

Develop a two-dimensional addressing system, Q. Suppose a ROM holds a total...

Q. Suppose a ROM holds a total of 8192 bits. (a) How many bits long would the individual addresses have to be? (b) If the bits are organized into 8-bit memory words or bytes,

Transistor, can you differentiate the alpha,beta and gamma

can you differentiate the alpha,beta and gamma

Salary, electrical designer salary above 6years experience, in singapore

electrical designer salary above 6years experience, in singapore

Solve for amplitude and phase of the current and the voltage, Use PSpice to...

Use PSpice to solve for the amplitude and phase of the current and the voltage across the inductor in the circuit shown in Figure(a).

Explain resistivity of conducting materials, Explain factors that change th...

Explain factors that change the resistivity of conducting materials. Temperature- Electrical resistance of most metals rises with increase of temperature whereas those of sem

Material science, advantage and disadvantage of alloying steel with silicon...

advantage and disadvantage of alloying steel with silicon

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