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

Why equalizing connection are used in lap winding dummy coil, Q.   Explain ...

Q.   Explain why equalizing connection are used in lap winding and dummy coils are some time used in wave winding. Sol.  For batteies operating in parallel, the circulating c

Function generator, explain the waorking principle of function generator

explain the waorking principle of function generator

compute the cavity , Consider the optical cavity shown below. (...

Consider the optical cavity shown below. (a) Compute the photon lifetime. (b) Compute the cavity Q (assume that the wavelength region of interest is 500nm). (c) Su

Motor, 2. A 6 pole lap-wound armature having 720 conductors, rotates in a f...

2. A 6 pole lap-wound armature having 720 conductors, rotates in a field of 20.35 mWb. (a) If the induced current is 72 A, what is the torque developed by armature? (b) If the indu

Explain effect of frequency of applied electric field, Explain effect of fr...

Explain effect of frequency of applied electric field. If an external electric field is applied, the distance among charges that is related to chemical bonding keeps constant i

Explain repetitive coverage of satellite, Q. Explain Repetitive coverage of...

Q. Explain Repetitive coverage of satellite? Due to repeated passes of the satellite over the same reach, data is repeatedly acquired. Therefore, comparisons of a dynamic pheno

Flag registers , Flag Registers Flag  register  is also an  8 bit  reg...

Flag Registers Flag  register  is also an  8 bit  register. Out of 8 bit  five are  defined as flags to indicate status  of the accumulator  hence it is also called status reg

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