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. What do you mean by Output Voltage Swing? Ideally this is equal to the difference between the two supply rail voltages, although in practice it is a few volts less.

explain the function of channel gain

Question: a) Give the instruction cycle state diagram for a typical Von Neumann machine. b) Give two diagrams to differentiate between a Memory and CPU connections. c) Co



Q. Briefly Explain Energy and Power? If a charge dq gives up energy dw when going from point a to point b, then the voltage across those points is defined as v = dw/dq If

Name the Effects of electric current There are three Effects of electric current:- A) magnetic effect B) chemical effect C) heating effect

Gis for Distribution Network Management: You are well aware of the problems facing the distribution utilities to meet the day-to-day requirements of the power consumers, like

Q. What do you mean by Nibble? The nibble is a collection of bits on a 4-bit boundary. It would not be a particularly interesting data structure except for two items BCD (binar