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

Communication network, Assuming that the receiver sends a XOFF signal when ...

Assuming that the receiver sends a XOFF signal when the receive buffer is P% full in order to avoid any data or packet loss.

Show the block diagram for a 3-bit ripple counter, Q. (a) For a JKFFwith JK...

Q. (a) For a JKFFwith JK = 11, the output changes on every clock pulse. The change will be coincident with the clock pulse trailing edge and the flip-flop is said to toggle, when T

Quartus, I have a project due tomorrow, i have exhuasted all my resources, ...

I have a project due tomorrow, i have exhuasted all my resources, and cannot understand how to do the project, it is VHDL coding in Quartus program, i can send the assignment if yo

Explain about register marker, Q. Explain about Register marker? Regist...

Q. Explain about Register marker? Register marker: Stronger selectors perform searching and counting . Though, the crossbar switch has no ‘intelligence'. Something external to

Explain ionic polarisation, Explain ionic polarisation. Ionic Polaris...

Explain ionic polarisation. Ionic Polarisation: It takes account of the fact that while some of the atoms in a molecule contain an excess positive or negative charge that of

Illustrate about transfer functions, Q. Illustrate about Transfer Functions...

Q. Illustrate about Transfer Functions? The transfer function is a means by which the dynamic characteristics of devices or systems are described. The transfer function is a ma

Consumer interaction and service standards, Consumer Interaction and Servic...

Consumer Interaction and Service Standards These KPIs deal along with the customer, internal business procedures and change management. These are significant to give the desir

Lhld load hl pair direct instruction, LHLD  Load  HL Pair Direct  Instru...

LHLD  Load  HL Pair Direct  Instruction This  instruction is used to copy the  content  of memory  location specified  by opened  in register L  and copy the content of next  m

Unconditional return, Unconditional Return RET Instruction: This  instr...

Unconditional Return RET Instruction: This  instruction is used to transfer the program sequence  from subroutine to the calling  program unconditionally. The instruction forma

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.

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