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

Expression for the real power transfer capacity, Q. Consider a lossless tra...

Q. Consider a lossless transmission line with only a series reactance X. (a) Find an expression for the real power transfer capacity of the transmission system. (b) What is P

Transistor voltmeter, \ Transistor voltmeter (TVM) : a simple diagram of ...

\ Transistor voltmeter (TVM) : a simple diagram of TVM using two transistors in the bridge configuration is as shown. TVM is provided by using transistor bridge circuits. In b

Semiconductor material, Semiconductor Material: Semiconductor is a mat...

Semiconductor Material: Semiconductor is a material that has a conductivity level somewhere between the extreme of an insulator and a conductor   Resistivity of a material

Explain the architecture of cellular networks, Wireless and Mobile Communic...

Wireless and Mobile Communication 1. Explain the architecture of Cellular Networks. 2. Discuss the fundamentals of GSM Network. 3. Explain briefly the different interface

Find the per-phase impedance of the load, Q. The two-wattmeter method for m...

Q. The two-wattmeter method for measuring three-phase power is applied on a balanced wye-connected load, and the readings are given by W C = 836W and W A = 224 W If the system

Explain the terms dielectric constant and dielectric loss, Explain the term...

Explain the terms dielectric constant and dielectric loss. Dielectric Constant or Permittivity: all insulating materials possess an electrical capacitance. The capacitance of

Explain commutator action in dc machine, Q. Explain Commutator Action in dc...

Q. Explain Commutator Action in dc machine? As a consequence of the arrangement of the commutator and brushes, the currents in all conductors under the north pole are in one di

Dc power supplies, 1.   Design four (4) different 5 volt DC power supplies...

1.   Design four (4) different 5 volt DC power supplies to operate from 230 volts AC. The four power supplies are to have the same full wave rectifier with capacitive filte

Define spectrum of real signals, Define Spectrum of Real Signals? In th...

Define Spectrum of Real Signals? In the real world, we rarely come throughout a pure sine wave. Typical signals have a wide spectrum as displayed in the above diagram. Informat

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