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

Automotive wiring harness, what are the design consideration for electrical...

what are the design consideration for electrical wiring harness routing

Compute the terminal voltage and current of each generator, Q. Three dc gen...

Q. Three dc generators are operating in parallel with excitations such that their external characteristics are almost straight lines over the working range with the following pairs

Impedance heating system, Under what circumstances is individual circuit pr...

Under what circumstances is individual circuit protection for a lighting and applications panel board not required? What is the purpose of guarding runway contact conductors and

Explain the application of clippers, Q. Explain the application of clippers...

Q. Explain the application of clippers. There are numerous clipper applications. In general clippers are used to perform one of the following two functions: · Changing the s

Pid controller design, PID controllers are popularly adopted in a wide rang...

PID controllers are popularly adopted in a wide range of industrial processes. The objective of this design practical is to study the way this PID controller changes system dynamic

Find the magnitude of the force, Q. A solenoid of cylindrical geometry is s...

Q. A solenoid of cylindrical geometry is shown in Figure. (a) If the exciting coil carries a steady direct current I, derive an expression for the force on the plunger. (b) F

For sign flag , For Sign Flag  CP ( Call on plus ) CM (Call on minus ...

For Sign Flag  CP ( Call on plus ) CM (Call on minus ) Instruction CP call  the subroutine  from the  specified  memory  location if  sign flag is not set or reset( S=0)

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