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

Types of field-effect transistors, Types of Field-Effect Transistors T...

Types of Field-Effect Transistors The channel of a FET (field-effect transistor) is doped to produce either an N-type semiconductor or a P-type semiconductor. The drain and so

Explain common emitter circuit, Q. Explain Common Emitter Circuit With The ...

Q. Explain Common Emitter Circuit With The Help Of A Circuit Diagram? Most transistor circuits have the emitter,rather than the base,as the terminalcommon to both input and out

Find the effective noise temperature, Q. An antenna with an effective noise...

Q. An antenna with an effective noise temperature of 130 K couples through a waveguide that has a loss of 0.8 dB to a receiver. Find the effective noise temperature presented by th

Explain linear versus nonlinear control systems, Q. Explain Linear versus n...

Q. Explain Linear versus nonlinear control systems? Linear feedback control systems are idealized models that are conceived by the analyst for the sake of simplicity of analysi

Thermal considerations, Thermal considerations: At continuous current,...

Thermal considerations: At continuous current, the voltage across the emitter-base junction V BE of a bipolar transistor get decreases 2 mV (silicon) and 1.8mV (germanium) fo

Solar energy, project for solar panel for farms in Saudi Arabia

project for solar panel for farms in Saudi Arabia

Obtain rated fundamental voltage across the motor, A 440-V, 60-Hz, six-pole...

A 440-V, 60-Hz, six-pole, wye-connected, squirrel-cage induction motor with a full-load speed of 1170 r/min has the following parameters per phase referred to the stator: R 1 = 0.

What does eu do?, Basically,8086 is separated into two part. 1. BIU. 2. EU ...

Basically,8086 is separated into two part. 1. BIU. 2. EU Execution Unit(EU)Fetch the instruction from Queue(memory(6 byte) in BIU.) and implement it.

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