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

Dc motor characteristics, Q. DC Motor Characteristics? We gain an under...

Q. DC Motor Characteristics? We gain an understanding of the speed-torque characteristics of a dc motor from Equations. In shunt motors, the field current can be simply control

Image retreval and face recognization technique, block diagram of eigen fac...

block diagram of eigen face,Viola & Jones Method,Bio-ID,RWTH-i6 Groups of People Database

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)

Define magnetic field, Define Magnetic field The area around a magnet i...

Define Magnetic field The area around a magnet is known as the magnetic field and it is in this area that the effects of the magnetic force formed by the magnet can be detected

Find the pull that must be exerted by the spring, Q. Figure can also be con...

Q. Figure can also be considered as a simple model of a magnetically operated relay that is commonly used for the automatic control and protection of electric equipment. Consider t

Power of the signal transmitted by powerful cell phones, What is the power ...

What is the power of the signal transmitted by powerful cell phones? Ans) The powerful cell phones can transfer a signal of 3 watts.

Discuss dos function call with one example, Discuss DOS function call with ...

Discuss DOS function call with one example. DOS function call: So as to use DOS function calls, always place the function number in register AH and load all other pertinent

Shunt reactor, what are the basic principles of shunt reactor and it''s ope...

what are the basic principles of shunt reactor and it''s operation system

Advantages of software defined radio, Advantages of SDR 1. Easy to upgr...

Advantages of SDR 1. Easy to upgrade 2. Great flexibility. It can be dynamically updated with new software without any changes in hardware 3. Due to reduced number of har

Floor number display, It is required that the current floor position be dis...

It is required that the current floor position be displayed as a number 1, 2, or 3 on a seven segment LED display on floor 1, which is quite close to the LCU. Data Storage It

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