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 steady-state stability, Q. Explain Steady-State Stability? The ...

Q. Explain Steady-State Stability? The property of a power system that ensures that it will remain in equilibrium under both normal and abnormal conditions is known as power-sy

How to connect the coil to the supply, A coil has an inductance of 1.2H and...

A coil has an inductance of 1.2H and a resistance of 40? and is connected to a 200 V, d.c. supply. Verify the approximate value of the current flowing 60 ms after connecting the co

Compute the induced emf, Compute the induced emf: If a coil of 150 tur...

Compute the induced emf: If a coil of 150 turns is linked with a flux of 0.01 wb while carrying a current of 10 Amp, compute the inductance of coil. Now, if current is reverse

Explain effect of impurity on conductivity of semiconductor, Explain the ef...

Explain the effect of impurity on the conductivity of a semiconductor. To form a semi-conductor conductive, a small amount of appropriate impurity is added. This is then termed

Electric Circuit, The manufacturer of a 6V dry-cell flashlight battery says...

The manufacturer of a 6V dry-cell flashlight battery says that the battery will deliver 15 mA for 60 continuous hours. During that time the voltage will drop from 6V to 4V. Assume

Encoder - introduction to microprocessors , Encoder The encoder is a...

Encoder The encoder is a logic  circuit  which  provides  the binary code is  output  for each input each input signal. In  other words  we can  say that it performs  just  op

Explain signal description of 8085, Explain signal description of 8085 ...

Explain signal description of 8085 a) Address bus b) Control and status signal c)  Address latch enable d)  S1,S0 status signals e)  Read ,write signal

Molecular chain, Molecular Chain (MIT, Princeton, Colorado) Consider a ...

Molecular Chain (MIT, Princeton, Colorado) Consider a one-dimensional chain consisting of N molecules which exist in two configurations, α, β, with corresponding energies  and

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