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

Communication systems/theory, have 18 multiple choice questions i need answ...

have 18 multiple choice questions i need answered by 9am cst and will pay Need ASAP

high frequency electronic ballast - power supplies , Normal 0 ...

Normal 0 false false false EN-IN X-NONE X-NONE   High Frequency   Electronic Ballast

What does the eu do, Execution Unit receives program instruction codes and ...

Execution Unit receives program instruction codes and data from BIU, implements these instructions and store the result in general registers.

Calculate sending-end voltage at 0.9 pf lagging, A three-phase, 34.5-kV, 60...

A three-phase, 34.5-kV, 60-Hz, 40-km transmission line has a per-phase series impedance of 0.2+j0.5/km. The load at the receiving end absorbs 10 MVA at 33 kV. Calculate the follow

Discuss classification of conducting materials, Discuss classification of c...

Discuss classification of conducting materials into low resistivity and high resistivity materials. Conducting materials are categorized as low resistivity materials and high r

V-i characteristics - power semiconductor devices, V- I Characteristics ...

V- I Characteristics When the peak  value of  applied  voltage is less than the break over   voltage  of triac  and no signal  is applied to the triac  it will block  both  pos

Properties of a semiconductor, Properties of a semiconductor: What pr...

Properties of a semiconductor: What properties of a semiconductor are determined from a Hall effect experiment ? Sol. The Hall Effect experiment is used to determine th

Show how a 16-to-1 multiplexer can be obtained, Q. Using two 8-to-1multiple...

Q. Using two 8-to-1multiplexers and one 2-to-1multiplexer, show how a 16-to-1 multiplexer can be obtained in the form of a block diagram.

Why are waveguides not used at low frequencies, Q. Comment brie?y on the fo...

Q. Comment brie?y on the following: (a) Why are waveguides not used at low frequencies? (b) Why are open-wire lines not generally used as guiding structures at very high freq

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