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

Impedance diagram of per uint values, explian briefly with in diagram and n...

explian briefly with in diagram and numerical examples

Sketch the timing diagram for a 4-bit ripple counter, Q. Sketch the timing ...

Q. Sketch the timing diagram for a 4-bit ripple counter which uses T flip-flops.

Explain working of cardiac pacemaker, Q. Explain working of Cardiac Pacemak...

Q. Explain working of Cardiac Pacemaker? When blockage occurs to the biological signals that stimulate the heart to beat, the application of electric pacemaker pulses forcing t

Gate source cut off voltage, Q. Gate source cut off voltage? It is the ...

Q. Gate source cut off voltage? It is the gate source voltage where the channel is completely cut off and the drain current becomes zero.It is interesting to note that the valu

Digital electronics, Design a recycling MOD 19 up counter using JK FFs. In ...

Design a recycling MOD 19 up counter using JK FFs. In your design, include the logic circuit diagram and the timing diagram output that counts from 000002 = 010 to 100112 = 1910. C

Determine the largest crest factor, A quantizer has 130 quantum levels that...

A quantizer has 130 quantum levels that exactly span the extremes of a symmetrically ?uctuating message with step size δv = 0.04 V. Determine the following: (a) |f(t)|max.

Asset information management system, Asset information management system: ...

Asset information management system: GIS has the potential to revolutionize the reform procedure in areas such as consumer indexing, asset and work management, distribution ne

Types of sweeps, There are four basic types of sweeps: (a)             ...

There are four basic types of sweeps: (a)                                Free Running or Recurrent Sweep: in the free running or recurrent sweep, the sawtooth waveform is re

Calculate the supply voltage on the high-voltage side, Q. A 150-kVA, 2400/2...

Q. A 150-kVA, 2400/240-V, 60-Hz, single-phase transformer has the following parameters: R 1 = 0.2 , R 2 = 0.002 , X 1 = 0.45 , X 2 = 0.0045 , RC = 10 k, and Xm = 1.55 k,

Calculate the stator input current, Q. Calculate the stator input current? ...

Q. Calculate the stator input current? The parameters of the equivalent circuit shown in Figure for a three-phase, wye-connected, 220-V, 10-hp, 60-Hz, six-pole induction motor

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