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

What are the applications of jfet, Q. What are the applications of JFET? ...

Q. What are the applications of JFET? · FET is used as a buffer in measuring instruments, receivers since it has high input impedance and low output impedance. · FET's are u

Explain signal description of 8085, Explain signal description of 8085 ...

Explain signal description of 8085 a) Address bus b) Control and status signal c)  Address latch enable d)  S1,S0 status signals e)  Read ,write signal

Digital storage oscilloscope, #question.draw the block diagram pf digital s...

#question.draw the block diagram pf digital storage oscilloscope and briefly discuss about each block

Emi, what is strain gage

what is strain gage

Illumination, Ask question #Minimum 100A light assembly shop, 15 m long, 9 ...

Ask question #Minimum 100A light assembly shop, 15 m long, 9 m wide and 3 m up to trusses is to illuminated to a level of 200 lux. The utilization and maintenance factors are resp

Determine the capacitor voltage, Q. In an RLC series circuit excited by a v...

Q. In an RLC series circuit excited by a voltage source v(t), for R = 10 , L = 1 H, and C = 0.1F, determine v(t) if the capacitor voltage vC(t) = 5e -10t V.

Earth leakage-earthing, Earth Leakage : Earth leakage takes place when, th...

Earth Leakage : Earth leakage takes place when, through some fault in an appliance or its connections. Electric current escapes to earth i.e. the body of the appliance become 'liv

Explain working of phase shift oscillator, Explain working of Phase Shift O...

Explain working of Phase Shift Oscillator? Figure shows a phase shift oscillator. Here the combination of ReCe provides self bias for the amplifier. The phase of the signa

Describe 74ls139 memory decoder, Describe 74LS139 memory decoder. The 7...

Describe 74LS139 memory decoder. The 74LS139 is a dual 2-to-4 line decoder. This contains two separate 2-to-4 line decoders - all with its address, output and enable connection

Materials that can store electrical energy, Q . Materials that can store ...

Q . Materials that can store electrical energy are called (A) magnetic materials. (B) semi conductors. (C) dielectric materials. (D) super conductors. Ans: C

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