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

Planning and research in power system, Q. Planning and Research in power sy...

Q. Planning and Research in power system? Energy research worldwide is assuming top priority, in particular because of economic, en - vironmental, and resource constraints. DOE

Static rotor resistance control methods - motor control , Static Rotor Res...

Static Rotor Resistance Control Methods This method is used only for slip  ring induction motor in SRIM  3- phase  variable  resistor can be inserted in the rotor  circuit and

Find the capacitor voltage and current, Q. The energy stored in a 2-µF capa...

Q. The energy stored in a 2-µF capacitor is given by w c (t) = 9e -2t µJ for t ≥ 0. Find the capacitor voltage and current at t = 1s.

Ampere''s theorem, The    French    scientist,    Ampere,    (1775- 1836), ...

The    French    scientist,    Ampere,    (1775- 1836), conducted a series of experiments on the force between current carrying conductors. He found that: force per metre of wire (

Compute the required value, Q. In an AM transmitter that transmits a total ...

Q. In an AM transmitter that transmits a total power of 1 kW, the unmodulated carrier power is 850 W. Compute the required value of (S i /N i )AM at a receiver, if (S 0 /N 0 )AM

Diploma in electrical engineering, After I complete my diploma how I get a ...

After I complete my diploma how I get a job in goverment

Ic packaging, which type of ic package is more advantageous,suitable and ve...

which type of ic package is more advantageous,suitable and versatile

Determine the antennas radiated power, Q. A transmitter is connected to an ...

Q. A transmitter is connected to an antenna by a transmission line for which ¯ Z 0 = R 0 = 5 0 . The transmitter source impedance is matched to the line, but the antenna is kno

Crystal-controlled oscillator circuits, Circuits, which provide sinusoidal ...

Circuits, which provide sinusoidal waveforms, are but useful in themselves and form the basis of many other circuits, such as square and triangular waveform generators, and clocks.

Differentiate between an integrator and differentiator, Q . Differentiate b...

Q . Differentiate between an integrator and differentiator? Integrators 1 Integrators are circuits in which output voltage is proportional to the integral of the input.

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