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

Power electronics, principle of 120 degree mode of operation of voltage sou...

principle of 120 degree mode of operation of voltage source intverter

State diagram for a typical von neumann machine, Question: a) Give the ...

Question: a) Give the instruction cycle state diagram for a typical Von Neumann machine. b) Give two diagrams to differentiate between a Memory and CPU connections. c) Co

Define memory for a digital computer, Q. Define Memory For a digital comput...

Q. Define Memory For a digital computer? For a digital computer which stores both programs and data, memory can be divided into three types: random-access memory, mass storage,

Sr flip flop - introduction to microprocessors , SR Flip Flop The SR  f...

SR Flip Flop The SR  flip  flop is an arrangement  of logic gates that maintain astable output even after  the  input  are turned off.  It has  two  inputs namely  SET input (S

Assignment, design single phase distribution circuit from a supply point to...

design single phase distribution circuit from a supply point to a load

Give the applications of carbon, Give the applications of carbon. Car...

Give the applications of carbon. Carbon : These materials used in the field of electrical engineering are manufactured from graphite and the other forms carbon as coal and so

Semiconductors, Charge density I n a semiconductor

Charge density I n a semiconductor

Magnets, B-H curve of SM2CO17

B-H curve of SM2CO17

Jfet amplifier, i want to know the all the three jfet in present and future...

i want to know the all the three jfet in present and future use and desing for each component

When mt2 is negative and g is positive , When MT 2 is Negative  and g is ...

When MT 2 is Negative  and g is positive In this  case  gate  current  flows  through  junctions P 2 N 2   electrons  are injected from  N 2   layer to  P 2   a result  junct

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