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

Classification of feedback control systems by control action, Classificatio...

Classification of Feedback Control Systems by Control Action A more common means of describing industrial and process controllers is by the way in which the error signal E(s) i

Evaluate the thickness of the shell plate, A cylindrical shell with flat en...

A cylindrical shell with flat ends is of 1.5 m Internal diameter and 4 m length. It is subjected to an internal pressure of 300 N/cm 2 . The principal stress is not to exceed 15 K

Explain dielectric constant, Explain Dielectric constant. Dielectric co...

Explain Dielectric constant. Dielectric constant: This is also termed as 'Permittivity'. All insulating material possesses an electrical capacitance. Such capacitance of unit d

Motoring mode of rotating machines, Q. Motoring mode of rotating machines? ...

Q. Motoring mode of rotating machines? The motoring mode has electric power input and mechanical power output. The electromagnetic torque Te drives the machine against the load

DLD, DESIGN SR LATCH WITH UNIVARSAL LOGIC GATES.DRAW AND EXPLAIN THE LOGIC ...

DESIGN SR LATCH WITH UNIVARSAL LOGIC GATES.DRAW AND EXPLAIN THE LOGIC DIAGRAMS

Vlsi, what is the difference between latch and flipflop

what is the difference between latch and flipflop

Show balanced three-phase loads, Q. Show Balanced three-phase loads? Th...

Q. Show Balanced three-phase loads? Three-phase loads can be connected in either wye (also known as star or Y) or delta (otherwise known as mesh or ). If the load impedances i

Trends, what is south africas perspective?

what is south africas perspective?

Determine the motor speed at a specific line current, Q. A dc series motor ...

Q. A dc series motor operates at 750 r/min with a line current of 100 A from the 250-V mains. Its armature-circuit resistance is 0.15  and its series-field resistance is 0.1 . As

Explain basic control systems, Q. Explain Basic Control Systems? Electr...

Q. Explain Basic Control Systems? Electric energy is widely used in practice, because of the ease with which the system and device performance can be reliably controlled. One o

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