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

Disaster management, role of electrical engineer in disaster management

role of electrical engineer in disaster management

Find the t-domain forced response in glc parallel circuit, Consider a GLC p...

Consider a GLC parallel circuit excited by i(t) = Ie st in the time domain. Assume no initial inductive current or capacitive voltage at t = 0. Draw the transformed network in the

Microcomputer - introduction to microprocessors , Microcomputer A micr...

Microcomputer A microprocessor is a  general purpose central processing  until of a digital  computer system. It has  arithmetic  logical unit  control circuits and a set of r

Drift current density and conductivity, Drift Current Density and Conductiv...

Drift Current Density and Conductivity: Consider a conductor of length / meters and cross sectional area a square meters, as shown in Fig. Let the number of free electrons ava

8086 mostly used , Where 8086 mostly used & tell application of 8086? ...

Where 8086 mostly used & tell application of 8086? Ans) 8086 is used for common purpose like it is used in traffic signals for control purpose .It's also used for small applic

Semiconductor, What is the similarities between a vacuum diode and a triode...

What is the similarities between a vacuum diode and a triode?

Electonic principles, can you help with my electronic principle assignment

can you help with my electronic principle assignment

Simplest equivalent circuit topology using lumped elements, Simplest equiva...

Simplest equivalent circuit topology using lumped elements: For each of the Smith chart traces below, sketch (at the right of each chart) the simplest equivalent circuit topol

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