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

Circuit theory ., it''s 3 assignments and each assignment have 7 questions ...

it''s 3 assignments and each assignment have 7 questions so each assignment have 1 hour when I open it I have only 1 hour to finish it I can show him or her the practice question t

Determine the speed of the motor, Q. A 10-kW, 250-V dc shunt generator, hav...

Q. A 10-kW, 250-V dc shunt generator, having an armature resistance of 0.1and a field resistance of 250 , delivers full load at rated voltage and 800 r/min. The machine is now ru

Illustrate the photo-conductive cell, Illustrate in detail digital encoders...

Illustrate in detail digital encoders. Illustrate the following with their application: Photo-conductive cell Photo-voltaic cell

What is the maximum entrance angle max, Calculate the N.A of a step index f...

Calculate the N.A of a step index fibre having n 1 =1.48 and n 2 =1.46. What is the maximum entrance angle ψ max for this fibre if the outer medium is air with n 1 =1.0? Given

Data analysis in gis, Data analysis in GIS: Therefore, GIS consists of...

Data analysis in GIS: Therefore, GIS consists of the following: 1.  Database - for storage and retrieval of information. The database forms the foundation of the GIS syst

Microcontroller - introduction to microprocessors , Microcontroller Mic...

Microcontroller Microcontroller  is also known  as computer  on a chip  this  includes basic  features of microprocessor (ALU Registers  and control circuits ) with  1 k to 2k

7 segment design, how to design 7 segment design using DSCH2 ?

how to design 7 segment design using DSCH2 ?

State about the embedded web technology, State about the Embedded Web Techn...

State about the Embedded Web Technology Embedded Web Technology (EWT) This is a new technology which uses the Internet in real time to interact/control with a device which

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