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

Single Phase Induction Motor, How do I connect a Capacitor on the machine i...

How do I connect a Capacitor on the machine if it has a start mechanism

Resume, who to write resume for job

who to write resume for job

Techniques and resources in problem base learning, Techniques and resources...

Techniques and resources Different techniques and resources were used in different areas of the problem during the course of the project. The most important of them was th

Power, why do we use commutator?

why do we use commutator?

Circuit, Aplication of resonance in different divices

Aplication of resonance in different divices

Show implementation of synchronous counter using d flip-flop, Q. Consider t...

Q. Consider the synchronous counter shown in Figure of the text. (a) Draw its timing diagram. (b) Show the implementation of the same synchronous counter using D flip-flops.

TTL NAND gate, Q. Explain working of TTL NAND gate? The TTL logic famil...

Q. Explain working of TTL NAND gate? The TTL logic family uses only transistors instead of a combination of transistors and diodes. TTL has the same high and low ranges as DTL.

Determine the parameters of the double- revolving-field, Q. The no-load and...

Q. The no-load and blocked-rotor tests conducted on a 110-V, single-phase induction motor yield the following data: • No-load test: input voltage 110 V, input current 3.7 A, and

Internalization of KPI Process, Internalization of KPI Process It is t...

Internalization of KPI Process It is the responsibility of management to ensure in which the focus of all the participants in performance management and KPI exercise is there

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