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

Determine maximum neutral current-power factor, 1.)  A three phase, D0 HP, ...

1.)  A three phase, D0 HP, 1765 rpm, BA0 V induction motor operating at three quarter load has an efficiency of 91% and a power factor of 87%. Determine active power, apparent pow

Define the binary counting - counters, Define the Binary Counting - Counter...

Define the Binary Counting - Counters? The Binary counter is capable to be constructed from J-K flip-flops by taking the output of one cell to the clock input of the next The J

Analogue and digital, 1. Pattern recognition A synchronous sequential machi...

1. Pattern recognition A synchronous sequential machine is to generate 1 on output z after the next clock pulse whenever the bit sequence on input x has exactly two 0’s in the last

What is an amplifier, Q. What is an amplifier? What are the various types o...

Q. What is an amplifier? What are the various types of amplifiers? AMPLIFIER: A circuit that increases the amplitude of the given input signal is an amplifier. A small a.c. sig

Solid state, What are the fundamentals of solid states?

What are the fundamentals of solid states?

Redraw the wheat stone bridge circuit, Redraw the Wheat stone bridge circui...

Redraw the Wheat stone bridge circuit of Figure and show that Equation holds good for the null condition when the meter A reads zero current.

What do you mean by byte, Q. What do you mean by Byte? Without question...

Q. What do you mean by Byte? Without question, the most vital data structure used by the 80x86 microprocessor is the byte this is true since the ASCII code is a 7-bit non-weigh

Single direction pump, Modify the design of the circuit shown in FIGURE and...

Modify the design of the circuit shown in FIGURE and draw a circuit diagram to provide rotary actuation in both directions using a single direction pump (to replace the bi-directio

Astigmation control, Astigmation control: In most modern oscilloscopes the...

Astigmation control: In most modern oscilloscopes there is an additional focusing control marked Astigmation . This is used to correct an effect which exactly is analogous to

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