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 motors, i dont understand why equalizer connection is not used in wave w...

i dont understand why equalizer connection is not used in wave windings?

Give the properties of pvc, Give the properties of PVC. PVC- It is acqu...

Give the properties of PVC. PVC- It is acquired from polymerisation of hydrogen chloride and acetylene in the presence of a catalyst as peroxides at about 50 0 C. Properties

First quadrant or class a chopper, First Quadrant or Class A chopper A ...

First Quadrant or Class A chopper A chopper  two mode operation of class  A chopper  can be explained as follow.

Identify a variety of security threats, Each year the University computer s...

Each year the University computer society holds a „virtual fair? in Second Life in order to raise money for charity. The main attraction at the event is a lucky dip, where attendee

Digital electronic, What are the advantages of wired-AND connection of digi...

What are the advantages of wired-AND connection of digital IC

Can you explain working principle of tl - ac alternator, Can you explain wo...

Can you explain working principle of TL/AC alternator? Ans . The core of the stator which is completely induced by the field coils, will get a residual magnetism if excited b

Biomedical question, Find the rms voltage of the given cardiac wave

Find the rms voltage of the given cardiac wave

Single- and three-phase systems, Ac power has significant practical advanta...

Ac power has significant practical advantages over dc power in generation, transmission, and distribution. One major drawback of the single-phase circuit is the oscillatory nature

Explain working of liquid-crystal display, Q. Explain Working of Liquid-cry...

Q. Explain Working of Liquid-crystal display? This display needs only microwatts of power (over a thousand times less than a LED) and is used in such devices as electronic wris

High pressure gas hazards, High Pressure Gas Hazards When we consider t...

High Pressure Gas Hazards When we consider the dangers of compressed gas in the lab, there are three main sources of danger as follows: 1) Sudden release of high pressure ga

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