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

Explain what happen as the frequency increases, Question: (a) A typica...

Question: (a) A typical RF filter is made up of sections using circuit components. One example of a section is the Inductor-Capacitor (L-C) section. State two other types of

ELECTRONICS, WHAT IS MIDPOINT BIASING OF A TRANSISTOR?

WHAT IS MIDPOINT BIASING OF A TRANSISTOR?

D.C. generator, I have made a wind turbine with vertical blades. I want to ...

I have made a wind turbine with vertical blades. I want to rotate magnets on the rotor with the coils being stationary.How do I wind the coils and must the magnets be N/S opposite

Distinguish between ferromagnetic and paramagnetic materials, Distinguish b...

Distinguish between ferromagnetic and paramagnetic materials, mentioning at least one example of each. Ferromagnetic Materials: These are materials wherein magnetic dipoles i

Marginal tax rate, Stratos Corporation is a privately held tablet semicondu...

Stratos Corporation is a privately held tablet semiconductor technology firm with bright growth prospects.The past 5 years have seen the firm evolve from a pure startup to a profit

Find the turns ratio, Q A60-Hz, 100-kVA, 2400/240-V(rms) transformer is use...

Q A60-Hz, 100-kVA, 2400/240-V(rms) transformer is used as a step-down transformer from a transmission line to a distribution system. Consider the transformer to be ideal. (a) Fi

Applied mechanics, State whether Lamis theorem is applicable for more than ...

State whether Lamis theorem is applicable for more than three coplanar concurrent forces?

Principals applied in product design, What are the broad principals that wi...

What are the broad principals that will be applied in product design to facilitate automated assembly ?

Power flow analysis, Ask question #Minimum 10] In the system shown in Fig...

Ask question #Minimum 10] In the system shown in Figure 4-1, the rated voltage of the line is 110kv, and the conductors are all LGJ-120 type. The parameters are: r1=0.21O/km,x1=0

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