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

Energy stored in the coil, The term representing the energy stored in the c...

The term representing the energy stored in the coil may be written in terms of the inductance of the coil as... The energy stored in the coil increases with the square of t

Illustrate nodal-voltage method, Q. Illustrate Nodal-Voltage Method ? A...

Q. Illustrate Nodal-Voltage Method ? A set of node-voltage variables that implicitly satisfy the KVL equations is selected in order to formulate circuit equations in this nodal

States ohm''s law, States Ohm's law Ohm's law describes that the curren...

States Ohm's law Ohm's law describes that the current I flowing in a circuit is directly proportional to the applied voltage V and inversely proportional to the resistance R, g

Demand meters, Demand Meters Demand meters measure volt-amperes (in kV...

Demand Meters Demand meters measure volt-amperes (in kVA), that merge both reactive (reflected) and actual (consumed) power. In its easiest form, a demand meter has a gauge wh

Power system model, #i have an error at in the Matlab power system model..t...

#i have an error at in the Matlab power system model..thus i couldn''t run it...

Explain 8259 pin diagram, Explain 8259 Pin Diagram. The 8259A adds 8 ve...

Explain 8259 Pin Diagram. The 8259A adds 8 vectored priority encoded interrupts to the microprocessor. It can be expanded to 64 interrupt requests by using one master 8259A and

Structure of bipolar junction transistor, Structure of Bipolar junction tra...

Structure of Bipolar junction transistor:  A BJT contains three differently doped semiconductor regions that are: emitter region, base region and collector region. These regio

What is signal multiplexing, Q. What is Signal Multiplexing? Frequency-...

Q. What is Signal Multiplexing? Frequency-division multiplexing (FDM) and time-division multiplexing (TDM) systems. When data from many sources in time are interlaced, the inte

Chemistry, Explain the construction and working of a calomel electrode?

Explain the construction and working of a calomel electrode?

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