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
Production of Rotating Fields from Single-Phase Windings In this subsection we show that a single-phase winding carrying alternating current produces a stationary pulsating flu

Charge and Electric Force The proton has a charge of +1.602 10 -19 coulombs (C), while the electron has a charge of -1.602 × 10 -19 C. The neutron has zero charge. Electric c

Q. Define Number Systems? A number system, in general, is an ordered set of symbols (digits) with relationships defined for addition, subtraction, multiplication, and division.

What are operations performed on data in 8085 The various operations performed are Store 8-bit data Perform arithmetic and logical operations Test for conditio

Q. Write a note on feedback of emitter follower? The emitter follower can be seen to be an example of negative feedback when the relationship is put in the form

Q. Use (a) mesh analysis and (b) nodal analysis to determine the voltage ¯V at the terminals A-B of Figure.

Define Multiple Inputs - Control System When there is much more than one input to a system, the superposition principle can be employed. This is that: The response to variou

Ask question #Minimum 100 words accepted how does the charge plate relate to the movement of electrons

Define the assign nodel voltage

Uninterruptable power  Supply An uninterruptible  power supply  provides emergency power when  utility power  is not  available. It  maintains the supply  under  all condition