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

Draw the re-model for the circuit, Draw the re-model for the circuit given ...

Draw the re-model for the circuit given in figure and calculate: a). The input impedance (β=100), b). The output impedance (r0 = 50 kΩ) and c). The mid-band collector-base

Which matels alloy make bronze, Bronze is an alloy of (A) Copper and T...

Bronze is an alloy of (A) Copper and Tin.               (B) Copper and Steel. (C) Copper and Mercury.      (D) Copper and Aluminium. Ans: Bronze is an alloy of Cop

Write a brief note on common drain amplifier, Q. Write a brief note on comm...

Q. Write a brief note on common drain amplifier Since voltage at the gate-drain is more easily determined than that of the voltage at gate-source, the voltage source in the inp

Difference between neg and not instructions, Mention how do the NEG & NO...

Mention how do the NEG & NOT instructions differ in their functionality Here, NOT: The one's complement or logical inversion NEG: The two's complement or arith

Define a voltmeter, Define a voltmeter A voltmeter is an instrument us...

Define a voltmeter A voltmeter is an instrument used to measure p.d. and must be linked in parallel with the part of the circuit whose p.d. is required.

Diffrentiate between Brass and Bronze, Explain Brass and Bronze. Brass...

Explain Brass and Bronze. Brass - It is an alloy of copper and zinc with 60 percent copper and 40 percent zinc. Its electrical resistivity of Brass is 7.0 X 10 -8 ohm-m th

Determine the 60-hz resistance of line, Q A handbook lists the 60-Hz resist...

Q A handbook lists the 60-Hz resistance at 50°C of a 900-kcmil aluminumconductor as 0.1185/mile. If four such conductors are used in parallel to form a line, determine the 60-Hz r

Determine the frequency of the rotor voltages, A three-phase, wound-rotor i...

A three-phase, wound-rotor induction machine, with its shaft rigidly coupled to the shaft of a three-phase synchronousmotor, is used to change balanced 60-Hz voltages to other freq

Lack of accountability - high technical usage, Lack of Accountability - Hig...

Lack of Accountability - High Technical Usage In huge, complex and widespread ST&D networks such as ours, the subsequent factors pose problems in arriving at reasonable estima

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