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

What are the performance measures of oscillator circuits, Q. What are the p...

Q. What are the performance measures of oscillator circuits? 1. Stability: This is determined by the passive components. R, C and L determine frequency of oscillations. If R ch

#mixed storage oscilloscope, ..Explain mixedd storage oscilloscope with ne...

..Explain mixedd storage oscilloscope with neat diagram,

Linear and IC applications, bias compensation techniques for ac and dc char...

bias compensation techniques for ac and dc characteristics

Distinguish between paramagnetic and diamagnetic materials, Distinguish bet...

Distinguish between paramagnetic and diamagnetic materials, mentioning at least one example of each. Paramagnetic Materials: The atoms of these materials have permanent magne

RLC series, What is Average value in AC circuit?

What is Average value in AC circuit?

Battery service provider system specification, The vehicle batteries shall ...

The vehicle batteries shall be owned by the battery service provider. The automobile battery shall be recyclable, environmentally friendly, and safe. The battery service pr

Background of energy conservation, Background of Energy Conservation ...

Background of Energy Conservation As a thumb rule, the energy needs of a country are about 1.5 times its GDP or the economic growth rate. India's projected growth rate up to

Sketch the inductor voltage and stored energy, (a) Consider a 5-µH inductor...

(a) Consider a 5-µH inductor to which a current source i(t) is attached, as shown in Figure (b). Sketch the inductor voltage and stored energy as a function of time. (b) Let a v

OC AND SC TEST OF AN ALTERNATOR, WRITE THE PROCEDURE CONDUCT OC AND SC TEST...

WRITE THE PROCEDURE CONDUCT OC AND SC TEST OF AN ALTERNATOR TO FIND SYNCHRONOUS IMPEDENCE

What is the use of 8251 chip, What is the use of 8251 chip? 8251 chip i...

What is the use of 8251 chip? 8251 chip is mostly used as the asynchronous serial interface among the processor and the external equipment.

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