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

RLC series, What is Average value in AC circuit?

What is Average value in AC circuit?

Design a multiplexer and anomalous signals, 1. The size of the multiplexer ...

1. The size of the multiplexer used to implement a truth table can be cut in half (e.g. 4 inputs instead of 8) if one of the variables is used as an input instead of being connecte

D.c.machines, can voltage regulation be negative?why?

can voltage regulation be negative?why?

Short-term measures for technical loss reduction, Short-Term Measures for T...

Short-Term Measures for Technical Loss Reduction The short-term measures involve measures needs for immediate improvement and reduction of losses within the system. These are

Energy gap, Energy Gap Differentiating feature between the metals, ...

Energy Gap Differentiating feature between the metals, insulators, and semiconductors. Ascertains the absorption or emission spectra, the leakage current, and the intrin

Explain the sequential circuits, Explain the Sequential Circuits? The L...

Explain the Sequential Circuits? The Logic circuits whose outputs, at any instant of time, depends not merely the present input but as well the past output called sequential ci

Fourier deconstruction, Fourier Deconstruction Find the Fourier series ...

Fourier Deconstruction Find the Fourier series as far as the third harmonic, to represent the periodic function y, given by the values in the following table.

Explain about subscriber loops signalling, Q. Explain about Subscriber loop...

Q. Explain about Subscriber loops signalling? In a telephone network, subscriber loop signal linger lies upon the kind of a telephone instrument used. The intra exchange signal

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