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

New asic design flow, There is a requirement to propose a new ASIC design f...

There is a requirement to propose a new ASIC design flow within your company, from VHDL design capture through to GDSII tape out.  It is very important that the flow includes all t

Metal oxide field effect transistor, Metal Oxide Field Effect Transistor ...

Metal Oxide Field Effect Transistor The metal-oxide-semiconductor field-effect transistor (MOSFET/MOS-FET/MOS FET) is a device employed for amplifying or for switching electr

Multiple tariff meters or tou meters, Multiple Tariff Meters or TOU Meters ...

Multiple Tariff Meters or TOU Meters Time of use metering facilitates load control and planning on the part of utilities. This is efficiently achieved using a concept known as

Draw a centralized spc organization, Q. Draw a centralized SPC organization...

Q. Draw a centralized SPC organization. Ans: A dual processor architecture can be configured to operate in one of three modes: (i)  Standby mode (ii)  Synchronous dupl

Phisics, deriving formula of the frictional force

deriving formula of the frictional force

Newtons law of gravitation, Particles of mass M and m separated in space by...

Particles of mass M and m separated in space by a distance R exert a mutually attractive gravitational force F on one another given by where G is the universal gravitationa

Explain intrinsic semiconductor, Explain Intrinsic Semiconductor. Intr...

Explain Intrinsic Semiconductor. Intrinsic Semiconductor: An extremely pure semiconductor is termed as intrinsic semiconductor. But at absolute zero temperature its valence b

Illustrate the satellites in outer space, Illustrate the satellites in oute...

Illustrate the satellites in outer space Satellites in outer space transmit signals to Earth. Computers in vehicles (for example car, airplane or ship) receive and interpret th

Harmonics, how harmonics shows effect on power systems?

how harmonics shows effect on power systems?

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

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