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

Find current in bjt, Q. A BJT is biased by the method shown in Figure. If V...

Q. A BJT is biased by the method shown in Figure. If V BEQ = 0.7V, β = 100, V CEQ = 10 V, and I CQ = 5 mA, find I 1 , I 2 , and IEQ.

Compute the terminal voltage and current of each generator, Q. Three dc gen...

Q. Three dc generators are operating in parallel with excitations such that their external characteristics are almost straight lines over the working range with the following pairs

What do you mean by digital systems, Q. What do you mean by digital systems...

Q. What do you mean by digital systems? Electronics information is generally placed into two categories as digital and analog. The Digital information is represented in discret

Covert analog signal into digital signal, Covert Analog Signal into Digital...

Covert Analog Signal into Digital Signal A strain gauge is used in Wheatstone Bridge configuration. The output from the Wheatstone Bridge varies from zero to a maximum strain

Field-effect transistor, Field-Effect Transistor: The field-effect tra...

Field-Effect Transistor: The field-effect transistor that is abbreviated as FET relies on an electric field to control the shape and therefore the conductivity of a channel of

Database resources, HELLO.can I have a short note on database resources

HELLO.can I have a short note on database resources

Characteristics of an n-channel enhancement mosfet, Q. Find idealized expre...

Q. Find idealized expressions for the active and ohmic states and sketch the universal characteristics of an n-channel enhancement MOSFET operated below breakdown.

Show binary to octal conversion, Q. Show Binary to Octal Conversion? It...

Q. Show Binary to Octal Conversion? It is simple to convert from an integer binary number to octal. This is accomplished by: Break the binary number into 3-bit secti

Show the output voltage waveform, Question: a) For the circuits shown i...

Question: a) For the circuits shown in figure a and in figure b, show the output voltage waveform V0(t) if a sinusoidal signal with peak value of 5V is applied and the dc suppl

Why fet is a voltage sensitive device, Q. Why FET is a voltage sensitive de...

Q. Why FET is a voltage sensitive device explain from the drain characteristics? The JFET consists of a thin layer of n-type material with two ohmic contacts,the source S and t

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