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

Capacitive var, how over compensation by capacitive var rises voltage in a ...

how over compensation by capacitive var rises voltage in a circuit?

#title.Shockley diode, I want proof of shockley diode equation with all ste...

I want proof of shockley diode equation with all steps

Emf, State and explain three factors upon which the induced electromotive f...

State and explain three factors upon which the induced electromotive force depends

Explain the different coupling schemes used in amplifiers, Q. Explain the d...

Q. Explain the different coupling schemes used in amplifiers? When amplifiers are cascaded, it is necessary to use a coupling network between the output of one amplifier and th

Characteristics of stepper motors - stepper motor , Characteristics of Ste...

Characteristics of Stepper Motors The main  characteristic of stepper  motors is torque  versus stepping or  pulse  rate. It give the  variation  of torque as a function of pu

Push instruction - stack operations , PUSH Instruction This  instructi...

PUSH Instruction This  instruction copies  the contents  of the specified  register  pair into the  stack. The  contents  of stack  pointer register  are decremented by two. Th

Classify the conducting materials, Classify the conducting materials. ...

Classify the conducting materials. Conducting materials are classified by low resistivity materials and high resistivity materials. Low resistivity materials: The conduct

Repeatability , Reproducibility and repeatability are measures of closeness...

Reproducibility and repeatability are measures of closeness with which a given input may be measured over again. The two terms cause confusion. Therefore, a distinction is made bet

For parity flag - return instructions , For Parity Flag PRE ( Return ...

For Parity Flag PRE ( Return on Parity Even)  and RPO ( Return on Parity Odd) Instructions RPE returns from the  subroutine to the  calling  program if parity flag is not s

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