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

Explain the methods of analysis for digital system, Q. Explain the Methods ...

Q. Explain the Methods of Analysis for digital system? Just as differential equations are used to represent systems with analog signals, difference equations are used for syste

Describe abrasive grit size, Describe the effect of following parameters. ...

Describe the effect of following parameters. Abrasive grit size. Amplitude and frequency of vibration.

For an n-channel jfet find voltage, Q. For an n-channel JFET with V A = 35...

Q. For an n-channel JFET with V A = 350 V, I DSS = 10 mA, and V P = 3V, find V DS that will cause i D = 11 mA when v GS = 0.

Determine the disadvantages of expert systems, Determine the Disadvantages ...

Determine the Disadvantages of expert systems -  Lacks common sense in some decision making processes -  Errors in the knowledge base can result in incorrect decisions being

Discuss the approximate effect on the characteristic, Consider a three-phas...

Consider a three-phase induction motor with a normal torque-speed characteristic. Neglecting the effects of stator resistance and leakage reactance, discuss the approximate effect

Help needed in degree project, i have to design a project title "Edge deter...

i have to design a project title "Edge determining techniques for Low quality images in different lighting conditions and we use matlab for images simulation by changing different

Perform analysis and calculate the values of vgs, A small signal amplifier ...

A small signal amplifier circuit is given in figure Q 4. The values of RD and RS must be set such that the gain of the system is 8. It is also known that Vgs = ¼ Vp. a). Per

True / false , filt is a circuit that cantains onely passive components

filt is a circuit that cantains onely passive components

Process , Process The rectangle symbol  is used to represent  the pro...

Process The rectangle symbol  is used to represent  the process  operations as shown below.   MOV A, B

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