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

OUT Output Instruction , OUT Output Instruction This instruction is us...

OUT Output Instruction This instruction is used  send data byte  stored in the accumulator  to the  output  port  whose  address  specified in the instruction. The instruction

Why memory decoding is required, Why memory decoding is required? To a...

Why memory decoding is required? To attach a memory device to the microprocessor, this is necessary to decode the address sent by the microprocessor. Decoding creates the memo

Explain working of digital-to-analog converters, Q. Explain working of Digi...

Q. Explain working of Digital-to-Analog Converters? Digital-to-Analog (D/A) Converters For the results of digital computations to be used in the analog world, it becomes n

Hexadecimal number system, Hexadecimal Number System Similar  to octal ...

Hexadecimal Number System Similar  to octal number hexadecimal number system is also used to represent long  binary  numbers in  smaller  form. In microprocessor  we use  hexad

Equalizer rings, purpose of equalizer rings in lap winding

purpose of equalizer rings in lap winding

Speed control of dc motors, Q. Show Process of Speed Control of DC Motors? ...

Q. Show Process of Speed Control of DC Motors? Equation showed that the speed of a dc motor can be varied by control of the field flux, the armature resistance, and the armatur

Distinguish between ferromagnetic and paramagnetic materials, Distinguish b...

Distinguish between ferromagnetic and paramagnetic materials, mentioning at least one example of each. Ferromagnetic Materials: These are materials wherein magnetic dipoles i

Determine the line current-total apparent power, A balanced three phase, fo...

A balanced three phase, four wire, WYE connect load consisting of per phase resistenance of A ohms and inductive reactance of D ohms/phase is connected to a B000 V three phase sour

Find the voltage ratio, Q. (a) Two amplifiers, which can be represented by ...

Q. (a) Two amplifiers, which can be represented by the model of Figure of the text, are connected in cascade (that is, head to tail), as shown in Figure. Let their parameters be R

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