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

Determine the cpi load latency, Question: (a) Describe the following te...

Question: (a) Describe the following terminologies: i. Branch ii. Branch Prediction iii. Branch Predictor iv. Branch Misprediction (b) Consider that 15% of instructi

Explain hall effect with hall mobility and hall angle, Explain Hall effect....

Explain Hall effect. Consider a slab of material wherein there is a current density J resulting by an applied electric field Ex in the x- direction. The electrons will drift al

Status signals - pins and signals , Status Signals There are three st...

Status Signals There are three status  signals IO/M s and s 1 . All  these  signals  are output  signals. IO/ M - it is a status  signals  used to distinguish  whether  the

Discuss important properties and uses of ceramics, Discuss important proper...

Discuss important properties and uses of Ceramics. Ceramics - These are materials made by high temperature firing treatment of natural clay and specific inorganic matters. The

What is transconductance, Q. What is transconductance? Explain its signific...

Q. What is transconductance? Explain its significance from the transfer characteristics. Transconductance is the transistor gain of the JFET; it indicates the amount of control

Microprocessors, Memory location 2000H has the word 5000H stored in it. Wha...

Memory location 2000H has the word 5000H stored in it. What does each location contain after DEC WORD PTR [2000H].

EMI, Ask question (c) Reduce each of the given signal transmission situatio...

Ask question (c) Reduce each of the given signal transmission situations to a source, coupling path(s), and receptor: (i) AM radio transmission to the human ear. (ii) TV transmis

What do you mean by sign bit, Q. What do you mean by Sign Bit? The sign...

Q. What do you mean by Sign Bit? The sign bit is like simple as it gets 0 denotes a positive number and 1 denote a negative number and flipping the value of this bit flips the

What do you understand by analog to digital conversion, Q. What do you unde...

Q. What do you understand by Analog to Digital conversion? What do you understand by A/D conversion? Give an explanation of any one of the following A/D techniques: (i) Su

Illustrate computer-controlled routing, Q. Illustrate Computer-controlled r...

Q. Illustrate Computer-controlled routing? Computers are employed in network with common channel signaling (CCS) features. In CCS, there is a separate computer-controlled signa

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