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

Stc set carry instruction, STC Set Carry Instruction This instruction ...

STC Set Carry Instruction This instruction  sets   the carry  flag  to 1. The  instruction format is STC Flags except carry no other  flags are affected

Interpret the assembly output of the lc - 3 compilers, Interpret the Assemb...

Interpret the Assembly Output of the LC - 3 Compilers Goals to understand the stack convention of the LC3 compiler: How the stack pointer and frame pointer are managed

Electrical, do you have a place where I can draw the equation out ?

do you have a place where I can draw the equation out ?

Find an expression for the total flux, Q. A rectangular loop is placed in t...

Q. A rectangular loop is placed in the field of an infinitely long straight conductor carrying a current of I amperes, as shown in Figure. Find an expression for the total

Principles behind ecg monitoring, a) Provide pertinent summary of the basic...

a) Provide pertinent summary of the basic principles behind ECG monitoring b) Using MATLAB, provide plots of the "clean" and "noisy" ECG signals. Investigate the spectral es

What do you mean by most and least significant digits, Q. What do you mean ...

Q. What do you mean by Most and least significant digits? The MSD (most significant digit) in a number is the digit which represents the largest part of the number. Therefore i

Basic characteristics and operation of mosfet, Q. Basic Characteristics and...

Q. Basic Characteristics and Operation of MOSFET ? In Figure the gate-to-source voltage is set to zero volts by the direct connection from one terminal to the other, and a volt

Relationship between the induced e.m.f and the network, Mathematical relati...

Mathematical relationship between the induced e.m.f and the network Faraday noted that the e.m.f induced in a loop is proportional to the rate of change of magnetic flux by it:

Working of crt, Q.   Explain working of CRT with suitable diagram discuss t...

Q.   Explain working of CRT with suitable diagram discuss the focusing arrangement. What is need of aquadag? OR Why are the operating voltages of a cathode ray tube arran

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