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

Three byte instruction , Three byte instruction The  instruction which...

Three byte instruction The  instruction which  have 16  bit data address  as its  operand  are three byte  instruction. They  need three  memory  locations to store  them in m

Determine the maximum electric field in the depletion region, An abrupt sil...

An abrupt silicon (n i = 10 10 cm -3 ) p-n junction consists of a p-type region containing 10 16 cm -3 acceptors and an n-type region containing 5 x 10 16 cm -3 donors. a)

Opmi]]r., Ask question #Minimukkgkmm 100 words accepted#

Ask question #Minimukkgkmm 100 words accepted#

Gets parameters data display, On running the simulation, a data display wil...

On running the simulation, a data display will automatically open, similar to that shown in figure. The red circle is the source mismatch stability curve. This will give an indicat

Thyristor terminology , Thyristor  Terminology The followings  terms ...

Thyristor  Terminology The followings  terms are used in SCR  specifications: Latching current : The  latching  current is  the value of on stat e current  required  to mai

What are procedures, What are procedures? Procedures are a group of ins...

What are procedures? Procedures are a group of instructions stored as a separate program in memory and it is known from the main program whenever needed. The type of procedure

State kirchoff''s current law, State Kirchoff's Current Law Kirchoff's...

State Kirchoff's Current Law Kirchoff's Current Law (KCL) describes at any junction in an electric circuit the total current flowing towards that junction is equivalent to th

What do you mean by mantissa, Q. What do you mean by Mantissa? The man...

Q. What do you mean by Mantissa? The mantissa , as well known as the significand , represents the precision bits of the number. It is composed of an implied leading bit and t

Sub subtract instruction, SUB Subtract Instruction This  instruction  i...

SUB Subtract Instruction This  instruction  is used to  subtract the contents of any  register  or memory location from  the contents of  accumulator. There are two  formats as

Motoring mode of rotating machines, Q. Motoring mode of rotating machines? ...

Q. Motoring mode of rotating machines? The motoring mode has electric power input and mechanical power output. The electromagnetic torque Te drives the machine against the load

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