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

What are synchronous decade counters, What are Synchronous Decade Counters?...

What are Synchronous Decade Counters? Alike to an asynchronous decade counter, the synchronous decade counter counts from 0 to 9 and then recycles to 0 again, This is done by

What is key bouncing, What is Key bouncing? Mechanical switches are us...

What is Key bouncing? Mechanical switches are used as keys in lots of the keyboards. When a key is pressed the contact bounce back and forth and settle down only after a littl

Fly back converter - power supplies, Fly  Back Converter In fly  back ...

Fly  Back Converter In fly  back  converter an inductor is used is  primary winding of transformer. Inductor  stores  the energy when  unregulated DC  input is given  to the

#titleclipper diode.., Ask quedisadvantages stion #Minimum 100 words accept...

Ask quedisadvantages stion #Minimum 100 words accepted#

Colpitts oscillator, how does a colpitts oscillator works an also explain t...

how does a colpitts oscillator works an also explain the principle

Electronics, The mobility of free electrons and holes for pure silicon are ...

The mobility of free electrons and holes for pure silicon are 0.13 and 0.05 m2/V-S respectively. Find the intrinsic conductivity for silicon. Assuming ni = 1.5x 1016/cm3 at room te

BE, WHICH PROJECT WILL BE BEST THESE DAY

WHICH PROJECT WILL BE BEST THESE DAYS

What is global positioning satellite, What is Global Positioning Satellites...

What is Global Positioning Satellites (GPS) Global positioning satellite (GPS) systems are used to determine exact location of a car, ship, airplane or any conveyance that trav

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