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

Use delta-wye transformation for network reduction, 1555_Use delta-wye tran...

1555_Use delta-wye transformation for network reduction.png what is the solution to this particular problem?

Matlap program, howw to plot amper circuital law through matlap

howw to plot amper circuital law through matlap

Colpitts oscillator circuit design, i would like to construct a colpitts os...

i would like to construct a colpitts oscillator using a series lc tank circuit as a feedback. the circuit will have a frequency of 150 Khz and it will drop when varying the value o

What is own-exchange routing, Q. What is Own-exchange routing? Distribu...

Q. What is Own-exchange routing? Distributed routing or own-exchange routing enables alternative routes to be chosen at intermediate nodes. Hence the strategy is capable of res

Why depletion mosfet is known as normally-on mosfet, Q. Why depletion MOSFE...

Q. Why depletion MOSFET is known as "normally-on MOSFET" ? Draw the symbol of n-type and p-type depletion MOSFET. In depletion type MOSFET the drain current flows even when VGS

Responsibilities of Regulatory Body, Responsibilities of Regulatory Body ...

Responsibilities of Regulatory Body The basic responsibilities of the Central Regulatory Commission are to: Fix tariff of Central Sector producing plants as well as of

Dc link scherbius drive - motor control , DC Link Scherbius Drive This ...

DC Link Scherbius Drive This type of scheme is shown in figure. This circuit  allows both  sub synchronous  and super synchronous speed control. In case  of sub synchronous spe

Obtain complete solution for the current for given circuit, For the circuit...

For the circuit of Figure(a), obtain the complete solution for the current i L (t) through the 5-H inductor and the voltage v x (t) across the 6- resistor.

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