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

power system operation, AskWrite short notes on pit head generation. ques...

AskWrite short notes on pit head generation. question #Minimum 100 words accepted#

Op amps, calculating different op amps

calculating different op amps

The three-phase alternator, The Three-phase alternator In this case, t...

The Three-phase alternator In this case, three separate sets of coils are wound on the stator and connected to produce three separate outputs. Because of the physical displace

Explain noise, Explain Noise Noise is unwanted signals which degrade t...

Explain Noise Noise is unwanted signals which degrade the desired signal content and therefore the performance of the system. Noise might be produced either externally or inte

Explain current-to-current amplifier, Q. Explain Current-to-Current Amplifi...

Q. Explain Current-to-Current Amplifier ? The circuit given in Figure is to amplify a current fed to the input of the op amp. Applying KCL at Y, i 1 + i S = i o S

Determine briefly subscriber loop system, Q. Determine briefly subscriber l...

Q. Determine briefly subscriber loop system.  Give some technical specification for subscriber lines. Ans: Subscriber Loop System: Each subscriber in a telephone network is

Discuss in brief on combination clippers, Q. Discuss in brief on combinatio...

Q. Discuss in brief on combination clippers ? Combination clippers are a combination of biased positive and negative clippers. With a combination clipper, a portion of both pos

Amper circuital lw, the plot of amper circuital law by using matlap?

the plot of amper circuital law by using matlap?

Electric roadway system specification, The electric roadway system shall ut...

The electric roadway system shall utilize solar energy as the main power source. The electric roadway system shall negotiate with the power utility on backup power supply.

Cdma transmission model, The RAKE receiver exploits multipath channel chara...

The RAKE receiver exploits multipath channel characteristics and scrambling codes with good cross-correlation properties to realize a maximum ratio diversity combiner. Multipath pr

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