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

Fourier deconstruction, Fourier Deconstruction Find the Fourier series ...

Fourier Deconstruction Find the Fourier series as far as the third harmonic, to represent the periodic function y, given by the values in the following table.

How can magnetic fields can be plot, The magnetic fields can be plot by usi...

The magnetic fields can be plot by using: i.  Compass ii.  Iron dust method  .

Tunneling effect, what is tunneling effect ? With calculation.

what is tunneling effect ? With calculation.

Magnetism, with the aid of the diagram explain the following rules that can...

with the aid of the diagram explain the following rules that can be used to determine the direction of magnetic fields around a current carrying conductor (1)cork screw rule (2)rig

Multiplexers, how to design a 32:1 multiplexer using two 16:1 multiplexers ...

how to design a 32:1 multiplexer using two 16:1 multiplexers and a 2:1 multiplexer?

Clipper and clamper circuit, Clipper Circuits: Clipper circuit have ab...

Clipper Circuits: Clipper circuit have ability to Clipper of portions of the input signals without distorting the remaining part of the alternating wave form. Clamper net

Determine the output waveform of the voltage, Q. The first four harmonics i...

Q. The first four harmonics in the Fourier series of current waveform given by where I m = 15 mA and T = 1 ms. If such a current is applied to a parallel combination of R

What is a differentiator circuit, Q. What is a differentiator circuit? ...

Q. What is a differentiator circuit? By introducing electrical reactance into the feedback loops of op-amp amplifier circuits, we can cause the output to respond to changes in

Apparatus for BCD to excess 3, Apparatus for BCD to excess 3 convertor usin...

Apparatus for BCD to excess 3 convertor using nand and nor gates

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