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

Sketch the inductor voltage and stored energy, (a) Consider a 5-µH inductor...

(a) Consider a 5-µH inductor to which a current source i(t) is attached, as shown in Figure (b). Sketch the inductor voltage and stored energy as a function of time. (b) Let a v

What is meant by daisy chaining method, What is meant by Daisy Chaining met...

What is meant by Daisy Chaining method?  It does not need any priority resolving network, rather the priorities of all the devices are effectively assumed to be in sequence.

Find the directive gain, Q. Aconical horn has a side viewas shown in Figure...

Q. Aconical horn has a side viewas shown in Figure  The maximum value ofthe directive gain is given by GD ∼ = 5.13(D/λ) 2 , where D =√3.33λL1 and L1 = L/(1-d/D),in which d is the i

Square wave, Connect the TTL output (square wave) of the "Audio Oscillator"...

Connect the TTL output (square wave) of the "Audio Oscillator" to the "Scope Selector". Adjust the frequency of the square wave to 2 kHz. Observe and record the time domain pict

ELECTRIC DRIVES, BLOCK DIAGRAM OF DIGITAL CONTROL OF ELECTRIC DRIVES

BLOCK DIAGRAM OF DIGITAL CONTROL OF ELECTRIC DRIVES

Illustrate frequency-shift keying, Q. Illustrate Frequency-shift keying? ...

Q. Illustrate Frequency-shift keying? Digital transmission by FSK is a nonlinear modulation method that is appropriate for channels that lack the phase stability needed to perf

Decrease in the dollar return on u.s. deposits, Q. Is a depreciation of the...

Q. Is a depreciation of the dollar/euro exchange rate correlated with a decrease in the dollar return on U.S. deposits? Answer: No, suppose that the Interest Parity is maintai

Digital electronics, Design a 4-bit synchronous counter that has the follow...

Design a 4-bit synchronous counter that has the following sequence: 0 ?4? 9?12 ? 14 ?15 and repeat using: i) JK FF ii)D FF

Use delta-wye transformation for network reduction, 1555_Use delta-wye tran...

1555_Use delta-wye transformation for network reduction.png what is the solution to this particular problem?

Explain two types of materials that are formed after doping, Explain the tw...

Explain the two types of materials that are formed after doping. Depending on the impurity added, extrinsic semiconductors can be then subdivided in two types of class: N-ty

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