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

Alternate representation for complex poles, Alternate Representation for Co...

Alternate Representation for Complex Poles Complex poles can be combined to yield a quadratic term in the partial fraction expansion. The representation may best be illustrated

[email protected], a sensorless brushless DC motor control with back emf ...

a sensorless brushless DC motor control with back emf (zero crossing point ) technique, using Arduino Microcontroller board control and describe in C. program language.

Calculate the diameter of copper wire, Calculate the diameter of copper wir...

Calculate the diameter of copper wire of length 100 metres used as winding material in a transformer such that the resistance of the whole winding is 2 ohms. Calculate the diameter

Finite state machine, the tutorial assignment is part of my thesis work and...

the tutorial assignment is part of my thesis work and i need help in it please

What is the impulse response of this filter, Consider the filter h[n,m] des...

Consider the filter h[n,m] describing the input-output relationship below: g[n,m]=f[n-1,m]+ f[n,m-1]+ f[n+1,m]+ f[n,m+1] a)  What is the impulse response of this filter? b

RLC, a 49pf cap,a 50 uH inductor, and a 100 ohms resister are in parallel: ...

a 49pf cap,a 50 uH inductor, and a 100 ohms resister are in parallel: what is the resonance freq? And what is the complex impedance vector at 100MHZ?

Digital Signal Processing, What is the difference between the unit step fun...

What is the difference between the unit step function u(n+4) and the time-scaled function u(2n+8)

Evaluate the straight-line and actual gain response, Q. Consider the circui...

Q. Consider the circuit shown in Figure in the time domain aswell as in the s-domain. Its transfer function V 2 (s)/V 1 (s) can be shown to be  which is a second-order bandpass tra

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