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

Human resources - kpi, Human Resources - KPI It is the responsibility ...

Human Resources - KPI It is the responsibility of management to have the lean, capable, customer friendly organization that strives for catering to diversified need of all the

Function of circuit - breaker, Q. Function of circuit - breaker, difference...

Q. Function of circuit - breaker, difference between circuit breaker and 'isolator'? Ans: The function of circuit breaker is to break the electrical continuity in the event o

#electrical wiring, how to draw electric circuit for staircase wiring using...

how to draw electric circuit for staircase wiring using 3 two way switches?

Ac waveform, which ckt. Or components using for irregular ac sine wave ...

which ckt. Or components using for irregular ac sine wave change into pure sine wave.......

What are transistor amplifiers, Q. What are transistor amplifiers? What is ...

Q. What are transistor amplifiers? What is meant by efficiency of an amplifier? What is amplifier coupling? The AMPLIFIER is a device that enables an input signal to control an

Define the second group of 32 ascii character codes, Define the second grou...

Define the second group of 32 ASCII character codes? The second group of 32 ASCII character codes include various punctuation symbols, special characters, and the numeric digit

Basic working of optical coupler, Q. Basic working of optical coupler? ...

Q. Basic working of optical coupler? The optical coupler is suitable for frequencies in the low megahertz range. The photodiode type shown above can handle only small currents;

Explain working of voltmeter, Q. Explain working of Voltmeter? In order...

Q. Explain working of Voltmeter? In order tomeasure the potential difference between two terminals or nodes of a circuit, a voltmeter is connected across these two points. A pr

Assinment, Ask question #Minimum mechanism of microwave communication 100 w...

Ask question #Minimum mechanism of microwave communication 100 words accepted#

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