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

Draw and explain a differential circuit, Q. Draw and explain a differential...

Q. Draw and explain a differential circuit A differentiator is a high pass RC circuit having a very small time constant. It is a circuit which gives an output voltage proportio

#title.Shockley diode, I want proof of shockley diode equation with all ste...

I want proof of shockley diode equation with all steps

Explain procedure to test the power line, Explain procedure to take shut do...

Explain procedure to take shut down and to test the power line before starting work? Ans: Study the circuit and find out the circuit breaker to be opened. Open and lock the c

Petri nets, Discrete Systems Control: cat and mouse example with 4 rooms us...

Discrete Systems Control: cat and mouse example with 4 rooms using petri nets

Op amps, calculating different op amps

calculating different op amps

Electric circuits, How to design a single phase distribution circuit from a...

How to design a single phase distribution circuit from a supply point to a load?

Change in an organisation, Change in an organisation: Change might ...

Change in an organisation: Change might be perceived in two ways: Change as continuous and intrinsic to an organisation and change as discontinuous & extrinsic. A force

The maximum power transfer theorem, The maximum power transfer theorem stat...

The maximum power transfer theorem states: 'A load will receive maximum power from a linear bilateral dc network when its total resistive value equal to the Thevenin's or Norto

Voice control mobile base, this is my final year project and i need help on...

this is my final year project and i need help on how to about it.

Magnetic Bond Method:, how does the magnetic bond method work? Application ...

how does the magnetic bond method work? Application of the magnetic bong method & advantages and disadvantages of the magnetic bond method.

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