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

Determine the maximum value of the voltage induced in coil, Q. A 10-turn sq...

Q. A 10-turn square coil of side 200 mm is mounted on a cylinder 200 mm in diameter. If the cylinder rotates at 1800 r/min in a uniform 1.2-T field, determine the maximum value of

Principal of bipolar junction transistor, Principal of Bipolar junction tra...

Principal of Bipolar junction transistor: A bipolar junction transistor (BJT) is a three-terminal electronic device that constructed of doped semiconductor material and might

Trivector meter, Trivector Meter A trivector meter is designed to reco...

Trivector Meter A trivector meter is designed to record active, reactive and apparent energy along with MD indicators on all. The trivector meter is a compact unit.  It exchan

Give some applications of constantan, Give some applications of constantan....

Give some applications of constantan. Constantan is an alloy of nickel and copper. It is used in thermocouples, motor starters and precision resistors.

Comparison of rs232c and rs422a standards, Explain explanatory notes on com...

Explain explanatory notes on comparison of RS232C and RS422A standards. Comparison of RS232C and RS422A standards: RS232C 1. Standard explained for asynchronous commu

Define addressing modes of 8085, Define addressing modes of 8085. a) Im...

Define addressing modes of 8085. a) Immediate addressing b) Register addressing c) Direct addressing d)  Indirect addressing e)  Implicit addressing

Dc generator, A 20kw 220v shunt generator has armature resistance of 0.07 a...

A 20kw 220v shunt generator has armature resistance of 0.07 and a shunt field resisitance 900 ohm find field loss?

Explain the working of asynchronous (ripple) counters, Explain the Working ...

Explain the Working of Asynchronous (Ripple) Counters? An external clock is connected to the clock input of the first flip-flop (FF0) only. Thus FF0 changes state at the falli

Explain transfer of risk, Q. Explain Transfer of Risk? In case of this ...

Q. Explain Transfer of Risk? In case of this method, risk is transferred to some other person or organization. In other words, under this method, a person who is subject to ris

Representation of the control system, Question: (a) The forward path t...

Question: (a) The forward path transfer function of a unity feedback control system is given by: (i) Draw the labelled block diagram representation of the control system.

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