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

Working of field-effect transistors, Q. Working of Field-effect transistors...

Q. Working of Field-effect transistors? Field-effect transistors (FETs) may be classified as JFETs (junction field-effect transistors), depletion MOSFETs (metal-oxide-semicondu

Explain about register marker, Q. Explain about Register marker? Regist...

Q. Explain about Register marker? Register marker: Stronger selectors perform searching and counting . Though, the crossbar switch has no ‘intelligence'. Something external to

Explain commercial adcs and dacs, Explain Commercial ADCs and DACs? Ana...

Explain Commercial ADCs and DACs? Analog interface chips (AICs), like those in the Texas Instruments TLC32040 series, consist of all type of the analog components that explaine

Dc generators, An eight pole dc generator has an armature wound with 768 co...

An eight pole dc generator has an armature wound with 768 conductors each capable of carrying 50A without overheating. The emf generated in each conductor is 1.5V. Calculate the th

FET, shockely equation?

shockely equation?

How can a jfet be used as a voltage controlled resistor, Q. How can a JFET ...

Q. How can a JFET be used as a voltage controlled resistor. Explain from drain characteristics? The region to the left of the pinch off locus is referred to as the ohmic region

Mechanism of metal removal in electrochemical machining, What is the proces...

What is the process of metal removal in electrochemical machining? What are the basic functions of electrolyte in ECM? Illustrate the following key terms in electrochemical mach

Static v- i characteristics, Static V- I Characteristics The  static V-...

Static V- I Characteristics The  static V- I  characteristics of power diodes is shown  in figure 1.2  when the  anode is made  positive with  respect to cathode the power  dio

Name the 6 modes of operations of an 8253, Name the 6 modes of operations o...

Name the 6 modes of operations of an 8253 programmable interval timer. Mode 0: interrupt on terminal count Mode 1: hardware re -triggerable one-shot Mode 2: rate generato

Transfer function, derive transfer function of S= 2.25+j4.5

derive transfer function of S= 2.25+j4.5

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