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
write a short notes of thermal compansation?

Q. Explain the term total harmonic distortion. Describes the functionary of a total harmonic distortion analyzer. Total Harmonic Distortion: Nonlinear behaviors of circuit el

Q. When the J and K inputs of a JKFF are tied to logic 1, this device is known as a divide-by-2 counter. Complete the timing diagram shown in Figure for this counter.

Three byte instruction The  instruction which  have 16  bit data address  as its  operand  are three byte  instruction. They  need three  memory  locations to store  them in m

Conditional Call Instruction Similar  to conditional  jump  instructions there are conditional call  instructions  also based on various  flags.

Semi-conductors have temperature coefficient of resistance.  (A) Negative                                    (B) Positive (C) Both positive and negative        (D) none o

The Central Processing Unit The  central processing  unit  is the brain of whole PLC.  The CPU  consist of a microprocessor memory  chip  and other  integrated circuits to con

Explain Soft ferrites and their applications. Soft ferrites and their applications: Such are non- metallic compounds having ferric oxide and one or two bivalent metal oxides as

Q. Give an introductive notes about FET amplifier ?  The small signal models for the common source FET can be used for analyzing the three basic FET amplifier configurations: (

What is Logic Gates? The Logic Gates are circuits made up of transistors, diodes, and resistors. The Logic gates process one or more input signals in a logical fashion. Dependin