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

Determine the load voltage and the armature current, Q. Two shunt generator...

Q. Two shunt generators operate in parallel to supply a total load current of 3000 A. Each machine has an armature resistance of 0.05and a field resistance of 100. If the generat

Design of matching networks for amplifiers, Design a low noise amplifier us...

Design a low noise amplifier using an Infineon RF transistor BFP640. The amplifier is to be used to amplify the L2 GPS signal and so the centre frequency is 1227MHz and bandwidth 4

Data copy operations, Data Copy Operations Instructions which  are used...

Data Copy Operations Instructions which  are used  to copy data from  one location to another  location kept in  this category. The location from  which data  is copied  is cal

Dc basing bits, Dc basing bits: Operating point: operating is cut off...

Dc basing bits: Operating point: operating is cut off; saturation and linear region of bits character are provided as follow: (1)  Linear-region operation (2)  (1)

Discuss the need of peripheral component interconnect bus, Discuss the need...

Discuss the need of PCI bus. Peripheral Component Interconnect (PCI): It was developed by Intel and introduced in 1993 year. This is geared particularly to fifth- and sixth-

Explain the significance of v number, Explain the significance of V number....

Explain the significance of V number. Ans: V number or V parameter or normalized cutoff frequency is one of the parameter which is used to calculate the maximum number o

Operations on vectors, Can add vectors using the parallelogram rule Can ...

Can add vectors using the parallelogram rule Can multiply a vector by a scalar            - result is a parallel vector                        • length is scaled

Dc machine, explain front pitch and back pich ??

explain front pitch and back pich ??

Architecture for Real-time systems, The paper should be written in the form...

The paper should be written in the format of a paper to be submitted to a conference (IEEE). There should be a minimum of three journal paper references. The topic should be a disc

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