Computes similarity between two histograms, Electrical Engineering

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?

Posted Date: 2/26/2013 12:25:57 AM | Location : United States







Related Discussions:- Computes similarity between two histograms, Assignment Help, Ask Question on Computes similarity between two histograms, Get Answer, Expert's Help, Computes similarity between two histograms Discussions

Write discussion on Computes similarity between two histograms
Your posts are moderated
Related Questions
Q. An antenna has an aperture area of 10 m 2 ,an aperture ef?ciency of 0.6, and negligible losses. If it is used at 5 GHz, determine: (a) Its power gain. (b) The maximum pow

A rifle with a mass of 3,5 kg fires a bullei with a mass of 120 g with a muzzle velocity of 420 mls. Calculate the following: 1.4.''l The momentum before the rifle was fired ''1.4.

Determine power reflection coefficient at the input port: For the MESFET equivalent circuit shown below, find S 11 and S 22 . Note that resistances associated with the voltag

A typical 12-V automobile battery, storing about 5 megajoules (MJ) of energy, is connected to a 4-A headlight system. (a) Find the power delivered to the headlight system. (b

Explain Sampling at the Nyquist Rate? What would happen if we reduced the sampling frequency? In the time domain, we would be getting less samples for each period. In the frequ

Calculate the resistance of a 2 km length of aluminium overhead power cable if the cross-sectional area of the cable is 100 mm 2 . Take the resistivity of aluminium to be 0.03x10 -

what are the dwarbacks of clipper?

In n type semi conductor added impurity is (A) Pentavalent.                                (B) Divalent. (C) Tetravalent.                                 (D) Trivalent.

determine the efficience of a 16 KVA transformer for the full-load,unit power factor

Q. What do you mean by FM Stereo? IT  shows the block diagram of an FM stereo transmitter and an FM stereo receiver. The following notation is used: • f L (t), fR(t): Left a