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

Voltage breakdown Diode, Help me, i need some answer regarding Voltage brea...

Help me, i need some answer regarding Voltage breakdown. What formula do I use?

Explain shockly''s equation and its significance, Q. Explain shockly's equa...

Q. Explain shockly's equation and its significance in plotting the transfer characteristics ? The linear relationship does not exists in the output of the JFET, the relationshi

Dc machines, a 400V 4-pole DC generator takes an armature current of 50A wh...

a 400V 4-pole DC generator takes an armature current of 50A when rotating at 626 rpm. the armature circuit resistance is 0,25ohms. determine the generated emf. DOC

Explain basic input output system function call, Discuss BIOS function call...

Discuss BIOS function call with one example. BIO stands for Basic Input Output System: This is a set of programs to give most basic low-level services as services keyboard, s

Digital electronic, how many data input and data output line for 8k 16-bits...

how many data input and data output line for 8k 16-bits?

Strategy and customer relationship management, Strategy and Customer Relati...

Strategy and Customer Relationship Management CRM sometimes considers as only information technology because of availability of quite a good number of software packages in the

Power plant, A power company is developing an upgrade to an existing power ...

A power company is developing an upgrade to an existing power plant and needs to make a requirements decision with respect to the maximum power output capacity for the upgrade. Thi

Illustrate computer-controlled routing, Q. Illustrate Computer-controlled r...

Q. Illustrate Computer-controlled routing? Computers are employed in network with common channel signaling (CCS) features. In CCS, there is a separate computer-controlled signa

Simulink help, I want simulink model for carrier based pwm method

I want simulink model for carrier based pwm method

What do you mean by circuit analysis techniques, What do you mean by Circui...

What do you mean by Circuit Analysis Techniques?   One simplifying technique often used in complex circuit problems is that of breaking the circuit into pieces of manageable

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