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

Antenna, radiation pattern optimization of a planar array antenna using BBO...

radiation pattern optimization of a planar array antenna using BBO

Sinusoidal inverter, i am going to make a sinusoidal inverter as my final y...

i am going to make a sinusoidal inverter as my final year project kindly help me in this regard.How can i make this project?

UJT Help, What''s the formula for the VB2'' in a UJT?

What''s the formula for the VB2'' in a UJT?

Explain about darlington amplifier, Q Explain about 'Darlington Amplifier'?...

Q Explain about 'Darlington Amplifier'? DARLINGTON AMPLIFIER : A CC stage followed by another CC stage has an input resistance of about (b + 1) 2 times the emitter resistance

What is dmx, What is DMX? It is a communications protocol between step ...

What is DMX? It is a communications protocol between step motors, actuators and an electronic circuit. A kind of language among elements there different manufacturers can use c

Relationship between the induced e.m.f and the network, Mathematical relati...

Mathematical relationship between the induced e.m.f and the network Faraday noted that the e.m.f induced in a loop is proportional to the rate of change of magnetic flux by it:

Thunderstrom detector, Ask question #how to construct thunderstrom detector...

Ask question #how to construct thunderstrom detector with circuit breaker.

Describe the meaning of standing wave ratio, a. Describe the meaning of sta...

a. Describe the meaning of standing wave ratio. What is the formula for it, if the load is purely resistive? Why is a high value of SWR often undesirable? b. Determine how the c

Design of a p only controller, For an operating point half way up the paral...

For an operating point half way up the parallel section and the discharge valve and the discharge fully open, design a proportional only controller which will give closed loop dyna

Name the different methods used for data transmission, What are the differe...

What are the different types of methods used for data transmission? The data transmission among two points involves unidirectional or bi-directional transmission of meaningful

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