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

Explain bandwidth and applications of rc coupled amplifier, Q. Explain the ...

Q. Explain the bandwidth for the curve and the applications of an RC coupled amplifier. Frequency response curve of an RC coupled amplifier was shown above(prev page). The cut

truth table in sop form, Normal 0 false false false EN...

Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4

Evaluate parameters of a bjt, Q. The parameters of a BJT are given by α = 0...

Q. The parameters of a BJT are given by α = 0.98, I CBO = 90 nA, and i C = 7.5 mA. Find β, iB, and iE.

Explain data addressing modes available in microprocessors, Explain data ad...

Explain data addressing modes available in microprocessors? Data addressing modes available in microprocessors are given below: Direct Mode Indirect Mode Register Dire

Describe transistor stability parameters, Q. Describe transistor stability ...

Q. Describe transistor stability parameters The two parameters are · The stability factor ,K · Stability measure,ß1 These parameters determine the transistor stability

Calculate the rms value, The sinusoidal voltage source in the circuit shown...

The sinusoidal voltage source in the circuit shown in Fig. is developing an rms voltage of 2000 V. The 4 ? load in the circuit is absorbing four times as much average power as the

Working design with realistic models, A preliminary design with ideal resis...

A preliminary design with ideal resistors, inductors and capacitors, will get 25 marks. If the design does not meet the specifications then one mark will be deducted following the

Why ce configuration is widely used in amplifier circuits, Q. Why CE config...

Q. Why CE configuration is widely used in amplifier circuits? The main ability of an transistor lies in amplifying weak signals. The transistor cannot alone perform this functi

Accelerator and investment, Q. Accelerator and Investment? Accelerator,...

Q. Accelerator and Investment? Accelerator, Investment: Investment spending stimulates economic growth that consecutively stimulates further investment spending (as businesses

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