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

Sketch the circuit with all the relevant labelling, Question: (a) Consi...

Question: (a) Consider the subsequent LC impedance function: (i) If the function is to be realised using the Foster I Form, evaluate the values of the different compon

Demagnetizing and cross magnetizing effects , Q.   What do you understand b...

Q.   What do you understand by demagnetizing and cross magnetizing effects of armature reaction in a d.c. machine. Derive the expression for calculation of demagnetizing and cross

Peak inverse voltage - thyristor, Peak inverse Voltage   Peak  inverse v...

Peak inverse Voltage   Peak  inverse voltage is   important parameter in the design of rectifier circuit. PIV is the maximum  voltage that appears across the device  during its

Explain the operation of 8279, Explain the operation of 8279.  Explain the ...

Explain the operation of 8279.  Explain the following terms: (i)  N key Roll over. (ii)  Key board debounce. (iii)  FIFO RAM. Ans The 8279 microprocessor i

Determine rc and resistance, Q. A silicon npn BJT is biased by the method s...

Q. A silicon npn BJT is biased by the method shown in Figure, with R E = 240 , R 2 = 3000 , and V CC = 24 V. The operating point corresponds to V BEQ = 0.8V, I BQ = 110 µA,

Dc generator, short note on armature reaction

short note on armature reaction

Eeprom, advantages and disadvantages

advantages and disadvantages

Digital Signal Processing, Can you do a survey paper on Wavelet and Subband...

Can you do a survey paper on Wavelet and Subband Coding? I need 10 pages and I will provide the references.

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