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

Microelectronic design, Describe, using a flow diagram, the IC design proce...

Describe, using a flow diagram, the IC design process indicating the CAD tools that could be used at the various levels.

Calculate the saturation current of the diode, Q. A silicon diode is forwar...

Q. A silicon diode is forward-biased with V = 0.5 V at a temperature of 293 K. If the diode current is 10 mA, calculate the saturation current of the diode.

Advantages of a.c generator - the alternator, 1) only one pair of slip ring...

1) only one pair of slip rings are required (to energise the rotating field coil) regardless of the number of phases produced by the alternator (three phases is common because of t

Basic principles of electrical engineering, What is ideal and real sources?...

What is ideal and real sources? Source conversion? Nodal voltage method for d.c circuit?

Give the principle of biasing a fet amplifier, Q. Give the principle of bia...

Q. Give the principle of biasing a FET amplifier. To correctly bias the FET, the gate needs to be negative with respect to the source. Bias is obtained in the following manner:

Determine the low-pass filter and amplitude spectra, Q. Let a square-wave v...

Q. Let a square-wave voltage source having an amplitude of 5V, a frequency of 1 kHz, a pulse width of 0.5 ms, and an internal source resistance of 50  be applied to a resistive lo

What are the application specific instruction processors, What are the appl...

What are the application specific instruction processors? Single purpose processor or ASIP (Application Specific Instruction processor) a. Floating point Coprocessor and Gra

Draw the logic diagram of the enabled d latch, Q. (a) Draw the logic diagra...

Q. (a) Draw the logic diagram of the enabled D latch using only NAND gates. (b) Complete the timing diagram of Figure (a) of theDlatchwhose block diagram and truth table are giv

Calculate the current flow through rl, Using star-delta transformation, cal...

Using star-delta transformation, calculate the current flow through RL.

Solar energy, project for solar panel for farms in Saudi Arabia

project for solar panel for farms in Saudi Arabia

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