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

Single phase full wave controlled rectifier , Single Phase Full Wave Contro...

Single Phase Full Wave Controlled rectifier The single  phase  half  wave controlled  rectifier  produce only one pulse  of load  current  during  one cycle  of supply voltage

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=

Three phase induction motors - motor control , Three Phase Induction Motors...

Three Phase Induction Motors A three  phase induction rotor  consists  a stators  and a motor stator has balanced three  phase  winding. These windings  are distributed in the

Find the reverse saturation current of the bej, Q. A silicon BJT has an emi...

Q. A silicon BJT has an emitter current of 5m Aat 300 K when the BEJ is forward-biased by vBE = 0.7 V. Find the reverse saturation current of the BEJ. Neglecting ICBO, calculate iC

Decoder - introduction to microprocessors , Decoder A decoder is  logic...

Decoder A decoder is  logic  circuit  that energizes a particular  output line for each  combination of input  signal. Fig   shown  the block  diagram  logic diagram  and fu

Transistor voltmeter, \ Transistor voltmeter (TVM) : a simple diagram of ...

\ Transistor voltmeter (TVM) : a simple diagram of TVM using two transistors in the bridge configuration is as shown. TVM is provided by using transistor bridge circuits. In b

Address bus - bus organisation , Address Bus The address  bus is the gr...

Address Bus The address  bus is the group  of 16 lines. It is used  to carry  the address of memory  location and  addresses  of input  and output  ports as shown. It is a unid

Internalization of KPI Process, Internalization of KPI Process It is t...

Internalization of KPI Process It is the responsibility of management to ensure in which the focus of all the participants in performance management and KPI exercise is there

Reasons for the augmentation of electromagnetic radiation, Question: Ge...

Question: General EMC Knowledge (a) Give 2 reasons for the augmentation of electromagnetic radiation in urban regions. (b) Pointe aux Diable bears its name due to the a

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