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

Difference equation of transfer function, Now you have to digitally impleme...

Now you have to digitally implement this circuit. Compute a difference equation which if you implement will behave exactly like this circuit.

Ldax load accumulator indirect instruction , LDAX  Load Accumulator Indire...

LDAX  Load Accumulator Indirect Instruction This instruction is used to copy data  from memory  location pointed by register  pair only  BC or DE  to the accumulator  HL pair

Types of cells and batteries, Types of cells and batteries are:- a.  C...

Types of cells and batteries are:- a.  Carbon-zinc cell b. Nickel-cadmium cell c.  Alkaline celld.  d.  Edison cell e.  Mercury cell

Give a brief description of integrating circuits, Q. Give a brief descripti...

Q. Give a brief description of integrating circuits ? Integration is a summation of area. An integrating circuit produces an output voltage which is proportional to the area en

Explain super scalar architecture, Explain super scalar architecture. ...

Explain super scalar architecture. The Pentium microprocessor is organized along with three execution units. Single is executes floating-point instructions, and another two (U

Why the gain of the amplifier decreases if the ce is avoided, Q. Why the ga...

Q. Why the gain of the amplifier decreases if the CE is avoided? When the ce is connected in the circuit, ac signals get bypassed through it to the ground. In the absence of Ce

What do you mean by phase sequence, Q. What do you mean by Phase Sequence? ...

Q. What do you mean by Phase Sequence? It is standard practice in the United States to designate the phase A-B-C such that under balanced conditions the voltage and current in

Calculate critical angel and fundamental gaussian mode, (1) An argon ion la...

(1) An argon ion laser, emitting light at a wavelength of 488nm with a beam divergence of 150 firad, is used to illuminate the moon. (i) Assuming the earth-to-moon distance is 3

National tariff policy or ntp, National Tariff Policy or NTP In the dr...

National Tariff Policy or NTP In the draft of NTP, it is suggested that although setting the tariff ERC should introduce performance-based cost of service regulations, a clear

Polarisation, describe the working and construction diagram of nicholas pri...

describe the working and construction diagram of nicholas prism

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