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

What is segmentation, What is segmentation? Segment memory addressing d...

What is segmentation? Segment memory addressing divides the memory in several segments. All of these segments can be seen as a linear memory space. All of these segments are ad

Dc machines, explain dynamically induced emf and derive expression for it

explain dynamically induced emf and derive expression for it

Tardy billing and poor revenue collection, Tardy Billing and Poor Revenue C...

Tardy Billing and Poor Revenue Collection Prolonged disputes, connivance, lack of consumer friendly policies, incorrect identification of category, fictitious billing (of non-

Determine rms and average value, Determine RMS and average value: Dete...

Determine RMS and average value: Determine RMS and average value of the output of half wave rectifier. Solution The waveform of current, output of the half wave rectif

What is faithful amplification, What is faithful amplification. What are ba...

What is faithful amplification. What are basic condition for faithful amplification. Describe : (a) Peak Inverse voltage. (b) Maximum forward current. (c) Knee voltage

Constant frequency system, Constant Frequency System In this  system c...

Constant Frequency System In this  system chopping period  T is kept constant but the  on time T om is varied. This  system is also referred to pulse with modulation or time

Abrasive jet machining system, Describe the effect of following parameters ...

Describe the effect of following parameters on working rate and accuracy of material removal in AJM. (i) Grain size (ii) Stand off distance (iii) Jet velocity. Draw sch

Classify the conducting materials, Classify the conducting materials. ...

Classify the conducting materials. Conducting materials are classified by low resistivity materials and high resistivity materials. Low resistivity materials: The conduct

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