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

Gis applications, Gis Applications So far, you have learnt how GIS can...

Gis Applications So far, you have learnt how GIS can help utilities to obtain snapshots of the locations of substations, lines and cables in relation to their geographical bea

Cmos processes, CMOS processes: The low-performance "lateral" bipolar ...

CMOS processes: The low-performance "lateral" bipolar transistors occasionally employed in CMOS processes are sometimes designed symmetrically, i.e., with no distinction betwe

Working of self - excited generators, Q. Working of self - excited generato...

Q. Working of self - excited generators? For self-excited generators, residual magnetism must be present in the ferromagnetic circuit of the machine in order to start the self-

Define the baud rate with respect to serial communication, With respect to ...

With respect to serial communication define the baud rate. The rate of data transfer into serial data communication is denoted in bps. Bits per second (bps) are the rate of in

Measurement, Why delay circuit used in CRO?

Why delay circuit used in CRO?

Current transformers., CT 10VA, 50A/5A, 6ohz, 2.4KV required nominal primar...

CT 10VA, 50A/5A, 6ohz, 2.4KV required nominal primary voltage?

Op, Find the current through capacitor by superposition therom

Find the current through capacitor by superposition therom

Delay line in CRO, why we use delay line in CRO what happens if we not use ...

why we use delay line in CRO what happens if we not use it?

Obtain the sop expressions for given k map, Q. The K map of a logic functio...

Q. The K map of a logic function is shown in Figure, in which ds denote don't-care conditions. Obtain the SOP expressions.

Energy stored in a magnetic field , Energy stored in a magnetic field ...

Energy stored in a magnetic field Consider a circuit consisting of a voltage supply,  switch,  resistor  and  a  coil  of  N turns wound on a toroid of length l, all in series

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