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

Illustrate working of differential amplifier, Q. Illustrate working of Diff...

Q. Illustrate working of Differential Amplifier? Figure shows a weighted differencing amplifier, where "weighted" refers to the fact that the output voltage has the form v o =

Clapp oscillator, derivation of frequency of oscillators clapp and derive C...

derivation of frequency of oscillators clapp and derive C effect?

Alternater, subranging ADC is a modification

subranging ADC is a modification

Find the corresponding change ib in the base current, Q. Using the small-s...

Q. Using the small-signal equivalent circuit of a BJT with gm = 0.03 S, β = 75, and VA = 65 V, a load resistor RL is connected from the collector to the emitter, as shown in Figure

How the interrupts can be masked in 8086, How the interrupts can be masked/...

How the interrupts can be masked/unmasked in 8086? The 8086 interrupt priorities are concerned; software interrupts have the highest priority, followed by NMI followed by INTR.

Clipper and clamper circuit, Clipper Circuits: Clipper circuit have ab...

Clipper Circuits: Clipper circuit have ability to Clipper of portions of the input signals without distorting the remaining part of the alternating wave form. Clamper net

What do you eman by digital circuits, Q. What do you eman by Digital Circui...

Q. What do you eman by Digital Circuits? The use of nonlinear devices (BJT and FET) in constructing linear amplifiers. Although these devices are inherently nonlinear, their op

Electromagnetic Computational (MATLAB), Hey Dear i have a hw in MATLAB by a...

Hey Dear i have a hw in MATLAB by applying Finite Element Method there(Electromagnetic) and i need your help with it. please take alook at the question and let me know if you can h

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