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

Show advantages and disadvantages of a r-c couple amplifier, Q. What are th...

Q. What are the advantages and disadvantages of a R-C coupled amplifier. Advantages · It has excellent frequency response. The gain is constant over the audio frequency ra

Explain p - type semiconductor, Explain p - Type semiconductor. p - ...

Explain p - Type semiconductor. p - Type semiconductor:- (i) If small amount of trivalent impurity is added with to a pure semiconductor giving a large no. of holes in t

For the circuit obtain z- and y-parameters, Q. For the circuit shown in Fig...

Q. For the circuit shown in Figure, obtain: (a) z-and y-parameters; (b) Transfer function I 2 /I 1 when V 2 = 0.

Minimized circuit using or and and not gate, Given S(F) = A'B +'C'D + C'D +...

Given S(F) = A'B +'C'D + C'D +'A'B + 'A B + 'A 'C + 'A D + 'A C A. DRAW A MINIMIZED CIRCUIT USING ONLY OR AND NOT GATES (2 input gates) B. WRITE THE WIRE LIST Example of a

Voltage quality standards - kpi, Voltage Quality Standards - KPI The t...

Voltage Quality Standards - KPI The term voltage quality (or power quality) is an umbrella concept for a variety of disturbances within a power system. The quality of delivere

Give the operating modes of 8259a, Give the operating modes of 8259a? (...

Give the operating modes of 8259a? (a) Automatic Rotation (b) End of Interrupt (EOI) (c) Fully Nested Mode  (d) Automatic EOI Mode (e) Specific Rotation (f) Edge

What is the purpose of clock signal in an 8086 system, What is the purpose ...

What is the purpose of clock signal in an 8086 system? 8086 needs clock signal with 33%duty cycle from some external operations.8086 processor needs 5 MHZ clock signal

Find the quantum levels, A uniform quantizer is said to have 16 levels, and...

A uniform quantizer is said to have 16 levels, and hence is called a midriser. The saturation levels are to correspond to extreme values of the message of 1 V ≤  f(t) ≤ 17 V. Find

Overcoming power shortages, Overcoming power shortages: NEP aims at me...

Overcoming power shortages: NEP aims at meeting both energy and peak demand fully through 2012 along within creating 5 percent spinning reserves at national level. The policy

Characteristics of the diode, Consider a forward-biased diode with a load r...

Consider a forward-biased diode with a load resistance. Let the static volt-ampere characteristic of the diode be given by Equations, and typically represented by Figure. (a) Fo

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