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 workinf of colpitts oscillator, Q. Explain workinf of colpitts osci...

Q. Explain workinf of colpitts oscillator? When the collector supply voltage V cc is switched on, the capacitors C1 and Cz are charged. These capacitors C1 and Cz discharge thr

What do you mean by conditional selection, Q. What do you mean by Condition...

Q. What do you mean by Conditional selection? Conditional selection: When a marker is instructed to create a connection from a given incoming trunk to a given outgoing trunk, t

Obtain the sop expressions for given k map, Q. The K map of a logic functio...

Q. The K map of a logic function is shown in Figure, in which ds denote don't-care conditions. Obtain the SOP expressions.

Name the flag available in status register of 8086, What are the different ...

What are the different flag available in status register of 8086? There are Six flags are present. They are, AF - Auxiliary Carry Flag CF - Carry Flag OF - Ove

Explain about simplex communication, Q. Explain about Simplex communication...

Q. Explain about Simplex communication? Simplex communication: Microphone and the earphone are transducer elements of the telephone communication system. Microphone converts

Motor, delta connectino purpose

delta connectino purpose

Methods of material handling, Q. Show the Methods of material handling? ...

Q. Show the Methods of material handling? Methods of material handling during operations and maintenance activities shall be considered for all facilities to ensure that the fi

Compute the eddy-current loss in the core, Q. The flux in a magnetic core i...

Q. The flux in a magnetic core is alternating sinusoidally at a frequency of 500 Hz. The maximum flux density is 1 T. The eddy-current loss then amounts to 15W. Compute the eddy-cu

What are the precautions to be taken, What are the precautions to be taken ...

What are the precautions to be taken before basic work on electrical installations? Ans: Before starting any electrical works on installations disconnect the power supply to

Explain the voltage regulation, Explain the Voltage Regulation? The per...

Explain the Voltage Regulation? The percent of voltage regulation of a generator is defined as the ratio of the change in voltage from no-load to full-load to the full-load vol

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