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
Explain the operation of IRET instruction.  What memory locations contain the vector for an INT 34 instruction? The Interrupt return (IRET) instruction is utilized only along w

Q. Use a 4-to-1multiplexer to simulate the following: (a) NAND logic function. (b) EXCLUSIVE-OR logic function. (c) Σ m (1, 2, 4).

Q. What are the supplementary services? new services are called supplementary services and some of the prominent ones are as below: Category 1: Abbreviateddialling

Q. pn-Junction under Bias? Let an external source be connected between the p- and n-regions, as shown in Figure (a). (b) shows the circuit representation of the pn-junction or

Q. Consider the magnetic circuit shown in Figure. Assume the relative permeability of the magnetic material to be 1000 and the cross-sectional area to be the same throughout. Deter

Thermocouples are used for the measurement of (A)  Humidity.                                   (B) Pressure. (C) Temperature.                               (D) Density.


A magnetic crane used for lifting weights can be modeled and analyzed as a simple magnetic circuit, as shown in Figure. Its configuration consists of two distinct pieces of the sam

a dc generator has 300 turns in each field coil. the flux per pol is 0.1 wb. find the average value of EMF inducet in field winding in the flux decays to zero in 0.3 second?

Q. Consider two 1-C charges separated by 1min free space. Show that the force exerted on each is about one million tons.