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

Explain the tap changing transformers, Explain the Tap Changing Transformer...

Explain the Tap Changing Transformers? This is the most popular form of voltage control at all voltage levels. It is based on changing the turns ratio of the transformer, hence

Second generation 1954- 1964- history of computer , Second Generation ( 195...

Second Generation ( 1954- 1964) After the invention of semiconductor devices mainly transistors size of computer s was reduced a lot computing power increased reliability was

EEI., explain about heat time curve and cool time curve

explain about heat time curve and cool time curve

What is an oscillator and show the advantages of oscillators, Q. What is an...

Q. What is an oscillator? Discuss the advantages of Oscillators ? An oscillator is a system consisting of active and passive circuit elements to produce a sinusoidal or other r

Determine the voltage transfer function, Q. Determine the voltage transfer ...

Q. Determine the voltage transfer function of the low pass filter circuit shown in Figure, and find the expression for ω 0 .

Find kfm for the modulator using carsons rule, Q. A commercial FMstation br...

Q. A commercial FMstation broadcasts a signal with 180-kHz bandwidth when |f(t)|max = 2 V. Find kFM for the modulator if the spectral extent of f (t) is 30 kHz, by using Carson's r

Engineer, explain the alphanumeric codes

explain the alphanumeric codes

Determine the maximum value of the voltage, Q. Three waveforms seen on an o...

Q. Three waveforms seen on an oscilloscope are shown in Figure. If the horizontal scale is set to 50 ms per division (500 ms for the entire screen width), and the vertical scale is

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