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

Science day, i need to submit a still model or a working model on science d...

i need to submit a still model or a working model on science day(28 February). can you help me....

What is command, A selection form an application's menu, or a command typed...

A selection form an application's menu, or a command typed in by the user, like at a DOS prompt or at the Run dialog box in Windows.

Explain the delay model, Explain the delay model based on logical effort of...

Explain the delay model based on logical effort often used in estimating delays in logic cells. Hence use the model to predict the delay of a 4-input NOR logic cell with a 3 times

find the maximum power transferred and input resistance, Given: R 1 = R 3...

Given: R 1 = R 3 = 1 k_, R 2 = 100 k_ and k = 0.1 A/V, and step-up transformer turns ratio is 10. a) Find the value of the load resistor RL that would maximize the power

Form factor, Significance of form factor,why we decide the power handing ca...

Significance of form factor,why we decide the power handing capacity in transmission with the help of form factor?

Explain the configuration of a step-by-step switching system, With neat dia...

With neat diagrams explain the configuration of a step-by-step switching system. Schematic diagram for such an exchange is given in Figure.  Every subscriber is connected to a

What is an amplifier, Q. What is an amplifier? What are the various types o...

Q. What is an amplifier? What are the various types of amplifiers? AMPLIFIER: A circuit that increases the amplitude of the given input signal is an amplifier. A small a.c. sig

Light triggering - power semiconductor devices , Light Triggering Whe...

Light Triggering When  light is  thrown  on silicon the hole electron pair get excited an increases hence  the leakage  current of J 2   increases which  will increase I C1 a

Compute the mutual inductance, Compute the mutual inductance: A long s...

Compute the mutual inductance: A long single layer solenoid has an effective diameter of 10 cm and it is wound with 1000 turns/m. There is a small concentrated coil with its p

RC phase shift oscillator, For the RC phase-shift oscillator if c=1pF and R...

For the RC phase-shift oscillator if c=1pF and R=10K determine the value of Rf

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