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 the working of asynchronous (ripple) counters, Explain the Working ...

Explain the Working of Asynchronous (Ripple) Counters? An external clock is connected to the clock input of the first flip-flop (FF0) only. Thus FF0 changes state at the falli

Transformers, determine the efficience of a 16 KVA transformer for the full...

determine the efficience of a 16 KVA transformer for the full-load,unit power factor

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

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

Responsibilities of Regulatory Body, Responsibilities of Regulatory Body ...

Responsibilities of Regulatory Body The basic responsibilities of the Central Regulatory Commission are to: Fix tariff of Central Sector producing plants as well as of

Find the transfer function of a linear system, Q. The response y(t) of a li...

Q. The response y(t) of a linear system to an excitation x(t) = e -2t u(t) is y(t) = (t + 2)e -t u(t). Find the transfer function.

Ohm, what is ohm?

what is ohm?

Determine the efficiency of the transformer, 1.    A 230/1000V 50 Hz, singl...

1.    A 230/1000V 50 Hz, single phase transformer has the following test data: Open circuit test (L.V.) Primary voltage = 230V Primary current = 1.30 A Input power

Compute the minimum line current for the motor, A three-phase, wye-connecte...

A three-phase, wye-connected, four-pole, 400- V, 60-Hz, 15-hp synchronous motor has a synchronous reactance of 3  per phase and negligible armature resistance. The data for its no

Applications of semiconductors, Applications of Semiconductors Inte...

Applications of Semiconductors Integrated circuits (ICs) SSI, MSI, LSI, and VLSI. Fluorescent materials used in TV screens II-VI (ZnS). Light detectors InSb, CdSe, Pb

Energy stored in the capacitor when it is fully charged, An 12µF capacitor ...

An 12µF capacitor is connected in series to a 0.5M? resistor across the dc voltage supply of 240V. verify: (a)  Time constant (b)  Initial charging current (c)  Time fo

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