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

Write down expressions for vbn, Q. Referring to Figure, let V BN = V RN =...

Q. Referring to Figure, let V BN = V RN = 120 V rms magnitude, and V BR = 240 V rms magnitude. Write down expressions for v BN (t), v RN (t), and v BR (t), and sketch them as a

Interfaced 2k x 8 eprom with multiple input nand gate, Interfaced 2k X 8 (i...

Interfaced 2k X 8 (i.e 2716) EPROM using multiple input NAND gate decoder for memory locations FF800H-FFFFFH. Simple NAND gate Decoder:  While the 2k x 8 EPROM is used so addre

Determine the location and the value of the point charge, Q The electric ?e...

Q The electric ?eld intensity due to a point charge in free space is given to be (-¯ ax -¯ ay +¯ az)/√ 12V/mat (0,0,1) and 6 ¯ az at (2,2,0) Determine the location and the value

Flow Chart and Cause-Effect Diagram, Flow Chart and Cause-Effect Diagram ...

Flow Chart and Cause-Effect Diagram Flow Charts Flow charts are pictorial representations of a procedure. By breaking the procedure down within its constituent steps, f

Hlt halt instruction , HLT Halt Instruction The microprocessor halts  ...

HLT Halt Instruction The microprocessor halts  the execution  of the  program and enters into  the wait  state  the address  and data bus are placed in the  high  impedance st

Determine the resistance and temperature-coefficient, Determine the resista...

Determine the resistance and temperature-coefficient: A platinum coil has a resistance of 3.146 Ω at 40 o C and 3.767 Ω at 100 o C. Determine the resistance at 0 o C and the t

Example register to memory , Example  Register  to Memory Example ...

Example  Register  to Memory Example : Write assembly language  statement  to copy 25H  stored  in register D to memory location 3052H. Solution :   Assuming  3050H is s

Knowledge of science and engineering fundamentals, Knowledge of science and...

Knowledge of science and engineering fundamentals Knowledge of basic science and engineering fundamentals is necessary for engineers to develop solution to any complex problem

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