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

Dc motor, what is the reason of low meagger result of dc motor

what is the reason of low meagger result of dc motor

Discuss the closed-loop behavior, Q. Discuss the closed-loop behavior? ...

Q. Discuss the closed-loop behavior? Consider an elementary feedback control system, as shown in Figure, with H = 1. The output variable c and the input e to the direct transmi

Matlab simulation, Simulate and compare BER of QPSK system and 4-QAM system...

Simulate and compare BER of QPSK system and 4-QAM system without grey coding Eb/No=0.2.4.6.8.10

Compute the efficiency of the motor, Q. A 10-hp, 230-V dc shunt motor takes...

Q. A 10-hp, 230-V dc shunt motor takes a full- load line current of 40 A. The armature and field resistances are 0.25 and 230 , respectively. The total brush-contact drop is 2 V,

What will the slipring voltage be in this case, A four-pole, three-phase, w...

A four-pole, three-phase, wound-rotor induction machine is to be used as a variable-frequency supply. The frequency of the supply connected to the stator is 60 Hz. (a) Let the r

Mutual inductance and coefficient of coupling, Mutual inductance and coeffi...

Mutual inductance and coefficient of coupling: The equivalent inductance of two series connected coil (with mutual inductance among them) is 0.8 or 0.2 Henry based on the rela

Write a brief note on common drain amplifier, Q. Write a brief note on comm...

Q. Write a brief note on common drain amplifier Since voltage at the gate-drain is more easily determined than that of the voltage at gate-source, the voltage source in the inp

Design three-bit counter using t flip-flops, (a) A universal shift regist...

(a) A universal shift register can shift in both the left-to-right and right-to-left directions, and it has parallel-load capability. Draw a circuit for such a shift register.

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