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 Service and Backwash Rates, Determine the Service and Backwas...

Determine the Service and Backwash Rates The system on site is a pressure sand filter, with a service curve. The filter is backwashed using the feed pump, at a higher flow rate, s

Forward bias, Forward bias In forward bias, the p-type is linked with...

Forward bias In forward bias, the p-type is linked with the positive terminal and the n-type is linked with the negative terminal.In forward bias mode the PN junction operati

Working of bootstrap sweep circuit, analysis and detail working of bootstra...

analysis and detail working of bootstrap sweep circuit

3-phase 180 degree mode vsi , 3-phase 180 0 mode VSI In 1800 mode VSI...

3-phase 180 0 mode VSI In 1800 mode VSI  each thyristor  conduct  for 1800 and two  thyristor  are fired  at 600 interval. For  example  if thyristor  T1  is fired at 00 then

Clapp oscillator, having looked at the circuit, i first wanted to start my ...

having looked at the circuit, i first wanted to start my frequency from 0 and plot for 10000 to 20000. so in matlab i used f = 0:10000:20000; but the equation for frequency is f= 1

Dc motor, why we rotate the armature of dc motor in anticlockwise direction...

why we rotate the armature of dc motor in anticlockwise direction

Illustrate the experts model of GPS system, Illustrate the experts model of...

Illustrate the experts model of GPS System A fundamental expert system is made up of the below elements: Setting up an Expert System -  Information is collected

Derive an expression for the electric force, Q. A two-winding system has it...

Q. A two-winding system has its inductances given by where k 1 and k 2 are constants. Neglecting the winding resistances, derive an expression for the electric force when

Semiconductors, Why do potential barriers breaks when a breakdown voltage i...

Why do potential barriers breaks when a breakdown voltage is application to semiconductor

Common-drain jfet amplifier, Q. Common-Drain JFET Amplifier? Figure (a)...

Q. Common-Drain JFET Amplifier? Figure (a) shows a CD JFET amplifier in which resistors R 1 , R 2 , and R SS are selected by the bias design, and capacitors CG and CS are chos

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