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

State the nyquist sampling theorem, (a) Which one of the four digital-to-a...

(a) Which one of the four digital-to-analog conversion techniques (ASK, FSK, PSK or QAM) is most susceptible to noise? Explain your answer. (b) Given the bit pattern 01001110,

Briefly explain automotive ignition system, Q. Briefly explain Automotive I...

Q. Briefly explain Automotive Ignition System? Ignition systems in automobiles have been designed as a straightforward application of electrical transients. Figure shows a simp

Binary coded decimal to decimal conversions, Binary Coded Decimal to Decima...

Binary Coded Decimal to Decimal Conversions • Step1. Break up the Binary Coded Decimal number into 4 bit binary number, starting from the least significant binary bit. • Step2

Calculate the reflection of wedge, The corners of wedge-shaped block are A(...

The corners of wedge-shaped block are A(0,0,2), B(0,0,3), C(0,2,3), D(0,2,2), E(-1,2,2) and F(-1,2,3) and the reflection plane goes the Y-axis at 450 between (-X) & (Z) axis. Calcu

Define the term causality lti system, Define the term Causality LTI System ...

Define the term Causality LTI System Any practical LTI system operating in real time must be "causal" which means that its impulse response {h[n]} must satisfy h[n] = 0 for n

Illustrate output-rate control, Q. Illustrate Output-rate control? A sy...

Q. Illustrate Output-rate control? A system is said to have output-rate damping when the generation of the output quantity in some way ismade to depend upon the rate atwhich th

Apply required morphological operations and give the output, You are given ...

You are given a binary image consisting of only zeros and ones, see image-A. Apply required morphological operations and give the output images on the grid.

Hall effect, Describe hall effect?also describe it''s mathematical analysis...

Describe hall effect?also describe it''s mathematical analysis and it''s properties

Digital frequency metre, what is digital frequency metre?working principle ...

what is digital frequency metre?working principle its operation and types application,advantages ,disadvantages

Nicol prism, how double diffraction occur at the surface

how double diffraction occur at the surface

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