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

Sphl load stack pointer with hl instruction, SPHL Load Stack  pointer with...

SPHL Load Stack  pointer with HL Instruction This instruction  copies  the contents of HL register  pair  the stack pointer register. The instruction format is             S

Why hard magnetic materials are used, Hard magnetic materials are used for ...

Hard magnetic materials are used for making (A) Permanent magnets. (C) Conductors. (B) Insulator. (D)Temporary magnets. Ans: Hard magnetic materials are

What is meant by a bus, A bus is a collection of conducting lines that carr...

A bus is a collection of conducting lines that carrier's data, address, & control signals. A bus is two or many wire communication technique. A bus which communicate among two

Find how long the bulb can be lighted, Q A12-V, 115-Ah automobile storage b...

Q A12-V, 115-Ah automobile storage battery is used to light a 6-W bulb. Assuming the battery to be a constant-voltage source, find how long the bulb can be lighted before the batte

Define johnson counter to convert serial data, Define johnson counter to Co...

Define johnson counter to Convert Serial Data to Parallel Data? A microprocessor-based or computer system commonly requires incoming data to be in parallel format. But often t

Given a system; how to find feedback, I am working on Vision based vehicle ...

I am working on Vision based vehicle lane keeping control system. I have uploaded two images at http://tinypic.com/view.php?pic=24gj85t&s=6 & at http://tinypic.com/view.php?pic=

Transistor Amplifier, I need help designing a BJT amplifier with that meets...

I need help designing a BJT amplifier with that meets the following parameters: voltage gain greater than 300, Ic(Vce=0)=2uA, Vcc=20V.

Explain transfer of risk, Q. Explain Transfer of Risk? In case of this ...

Q. Explain Transfer of Risk? In case of this method, risk is transferred to some other person or organization. In other words, under this method, a person who is subject to ris

Zener diode, what is Zener diode ? give some uses of it .

what is Zener diode ? give some uses of it .

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