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
OUT Output Instruction This instruction is used  send data byte  stored in the accumulator  to the  output  port  whose  address  specified in the instruction. The instruction

It is needed to use a half-wave rectifier for a dc power supply that gives an average dc output voltage of 15 V and a maximum ±1V ripple is permitted. The rectifier feeds a load of

#Minimum 100 words accepted#explain depletion operations of MOSFET


Control Strategies Equation shows  that output  voltage V0 can be controlled through α and this duty cycle  α can be varied by various  strategies which are as follows.

Q. The model of an elemental length of a lossy transmission line is shown in Figure (a), along with its parameters, where R is series resistance per unit length, L is serie

Q. What are the basic operations of  MOSFET? The gate to source voltage is set to zero volts by the direct connection from one terminal to the other,and a voltage Vds is applie

Q. With a circuit diagram explain how a transistor in common-base configuration amplify signals.  The common-base terminology is derived from the fact that the base is common t

For the 3 bus system shown below all values are given in pu on a 100MVA base (a) Use Matlab functions lf gauss and lf Newton to find power flow solution for the system, accurate

Q. Sections construct in FORTAN? The sections construct is a no iterative work sharing construct which causes structured blocks to be shared among threads in team. Every struct