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

Microprocessor, distingish between maximum and minimum modes of operations ...

distingish between maximum and minimum modes of operations of 8086 with timing diagrames

Explain about transistor amplifiers, Q. Explain about Transistor Amplifiers...

Q. Explain about Transistor Amplifiers? Amplifiers are circuits that produce an output signal which is larger than, but proportional to, an input signal. The input and output s

Defective metering and meter reading errors, Defective Metering and Meter R...

Defective Metering and Meter Reading Errors Defective Metering Tampered, slow running, stalled, damaged meters are a cause of huge losses to the utility. The electromecha

Chemistry, Write short note on hardness of water and its units

Write short note on hardness of water and its units

Switching, With neat diagrams explain the configuration of a step-by-step s...

With neat diagrams explain the configuration of a step-by-step switching system

Its use in civil engineering, applications of electronics device (bjt,mosfe...

applications of electronics device (bjt,mosfets) in civil engineering

Interpreter- high level language, Interpreter- High level language T...

Interpreter- High level language The interpreter is a program  which  translates the high  level  program  into  objects  program  statement wise . it reads one statement of

Tampering of, Damage of revolving metallic disc due to tampering

Damage of revolving metallic disc due to tampering

Explain polarization, Explain Polarization. Polarization: A dielectric ...

Explain Polarization. Polarization: A dielectric has molecules the atomic nuclei of that are effectively fixed, related to each other. In absence of any external field all the

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