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

Chemistry, write a short note on Scale

write a short note on Scale

Research publication, i need research publication help. The topic is PHASED...

i need research publication help. The topic is PHASED ARRAY ANTENNA DESIGN for KU-band. I want a research paper that can be published in some conference.

Determine the e.m.f., A 6-pole armature has 1000 conductors and a flux per ...

A 6-pole armature has 1000 conductors and a flux per pole of 40mWb. Determine the e.m.f. generated when running at 600 rev/min when (a) lap wound (b) wave wound.

Requirement for an intrinsically safe circuit, Compute the ampacity of a 25...

Compute the ampacity of a 250 AWG copper conductor with type UF insulation that will be used in an area with an ambient temperature of 79°F (26°C). State the ampacity and explain h

Magnetic Circuits:, A circular ring of magnetic material has a mean length ...

A circular ring of magnetic material has a mean length of 1m and a cross sectional area of .001m^2.A sawcut of 5mm width is made in the ring . calculate the magnetizing current req

Briefly explain energy and power, Q. Briefly Explain Energy and Power? ...

Q. Briefly Explain Energy and Power? If a charge dq gives up energy dw when going from point a to point b, then the voltage across those points is defined as v = dw/dq If

Electrical, star delta drawing with timer

star delta drawing with timer

Name the flag bits available in 8085 microprocessors, Name  the flag bits a...

Name  the flag bits available in 8085 microprocessors. The 8085 microprocessor has five flags to show  five different  types  of data conditions .they are zero(Z),carry(CY),Sig

Decrease in the dollar return on u.s. deposits, Q. Is a depreciation of the...

Q. Is a depreciation of the dollar/euro exchange rate correlated with a decrease in the dollar return on U.S. deposits? Answer: No, suppose that the Interest Parity is maintai

Determine the binary values of the first three samples, A 3-bit quantizer i...

A 3-bit quantizer is utilized to transform the following signal into a binary digital signal. Determine the binary values of the first three samples (assuming the quantizer rounds

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