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 mesh analysis, Mesh analysis Analysis using KVL to solve for th...

Mesh analysis Analysis using KVL to solve for the currents around every closed loop of the network and hence verify the currents through and voltages across every elements of t

Ei enable interrupts instruction , EI Enable Interrupts  Instruction ...

EI Enable Interrupts  Instruction The interrupt enable flip  flop  is set  and all the interrupts  of 8085  microprocessor are  enabled  which are  disabled  by DI  instructi

Sketch the waveforms of sinusoidal voltage source, Q. Consider the op-amp c...

Q. Consider the op-amp circuit of Figure. Sketch the waveforms of v S and v o , if v S is a sinusoidal voltage source with a peak value of 2.

Laplace transform method, Consider the circuit shown in Figure (a) in which...

Consider the circuit shown in Figure (a) in which the switch S has been in position 1 for a long time. Let the switch be changed instantaneously to position 2 at t = 0. Obtain v(t)

[email protected], a sensorless brushless DC motor control with back emf ...

a sensorless brushless DC motor control with back emf (zero crossing point ) technique, using Arduino Microcontroller board control and describe in C. program language.

Determine about the satellite navigation, Determine about the satellite nav...

Determine about the satellite navigation In motor vehicles system is known as satellite navigation (sat nav). On board computer contains pre-stored road maps. Vehicle's exact

Static v- i characteristics, Static V- I Characteristics The  static V-...

Static V- I Characteristics The  static V- I  characteristics of power diodes is shown  in figure 1.2  when the  anode is made  positive with  respect to cathode the power  dio

Dc machine closed-loop dynamics, i) Calculate the eigenvalues of a 100 hp,...

i) Calculate the eigenvalues of a 100 hp, 1150 rpm dc machine at rated flux with no extra load inertia. Use the "hot" value of the armature resistance. Calculate estimates of t

What is voltage multiplying dacs, What is Voltage Multiplying DACs? Mul...

What is Voltage Multiplying DACs? Multiplying DACs function on the principle of producing a weighted sum analog signal where the sum is proportional to the digital input 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