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

Calculate the voltage rating and magnetizing current, 1. For the flyback co...

1. For the flyback converter operating in the discontinuous "current" (flux) mode, derive an expression for the time at which the magnetizing current returns to zero. 2. A forwa

Solar energy, project for solar panel for farms in Saudi Arabia

project for solar panel for farms in Saudi Arabia

What is inductor, What is Inductor Inductor, also known as a choke, is ...

What is Inductor Inductor, also known as a choke, is another passive type electrical component designed to take benefit of this relationship by forming a much stronger magnetic

Armature reaction, cross magnetizing components of armature reaction is.......

cross magnetizing components of armature reaction is...........

Determine angle between incident ray and reflected ray, Assume a ray of lig...

Assume a ray of light is incident on a smooth reflecting surface at an angle of incidence of 15 degrees to the normal. What is the angle between the incident ray and the reflected

Types of hazards, The contents of compressed gas cylinders can range from h...

The contents of compressed gas cylinders can range from highly flammable substances, such as hydrogen, propane and ethane (acetylene), to toxic gases, such as chlorine, sulphur dio

Explain the energy bands in solids, Explain the energy bands in solids. ...

Explain the energy bands in solids. There are as several energy bands in a solid as there are energy levels in the parent atoms. Many electrical properties of significance

Metal–oxide–semiconductor structure, Metal-Oxide-Semiconductor Structure ...

Metal-Oxide-Semiconductor Structure A traditional metal-oxide-semiconductor abbreviated as MOS structure is acquired by growing a layer of silicon dioxide (SiO 2 ) on top of

Moving coil transducers, Note transducers  convert a physical quantity from...

Note transducers  convert a physical quantity from one  form to another.  The case below illustrates a typical moving coil meter   that   converts   a   current into a mechanical a

Find the mmf needed to establish a magnetic flux, Q. Consider the toroid sh...

Q. Consider the toroid shown in figure made up of three ferromagnetic materials. Material a is nickel-iron alloy having a mean arc length la of 0.6 m; material b is medium silicon

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