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

Give a brief description of differentiating circuits, Q. Give a brief descr...

Q. Give a brief description of differentiating circuits ?                Differentiation is a measure of the rate of change. A differentiating circuit produces an output voltag

P type material - semiconductor material, p type material: p type ma...

p type material: p type material is formed by doping aerial  crystal with impurity atoms having three valance electrons. The diffused impurities with three valence electrons

Where does cpu enhanced mode originate from, Intel's 80386 was the first 32...

Intel's 80386 was the first 32-bit processor, and as the company had to backward-support the 8086. All the modern Intel-based processors run in the improved mode, capable of switch

What is a control word, What is a control word? It is a word kept in a ...

What is a control word? It is a word kept in a register (control register) used to control the operation of a program digital device.

Explain the suitability of copper, Explain  the  suitability  of  coppe...

Explain  the  suitability  of  copper that  is  used  as  electrical  conducting materials. Copper : Pure annealed is utilized for the winding of electrical machines. High pur

Charge variation with time, Q. A charge variation with time is given in Fig...

Q. A charge variation with time is given in Figure. Draw the corresponding current variation with time.

Determine the current gain, A JFET for which V A = 80 V, V P = 4 V, and I...

A JFET for which V A = 80 V, V P = 4 V, and I DSS = 10 mA has a quiescent drain current of 3 mA when used as a common-source amplifier for which R D = R SS = 1k and R L = 3k

Electromagnetic fields and waves, QUESTION: Electromagnetic Fields and Wave...

QUESTION: Electromagnetic Fields and Waves (a) Illustrate with help of diagrams the Cartesian, Cylindrical and Spherical coordinate systems. (b) Lay down the assumptions fo

Find dispersion relation for free electron, Find Dispersion Relation for Fr...

Find Dispersion Relation for Free Electron Question: Find the dispersion relation for a free electron, and, thus, observe the relation between its rest mass and effective ma

Electromechanical meters, Electromechanical Meters Electromechanical e...

Electromechanical Meters Electromechanical energy meters are based on the Ferraris Principle (see note in the margin). The working of these meters is explained. Working o

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