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

Datapath and a datapath logic cell, Explain what is meant by a datapath and...

Explain what is meant by a datapath and a datapath logic cell illustrating your answer by reference to a suitable function using diagrams as appropriate. Show using a diagram ho

Ready input - externally initiated signals , READY Input Microprocess...

READY Input Microprocessor  has to communicate with other  peripherals which  are slow  as compared to the microprocessor. READY  signals  is used to synchronies  these periphe

What is difference between 16 bit & 32 bit version of c/c++, What is the ma...

What is the main difference between 16 bit and 32 bit versions of C/C++ while using in line assembler. The 32-bit applications are written by using Microsoft Visual C/C++ for t

Explain the construction of a mosfet, Explain the construction of a MOSFET....

Explain the construction of a MOSFET. Draw the symbols and diagrams of both P-channel and N-channel MOSFET. As JFET and MOSFET also have source, drain and gate. Its gate is ins

Registers - introduction to microprocessors , Registers A resister is ...

Registers A resister is  a group  of flip  flops  or binary  cells which holds  the binary information. Since  a binary cell  stores  one  bit of  information  an n bit  regis

Working of closed cycle and open cycle brayton cycle, Give the layout of a ...

Give the layout of a modern steam power plant and illustrate it briefly. With the help of schematic diagrams illustrate the construction and basic working of closed cycle and op

parity flag - registers, Parity flag  - Registers If after  any arit...

Parity flag  - Registers If after  any arithmetical or logical operation if  number of  the accumulator  are even  parity  flag (P)  is set otherwise  reset.

Define some huntington postulates - boolean algebra, Define some Huntington...

Define some Huntington postulates - Boolean Algebra? Postulates 1. Commutative Law (a) A + B = B + A (b) A B = B A 2. Distributive Law (a) A (B + C) = A B + A

What are the features of clamping circuits, Q. What are the features of cla...

Q. What are the features of clamping circuits? The clamping circuit does not change the peak to peak or r.m.s value of the waveform .Thus the input waveform and clamped output

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