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

Power distribution system, Power Distribution System The Distrib...

Power Distribution System The Distribution System contains: - Sub-transmission system in voltage ranges from 33 kV to 220 kV. The energy goes from power subs

Determine the transfer function and driving-point impedance, Q. A filter is...

Q. A filter is a network employed to select one range of frequencies while rejecting all other frequencies. A basic building block often used in integrated-circuit filters is shown

Magnetic ckt''s, what is the difference between statically and dynamically ...

what is the difference between statically and dynamically induced emf''s

Pn junction, the depletion layer in the pn junction is caused by

the depletion layer in the pn junction is caused by

Right-handed coordinate system, The vectors we will use we be refered to ri...

The vectors we will use we be refered to right-handed Cartesian axes. Right handed means that the x,y,z axes are oriented in a particular way (which you must know). See diagrams

What is the voltage gain of common gate amplifier, Q. What is the voltage g...

Q. What is the voltage gain of common gate amplifier? The controlled source gmVgs is connected from drain to source with rd in parallel.The resistor is connected Rs is connecte

Obtain a thevenin equivalent circuit, Q. (a) Obtain a Thevenin equivalen...

Q. (a) Obtain a Thevenin equivalent circuit at terminals A-B in the circuit. (b) What impedance ¯ZL, when connected to A-B, produces maximum power in ¯ZL? (c) Find the val

What is microprocessor, Write short notes of the following. a)    Microproc...

Write short notes of the following. a)    Microprocessor b)    Modes of data transfer. c)    I/O processor d)    Associative memory e)    Software and Hardware interrupt

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