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
(a) Evaluate whether the sinusoidal signal x(t) = A cos (2πf 0 t + θ) is an energy-type or a power-type signal. (b) Show that any periodic signal is not typically energy type, a

what is the definition of laws of chemical combination ?

Q. Show Applications for Synchronous Motors? With constant-speed operation, power factor control, and high operating efficiency, three-phase synchronous motors are employed in

How do I calculate the line-cable and cable-line values of reflection and refraction coordinates?

An  electric  heater  element  is  made  of  Nichrome  wire  having  resistivity  equal  to 100 ×10 -8 ohm-metre. The diameter of the wire is 0.3 mm. Calculate the length of the w

The variable resistor Z o in the circuit shown in Fig. 1  is adjusted until maximum average power is delivered to Zo. a)  Find the value of Z o b)  Calculate the maximum av

Explain Node-voltage and mesh-current analyses? The node-voltage and mesh-current methods, which complement each other, are well-ordered systematic methods of analysis for solv

Athree-phase, wye-connected, round-rotor, 220- V, 60-Hz, synchronous motor, having a synchronous reactance of 1.27  per phase and negligible armature resistance, is connected in p

Diode current: Zener region: when the reverse biased voltage is increase to a very high value then a point is reached where will is suddenly going a very high value. Th

Code, Stack, Data, Extra Segment registers in 8086.