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

How transistor will be used as an amplifier, (a) How transistor will be use...

(a) How transistor will be used as an amplifier? (b) Give relation between α and β? (c) Show the biasing arrangement for the PNP transistor in common base configuration, so t

Explain emergency repairs to rail fracture, Q. Explain Emergency Repairs to...

Q. Explain Emergency Repairs to rail fracture? Emergency Repairs - The fractured rails shall be joined by using the arrangements clamps, fish plates. If the gap at fracture doe

Determine the voltages, Question: a) For the circuit shown in figure ...

Question: a) For the circuit shown in figure (i) Determine the voltages across R1 and R2 and (ii) Determine the current which flows across R1 and R2. Both D1 and D2 a

Transformer cooling, An oil-filled transformer has a c.m.r. of 500 kVA whic...

An oil-filled transformer has a c.m.r. of 500 kVA which allows it to run continuously in an ambient of 35°C with an oil temperature rise of 50°C. The transformer has a time constan

How a nand gate decoder is used for 2716 eprom memory, With neat diagram in...

With neat diagram indicate how a simple NAND gate decoder is used to select a 2716 EPROM memory component for memory locations FF800H-FFFFFH. Simple NAND gate Decoder: As the 2

Ohm, what is ohm?

what is ohm?

Compute the required value of external series resistance, A 200-V dc shunt ...

A 200-V dc shunt motor has a field resistance of 200  and an armature resistance of 0.5 . On no load, the machine operates with full field flux at a speed of 1000 r/min with an a

Fourier transform for the function, The far-field pattern of an antenna can...

The far-field pattern of an antenna can be modeled as the two dimensional Fourier Transform of the aperture. 1. Determine the 2D Fourier Transform for the function

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