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

Testing stationarity, 1)  Use plot of the stock return and consider the Aut...

1)  Use plot of the stock return and consider the Autocorrelation Function to determine the auto-regressive structure of the data and explain why you think the return is stationary

Vacancy, i just want to know any vacant in teaching side. Iam interested in...

i just want to know any vacant in teaching side. Iam interested in taking online classes

Evaluate maximum directive gain, Q. For a pyramidal-horn antenna, the maxim...

Q. For a pyramidal-horn antenna, the maximum directive gain is given by occurring when the aperture dimensions are A ∼ = √3λLandB = 0.81A. The principal-plane beam- widths

Name the modes used by the dma processor to transfer data, Name the three m...

Name the three modes used by the DMA processor to transfer data? The three modes are:- a) Signal transfer mode (cycling stealing mode) b) Block transfer mode c) Demand

What is non-folded network, Q. What is Non-Folded Network? Non-Folded ...

Q. What is Non-Folded Network? Non-Folded Network: In a switching network, all outlet/inlet connection may be used for inter exchange transmission. In such a case, exchange d

Determine the range of analog output voltage, Q. For the 4-bit D/A converte...

Q. For the 4-bit D/A converter of Figure with V ref =-5 V, determine the range of analog output voltage and the smallest increment. Ans. The binary input range is from 0

Sketch the phasor diagram, Consider an RLC series circuit excited by v (t) ...

Consider an RLC series circuit excited by v (t) = 100√2 cos 10t V, with R = 20 , L = 1 H, and C = 0.1 F. Use the phasor method to find the steady-state response current in the cir

Explain the properties of high resistive materials, Explain the properties ...

Explain the properties of high resistivity materials. High resistivity materials: The conducting materials containing resistivity from 10 -6 to 10 -3 ohm-m come under such

Calculate reactive power to be delivered by the capacitor, A single-phase s...

A single-phase source delivers 100 kW to a load operating at 0.8 lagging power factor. In order to improve the system's efficiency, power factor improvement (correction) is achieve

Can you explain about slew rate, Q. Can you explain about Slew Rate? Sl...

Q. Can you explain about Slew Rate? Slew (or slewing) rate is a measure of how fast the output voltage can change. It is given by the maximum value of dvo/dt , which is normall

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