Computes similarity between two histograms, Electrical Engineering

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?

Posted Date: 2/26/2013 12:25:57 AM | Location : United States







Related Discussions:- Computes similarity between two histograms, Assignment Help, Ask Question on Computes similarity between two histograms, Get Answer, Expert's Help, Computes similarity between two histograms Discussions

Write discussion on Computes similarity between two histograms
Your posts are moderated
Related Questions
Define Hysteresis Hysteresis is the 'lagging' effect of flux density B whenever there are changes in the magnetic field strength H. When an initially unmagnetized ferromagnetic

The mathematical relationships of control systems are usually represented by block diagrams, which show the role of various components of the system and the interaction of variable

Electromechanical Meters Electromechanical energy meters are based on the Ferraris Principle (see note in the margin). The working of these meters is explained. Working o

can i use steplaizer with capisetor step up valtage

Energy Gap Differentiating feature between the metals, insulators, and semiconductors. Ascertains the absorption or emission spectra, the leakage current, and the intrin

Q. What is Non-Folded Network? Non-Folded Network: In a switching network, all outlet/inlet connection may be used for inter exchange transmission. In such a case, exchange d

4GLs (Fourth Generations Languages) These  are called  non procedural  languages May be considered as  advanced HLL. Objects oriented programming  languages and language  with

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

What is the function of DMA address register? Every DMA channel has one DMA address register. The function of this register is to keep the address of the starting memory locati

A three-phase, wye-connected, cylindrical-rotor synchronous generator rated at 10 kVA and 230  V has a synchronous reactance of 1.5per phase and an armature resistance of 0.5  pe