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

Evaluate the transfer function, Since dc motors of various types are used e...

Since dc motors of various types are used extensively in control systems, it is essential for analytical purposes that we establish a mathematical model for the dc motor. Let us co

Example numerical of dc generator., Q. An 8 - pole dc generator has 500 arm...

Q. An 8 - pole dc generator has 500 armature conductors and has a useful flux per pole of 0.065 web. What will be the emf generated if it is lap connected and runs at 1000 r.p.m.

TRANSFORMER, what are the characteristics of transformer?

what are the characteristics of transformer?

Determine the location and the value of the point charge, Q. The electric f...

Q. The electric field intensity due to a point charge in free space is given to be Determine the location and the value of the point charge.

Electric scooter, Hi there i need help with design battery charger for elec...

Hi there i need help with design battery charger for electric scooter 24v battery. i have to design sechmatic diagram and PCB for it. using Altuim design software many thanks 006

Calculate the induced armature voltage, Q. A 50-kW, 250-V, short-shunt comp...

Q. A 50-kW, 250-V, short-shunt compound generator has the following data: R a = 0.06 , R S = 0.04 , and R f = 125 . Calculate the induced armature voltage at rated load and t

Determine the electromagnetic force on the plunger, Q. Consider the electro...

Q. Consider the electromagnetic plunger shown in Figure. The λ-i relationship for the normal working range is experimentally found to be λ = Ki 2/3 /(x+t), where K is a constant. D

Equalizer rings, purpose of equalizer rings in lap winding

purpose of equalizer rings in lap winding

Revision of basics, Revision  of Basics Although  it is  assumed in th...

Revision  of Basics Although  it is  assumed in this book  that the  reader has  enough  knowledge of  various number systems ( binary, octal and hexadecimal and their relation

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