Computes similarity between two histograms, Electrical Engineering

Assignment Help:

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?


Related Discussions:- Computes similarity between two histograms

Schrodinger’s wave equation, Discuss the degeneracy of energy of energy sta...

Discuss the degeneracy of energy of energy states. Solve the Schrodinger’s equation for a free particle in three dimensional boxes and find Eigen values and Eigen function of free

Uses of zener diode, Uses of Zener Diode Zener diodes are extensively...

Uses of Zener Diode Zener diodes are extensively used as voltage references and like shunt regulators to regulate the voltage across small circuits. While connected in parall

Describe the function of material handling system, a) Diagram FMS layout co...

a) Diagram FMS layout configurations with labeling. b) what are the basic components of FMS?Discuss in briefly. c) Describe the function of material handling system.

Optoelectronic, Need a project in Optoelectronic with simulation in Optispi...

Need a project in Optoelectronic with simulation in Optispice or Matlab.with complete report and presentation. ANy ideat about project and how much does it cost.

What is the pipelining, A method used in advanced microprocessors where the...

A method used in advanced microprocessors where the microprocessor begins implementing a second instruction before the first has been done. That is, various instructions are in the

The time constant of the field winding, The field winding of a 200 V d.c. m...

The field winding of a 200 V d.c. machine has a resistance of 20? and an inductance of 500mH. Calculate: (a)  The time constant of the field winding (b)  The value of curr

Determine the performance of the circuits, With the development of cheap an...

With the development of cheap and reliable operational amplifiers the need to design amplifier circuits has disappeared. However it is still necessary to utilise these devices in a

What is the voltage gain, Q. What is the voltage gain? voltage gain is ...

Q. What is the voltage gain? voltage gain is the ratio of output voltage to input voltage. It is represented as Av,vo-voltage output,Vi-voltage input,Ic-collector current,Ie

Calculate the value of load resistance, A battery having of 5 cells with em...

A battery having of 5 cells with emf and internal resistance of every cell is 1.5V and 0.25Ω connected in series. If the current flow by load resistance is 1.5A, calculate the valu

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd