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 working principle of an opto coupler, Q. Explain the working pr...

Q. Explain the working principle of an opto coupler? When it is necessary to block the voltage between one electronic circuit and another, and transfer the signal at the same t

What are the major systems of a telecommunication network, Q. What do you u...

Q. What do you understand by major systems of a telecommunication network? Explain in detail the subscriber loop systems. Ans: Major systems of any telecommunication netw

Slack running fit, Illustrate the conventional representations of the follo...

Illustrate the conventional representations of the following guide to the selection of Fits: (i) Slack Running Fit (ii) Loose Running Fit (iii) Easy Running Fit (iv) No

Describing the steady state effect , Select the response describing the ste...

Select the response describing the steady state effect of increasing the air gap for otherwise identical devices, one operating with constant DC voltage excitation and one with con

What are synchronous decade counters, What are Synchronous Decade Counters?...

What are Synchronous Decade Counters? Alike to an asynchronous decade counter, the synchronous decade counter counts from 0 to 9 and then recycles to 0 again, This is done by

Negative voltage regulator series, Negative Voltage Regulator series with N...

Negative Voltage Regulator series with Nine voltage options - IC 7900 Series The IC 7900 series of fixed output negative voltage regulators are complements to the 7800 seri

Miller sweep circuit, PlZ Explain broooooo ..? What is Miller circuit and b...

PlZ Explain broooooo ..? What is Miller circuit and bootstrap I have xm tomrow and I am not getting answers soo plz.

Determine the bandwidth required for transmission, 1. A PCM system uses 8 b...

1. A PCM system uses 8 bits per sample and the analog signal is limited to 4.3 kHz. The PCM data is transmitted using (a) BFSK and (b) ASK. Determine the bandwidth required for tra

Determine the dimensions of the new model, The manufacturers of the tank de...

The manufacturers of the tank described in Problem would like to  design another model, with twice the capacity of the one described in figure. The ratio of height to diameter must

Evaluate the available received power, (a) Some antennas have a physical ap...

(a) Some antennas have a physical aperture area A that can be identified and is related to the effective area A e by A e = ρ a A, where ρ a is known as the aperture efficiency.

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