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

Find percent error of both meters when measuring a current, Q. Error specif...

Q. Error specifications on a 10-A digital ammeter are given as 0.07% of the reading, 0.05% of full scale, 0.005% of the reading per degree Celsius, and 0.002% of full scale per deg

Determine phase - voltage and power, Determine phase - voltage and power: ...

Determine phase - voltage and power: A balanced star connected load is supplied from a symmetrical 3-phase 440 Volt system. The current in each of the phase is 40 Amp and lags

FLOW CHART TO RUN MOTOR, IFYOU AVE TWO DC MOTOR,RELAY,TWO BATTERYAND MICROC...

IFYOU AVE TWO DC MOTOR,RELAY,TWO BATTERYAND MICROCONTROLLER FLOW CHART TO RUN MOTOR AND CONTROL TWO BATTERIES

Determine frequency of rotor current, A 3 phase, 6 pole induction motor is ...

A 3 phase, 6 pole induction motor is rated at 400hz, 150v, 10h.p., 3% slip at rated power output. The windage and friction loss is 200w at rated speed. With the motor operating at

Explain a tube well, Q. Explain a Tube Well? Method of restoring or inc...

Q. Explain a Tube Well? Method of restoring or increasing the capacity of tube well is known as developing a Tube Wells. This is done to eliminate bridging of fine particles on

Find the minimum sum of products, Given that , f(a,b,c,d,e) = Σm (6,7,9,11,...

Given that , f(a,b,c,d,e) = Σm (6,7,9,11,12,13,16,17,18,20,21,23,25,28) using a Karnaugh map. (i) Find the essential prime implicants (ii) Find the minimum sum of product

Op amps, calculating different op amps

calculating different op amps

Robotic Arm Project, This is basically a simple senior design project where...

This is basically a simple senior design project where the professors are giving us a limited budget and providing us with an Arduino Board. (We can use rasberry pi, beagle bone, e

Solve for the time-domain forced response of the resultant, Consider an RLC...

Consider an RLC series circuit excited by v(t) = V m cos ωt in the time domain. By using superposition, solve for the time-domain forced response of the resultant current through

Magnetic permeability and the definition of the amp, The ampere has been de...

The ampere has been defined (by the International Committee of Weights and Measures in 1946) as the current flowing in two long parallel wires 1 metre apart that produces a force o

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