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

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

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

What are the currents in the high-voltage, Q. A transformer is rated 10 kVA...

Q. A transformer is rated 10 kVA, 220:110 V (rms). Consider it an ideal transformer. (a) Compute the turns ratio and the winding current ratings. (b) If a 2-load resistance

Find how long the bulb can be lighted, Q A12-V, 115-Ah automobile storage b...

Q A12-V, 115-Ah automobile storage battery is used to light a 6-W bulb. Assuming the battery to be a constant-voltage source, find how long the bulb can be lighted before the batte

Which Transistor configuration best to use in cascade, Q. Which of the 3 tr...

Q. Which of the 3 transistor configuration is best to use in cascade if maximum voltage gain is to be realized?  The common collector configuration is not used for intermediate

P-N junction, Explain how a p-n junction functions as a rectifier

Explain how a p-n junction functions as a rectifier

Find the diameter of a circular waveguide, Q Find the diameter of a circula...

Q Find the diameter of a circular waveguide that will have a lower cutoff frequency of 10 GHz and also specify its largest usable frequency.

Signal processing 1 ., region of convergence of (Z+2)*(12z-1)/((3z-1)*(4z+1...

region of convergence of (Z+2)*(12z-1)/((3z-1)*(4z+1 ))

Describe the functionalities and the purpose of an equalizer, Question: ...

Question: (a) For a CD quality sound, what is the bit depth used and give the amplitude's levels and the dynamic range of this sound quality (b) In audio technology, the dec

Non inverting summing amplifier, Q. In the non inverting summing amplifier ...

Q. In the non inverting summing amplifier of Figure, let R d = 1k and M = 6. Find R f so that v =

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