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

DC motor & encoder, If a high resolution emcoder is used for position contr...

If a high resolution emcoder is used for position control, will the number of pole count in the DC motor be matter? What is the requirement for the DC motor in order to work with h

Determine the resultant line current and power factor, Q. A three-phase loa...

Q. A three-phase load, connected to a 440-V bus, draws 120 kWat a power factor of 0.85 lagging. In parallel with this load is a three-phase capacitor bank that is rated 50 kVAR . D

Matlab coding for powerflow analysis of fast decoupled metho, please give t...

please give the source coding of fast decoupled method

Find the secondary and leakage path flux densities , Questions: A magne...

Questions: A magnetic core with a primary winding with 40 turns and a secondary winding with 80 turns has a leakage path dominated by an air gap as shown in the figure. The iro

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

Express the differential equation, A network function is given by ...

A network function is given by (a) For x(t) = δ(t), obtain y(t). (b) For x(t) = u(t), obtain y(t). (c) For x(t) = e -4t , obtain y(t). (d) Express the differenti

What is elementary diode circuits, Q. What is Elementary Diode Circuits? ...

Q. What is Elementary Diode Circuits? Semiconductor diodes are used in a wide variety of applications. Their usage abounds in communication systems (limiters, gates, clippers,

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