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

Dc motor, write the working and construction of dc motor.

write the working and construction of dc motor.

Dad double add instruction , DAD Double Add Instruction The contents o...

DAD Double Add Instruction The contents of register  R P are added  to the  contents  of HL register pair  and results of addition is stored  in HL register pair. R P   may b

Determine the power angle delta, A synchronous motor has the following para...

A synchronous motor has the following parameters per phase. E=2kv, Eo=5kv, X2=3ohms, and I=700amps. Draw the phasor diagram and determine (a) power angle delta, (b) active po

Determine phase - voltage and power, Determine phase - voltage and power: ...

Determine phase - voltage and power: A balanced star connected load is supplied from a symmetrical 3-phase 440 Volt system. The current in each of the phase is 40 Amp and lags

What are the performance measures of oscillator circuits, Q. What are the p...

Q. What are the performance measures of oscillator circuits? 1. Stability: This is determined by the passive components. R, C and L determine frequency of oscillations. If R ch

Describe the term pure hardware delay, Question: (a) Describe the term...

Question: (a) Describe the term "Pure Hardware Delay" in microcontroller design. (b) Name the three types of subroutines which are placed at the interrupt location in ROM a

Explain standby mode of operation in spc organization, Q. Explain Standby m...

Q. Explain Standby mode of operation in SPC organization? Standby mode of operation is the simplest of dual processor configuration operations. Generally one processor is activ

What is induction machines, Q. What is Induction machines? We shall fir...

Q. What is Induction machines? We shall first consider polyphase induction motors and then single-phase induction motors. The polyphase induction motors used in industrial appl

Use ideal op-amp technique to find voltage at point, Q. In the circuit show...

Q. In the circuit shown in Figure, use the ideal op-amp technique to find: (a) v o as a function of v i . (b) The voltage at A.

Explain different routing plan adopted in a network, Q. Explain different R...

Q. Explain different Routing plan adopted in a Telephone network.  Ans: Hierarchical networks are capable of handling heavy traffic where required, and at the same time us

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