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
Role of Central and State Governments The subsequent roles of Central and State Governments are envisaged in the Act: The Central Government will Notify rules

block diagram of eigen face,Viola & Jones Method,Bio-ID,RWTH-i6 Groups of People Database

Gate terminal - field-effect transistor: The names of the terminals consider to their functions. The gate terminal might be thought of since controlling the opening and closin

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. Explain working of Cardiac Pacemaker? When blockage occurs to the biological signals that stimulate the heart to beat, the application of electric pacemaker pulses forcing t

Characteristics of Common Source Amplifier At low frequencies and by using a simplified hybrid-pi model, the following small-signal characteristics can be derived.

Define permanent magnet A permanent magnet is a piece of ferromagnetic material (like as iron, nickel or cobalt) which has properties of attracting several pieces of these mater

What is the power of the signal transmitted by powerful cell phones? Ans) The powerful cell phones can transfer a signal of 3 watts.

what is crossmagnetisation in dc generator

a) What do you mean by assembly procedures in FEM, discuss by taking suitable example of your choice. b) Write the potential energy equation for particular FE analysis of a prob