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

Develop logic expression and find one possible logic circuit, Q. Figure (a)...

Q. Figure (a) shows the seven-segment array that iswidely used to formthe decimal digits 0 to 9 in LEDdisplays, as indicated in Figure(b). Let the inputs be the four binary digits

Equivalent circuits, Modern complex systems are normally constructed by int...

Modern complex systems are normally constructed by interconnecting sub-units. Therefore the systems engineer is often not too concerned about the details of what is inside these

Poly phase induction motor, Using the approximate equivalent circuit in whi...

Using the approximate equivalent circuit in which the shunt branch is moved to the stator in put terminals, show that the rotor current, torque, and electro magnetic power of a pol

Compute the efficiency of the transformer, Q. These data were obtained from...

Q. These data were obtained from tests carried out on a 10-kVA, 2300:230-V, 60-Hz distribution transformer: • Open-circuit test, with low-voltage winding excited: applied voltag

Scr, what is finger voltage?

what is finger voltage?

Explain the action of a pn-junction with bias, Q. Explain the action of a p...

Q. Explain the action of a pn-junction with bias. Consider both the forward bias and the reverse bias, and use sketches wherever possible.

Digital frequency metre, what is digital frequency metre?working principle ...

what is digital frequency metre?working principle its operation and types application,advantages ,disadvantages

What are loosely coupled systems, What are loosely coupled systems? In ...

What are loosely coupled systems? In loosely coupled systems every CPU may have its own bus control logic. The bus arbitration is handled by an external circuit, common to all

Resistance, factors affecting resistance

factors affecting resistance

Determine the fault current and the bus voltages, The one line diagram of a...

The one line diagram of a simple three-bus power system is shown in the figure below.  Each generator is represented by an emf behind the transient reactance.  All impedances are e

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