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.   Define and explain the critical field circuit resistance and critical speed of a DC shunt generator.   Ans. The OCC and R - line for a DC shunt generator. As, R f is

region of convergence of (Z+2)*(12z-1)/((3z-1)*(4z+1 ))



a. Explain State Transition Diagram and define the various SDL symbols used in state transition diagram. b. Draw the signal exchange diagram for a local call used to show the se

Name the special functions registers available in 8051. Accumulator B Register Program Status Word. Stack Pointer. Data Pointer. Port 0 Port 1 Port 2 Po

Regenerative Braking Control In this  methods  motor  behaves like a  generator  and the kinetic energy of the  motor  and connected load is  returned to the supply. If means

1. Data is to be transmitted using a modem at 9600 bps. Determine the minimum bandwidth of the system with the following modulation methods (a) FSK (b) ASK. Use the excess

weighted resistor and r2r ladder d/a converter

Q. Describe the basic types of Number Systems? Probably the largest stumbling block most beginning programmers encounter when attempting to learn assembly language is the commo