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

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

Define causal system - discrete time systems, Define Causal System - Discre...

Define Causal System - Discrete Time Systems? A causal system is one which produces an output only when there is an input. All physical systems are causal. In general, a causal

Describe the design procedure of oai 321 cell at transistor, Obtain express...

Obtain expressions for the drain source current in an n-channel MOS transistor in terms of terminal voltages and transistor parameters. Indicate reasons why, for deep sub micron t

Calculate the guage pressure, Questions: Part (a) A compressor inst...

Questions: Part (a) A compressor installed at a wharf (for loading container ships) is able to provide 6 bar.g pressure into the pressure receiver. The compressor is moved

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

Transistors, What is the difference between a hybrid pi and an re model?

What is the difference between a hybrid pi and an re model?

Reflection and retraction in cables and their calculations, How do I calcul...

How do I calculate the line-cable and cable-line values of reflection and refraction coordinates?

Explain lda and daa instructions, Explain LDA, STA and DAA instructions ...

Explain LDA, STA and DAA instructions LDA copies the data byte into accumulator from the memory location particular by the 16-bit address. STA copies the data byte from the acc

Common source amplifier, Common Source Amplifier A common-source ampl...

Common Source Amplifier A common-source amplifier is one of three basic single-stage field-effect transistor abbreviated as FET amplifier topologies, commonly used as a volta

What is the working of sensor in robotics, (a) What is the working of senso...

(a) What is the working of sensor in Robotics ? (b) Define the following : (i) Proximity Sensor (ii) Tactile Sensors (iii) Optical Sensor. (c) What is an End Effecto

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