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

Wire-line and fiber-optic channel, Q. Wire-line and Fiber-optic channel? ...

Q. Wire-line and Fiber-optic channel? Wire-line channels are used extensively by the telephone network for voice, data, and video transmission. Twisted-pair wire lines (with

Find load resistance and voltage, Q. Find load resistance and voltage? ...

Q. Find load resistance and voltage? Let the amplifier block be connected to a current source at the input terminals, as shown in Figure(a), and to a load resistance R L at it

Application platform requirement - gis technology, Software/Application Pla...

Software/Application Platform Requirement: GIS solutions would primarily consist of Database and Applications software. The application package should work in LAN/WAN/Interne

Two-winding distribution transformer, Q. A single-phase, 10-kVA, 2300:230-V...

Q. A single-phase, 10-kVA, 2300:230-V, 60-Hz, two-winding distribution transformer is connected as an auto transformer to step up the voltage from 2300 V to 2530 V. (a) Draw a s

Determine the resultant mmf, Q. The N-coil windings of a three-phase, two-p...

Q. The N-coil windings of a three-phase, two-pole machine are supplied with currents ia,ib, and ic, which producemmfs given by F a = Ni a cos θm; F b = Ni b cos(θm - 120°); and

Ohms law, Normal 0 false false false EN-US X-NONE X...

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Organisational trends - power distribution management, Organisational Trend...

Organisational Trends: 1 Organisations are economic and social entities in which a number of persons perform multifarious tasks in order to attain common goals. Four key organ

Calculate the supply line current, A balanced star-connected load is connec...

A balanced star-connected load is connected across a three phase 450V 50 Hz AC supply. Each load element has an impedance of 5+j12 Ω. Calculate: (i)  The power factor of the

Explain dual slope adcs, Explain Dual Slope ADCs Dual slope ADCs make u...

Explain Dual Slope ADCs Dual slope ADCs make use of a capacitor connected to a reference voltage. The capacitor voltage begins at zero and is charged for a set time through the

Electrical, star delta drawing with timer

star delta drawing with timer

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