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 information obtained for the load flow analysis, Explain Informatio...

Explain Information Obtained for the Load Flow Analysis (i)  Magnitude and phase angle of the voltage at each bus. (ii)  Active and Reactive power flow in each line. (iii

Discuss the control words of ic8259, Discuss the control words (ICWS) of IC...

Discuss the control words (ICWS) of IC8259. The Intel 8259 is a single chip programmable interrupt controller. It is compatible with 8086, 8088 and 8085 microprocessor. It is a

Determine the cost of energy used in a system, The energy consumption for a...

The energy consumption for a small factory is given at the end of the brief. a) Three commercial tariffs from an energy supplier are shown below. Using these (or other commercia

Determine the current and the voltage in the load resistance, Q. Adiodewith...

Q. Adiodewith the i-v characteristic shown in Figure is used in series with a voltage source of 5 V (forward bias) and a load resistance of 1 k. (a) Determine the current and t

Induction motor, principle and operation of a 3phace induction motor

principle and operation of a 3phace induction motor

What are the features of clamping circuits, Q. What are the features of cla...

Q. What are the features of clamping circuits? The clamping circuit does not change the peak to peak or r.m.s value of the waveform .Thus the input waveform and clamped output

Trends, what is south africas perspective?

what is south africas perspective?

Explain the working of asynchronous (ripple) counters, Explain the Working ...

Explain the Working of Asynchronous (Ripple) Counters? An external clock is connected to the clock input of the first flip-flop (FF0) only. Thus FF0 changes state at the falli

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