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

Generator, On which principle the generator works?

On which principle the generator works?

Describing the steady state effect , Select the response describing the ste...

Select the response describing the steady state effect of increasing the air gap for otherwise identical devices, one operating with constant DC voltage excitation and one with con

#electrical wiring, how to draw electric circuit for staircase wiring using...

how to draw electric circuit for staircase wiring using 3 two way switches?

Compute efficiency of 4 hours full load at 0.8 power factor, Q. A 10-kVA tr...

Q. A 10-kVA transformer is known to have an iron loss of 150 W and a full-load copper loss of 250 W. If the transformer has the following load cycle, compute its all-day efficiency

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 a control word, What is a control word? It is a word kept in a ...

What is a control word? It is a word kept in a register (control register) used to control the operation of a program digital device.

Cathode-ray tube, Q. Explain Cathode-ray tube? While the CRT display is...

Q. Explain Cathode-ray tube? While the CRT display is one of the oldest, it still remains one of the most popular display technologies. The raster-scanned display devices work

#choke coil, #what is the procedure of the choke coil experiment

#what is the procedure of the choke coil experiment

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