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

Potentiometric type dvm, Potentiometric type DVM: A potentiometric type of...

Potentiometric type DVM: A potentiometric type of DVM, employs voltage comparison technique. In this DVM the unknown Voltage is compared with a reference voltage value is fixed by

Various steps in designing the counter, Design a mod-15 counter. Explain th...

Design a mod-15 counter. Explain the various steps in designing the counter

Four cells in series, A battery having of 12 cells are divided in three gro...

A battery having of 12 cells are divided in three group which each group having of four cells in series. The three groups are joined in parallel. The emf of every cell is 1.5V and

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

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

Explain mesh - current method, Q. Explain Mesh - Current Method? This c...

Q. Explain Mesh - Current Method? This complements the nodal-voltage method of circuit analysis. A set of independent mesh-current variables that implicitly satisfy the KCL equ

Compute the real power inductive load, Q. A 60-Hz, 440-V, three-phase syste...

Q. A 60-Hz, 440-V, three-phase system feeds two balanced wye-connected loads in parallel. One load has a per-phase impedance of 8 + j3  and the other 4 - j1 . Compute the real po

Oscillator circuit with the help of block diagram, Q. Explain the condition...

Q. Explain the conditions to be satisfied for sustained oscillations in an oscillator circuit with the help of block diagram. The essential condition for sustained oscillations

Voltage falls across a resistor simple circuit, To design a VI that can be ...

To design a VI that can be used to show how the voltage falls across a resistor in a simple CR circuit when excited by a step function. The title of the VI will be Capacitor Res

Diac - power semiconductor devices , Diac Diac is a device which  has d...

Diac Diac is a device which  has di electrode  and as its name suggests it works  on AC. The cross  sectional view of a diac is shown if the four layers are PNPN and PNPN .

Factors affecting frequency response of an amplifier, Q. What is their rela...

Q. What is their relation with gain? What are the factors affecting frequency response of an amplifier? Some amplifiers should be "flat" across a band of frequencies. In other

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