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

decimal to BCD code encoder active low

merits amd demerits of series and shunt clipper

Q. It is desired to cut a λ/4 length of RG58A/U cable (ε r = 2.3) at 150MHz.What is the physical length of this cable?

The new kitchen is to be 20feet long and it''s width is 75% of it''s length. The door to the kitchen is on the short wall and is 10% of the width of that wall. you want to put in m

Q. Using the small-signal equivalent circuit of a BJT with gm = 0.03 S, β = 75, and VA = 65 V, a load resistor RL is connected from the collector to the emitter, as shown in Figure

Q. What do you mean by Amplifier block? An amplifier can be modeled as a two-port device, that is, a box with two pairs of terminals designated as input and output, as shown in

Customer Indexing: Customer indexing (CI) is a method for enumerating the total number of consumers in a utility and tagging them to their respective poles, transformers and f

Q. Evaluate complex power in power system? The complex power ¯S in a single-phase systemis the complex sum of the real (P) and reactive (Q) power, expressed as follows:

Experiments conducted by Faraday and others using current carrying coils resulted in 'The Laws of Electromagnetic Induction' which state: 1)  'If the magnetic flux threading throu