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

Illustratecommon base configuration, Q. IllustrateCommon base configuration...

Q. IllustrateCommon base configuration? Common base configuration: In this circuit the base is common to both input and the output.Such a configuration is also known as groun

MECHANICAL SCIENCE, 0PERATION OF POWER TRANSMISSION (SPEED GOVERNORS)

0PERATION OF POWER TRANSMISSION (SPEED GOVERNORS)

Static v- i characteristics - power semiconductor devices , Static V- I Cha...

Static V- I Characteristics A thyristor  works in  three basic  modes a.Reverse  blocking mode b.Forwards  blocking  mode and c.Forward  conducting  mode In revers

Wien Bridge Oscillator, i need some explanation on Wien Bridge Oscillator ...

i need some explanation on Wien Bridge Oscillator with some example ?

Image retreval and face recognization technique, block diagram of eigen fac...

block diagram of eigen face,Viola & Jones Method,Bio-ID,RWTH-i6 Groups of People Database

Find the maximum frequency of an output sine wave, Find the maximum frequen...

Find the maximum frequency of an output sine wave which can be produced at an amplitude of 1.5 V if the op-amp slew rate is 0.5 V/µs.

Calculate the v number and the number of guided modes, A multimode step ind...

A multimode step index fibre along with a core diameter of 80µm and a associative refractive index difference of 1.5% is operating at a wavelength of 0.85µm. If the core refractive

Microprocessor, Memory map of tpa in a personal computer and explain such o...

Memory map of tpa in a personal computer and explain such of the areas in brief

What is the need for bias stabilization in bjt, Q. What is the need for bia...

Q. What is the need for bias stabilization in BJT? BJT or bi-polar junction transistor is a three terminal, two junction semiconductor device and the conduction is due to the m

Structure and use of pnp transistor, Structure and use of PNP transistor: ...

Structure and use of PNP transistor: The figure opposite is a schematic presentation of a PNP transistor related to two voltage sources. To construct the transistor conduct ap

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