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

Competition and non-conventional energy, Competition and Non-conventional e...

Competition and Non-conventional energy: Competition: The tariff policy bolsters competition through making it mandatory for a distribution licensee to procure power by

Introduction to electronics, Explain the difference between a microprocesso...

Explain the difference between a microprocessor and an embedded microcontroller

Illustrate simple telephone communication system, Q. Illustrate simple tele...

Q. Illustrate simple telephone communication system with circuit and equation of current flow in microphone? Ans: Simple  Telephone  Communication: In the simplest form of

Determine the maximum length, Q. If the line of Problem 15.1.3 is made of c...

Q. If the line of Problem 15.1.3 is made of copper whose resistivity ρ = 1.72×10 -8 ·m, determine the maximum length that can be used if losses are not to exceed 3 dB when f = 3

Loops and subroutines, 1.....If viewing this through the Assignment tool, c...

1.....If viewing this through the Assignment tool, click the title above to go to the Submissions area. Introduction The purpose of this experiment is to examine the opera

Describe watch dog timer and reaction timer, a. Given a timer with a termin...

a. Given a timer with a terminal count and a clock frequency of 10 MHz measure the following: (i) Range & Resolution (ii) Terminal count values needed to measure 3ms interval

Classification of solids insulators semiconductor condutors, Classification...

Classification of Solids into Insulators, Semiconductor and Conductors A solid can conduct electric current if the electrons can move in it. This is possible only when an ener

Magnetic circuits, develop and explain series and parallel magnetic circuit...

develop and explain series and parallel magnetic circuits?

Difference, Difference between bootstrip sweep circuit and Miller sweep ci...

Difference between bootstrip sweep circuit and Miller sweep circuit

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