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

Thevenins theorem, advantages and disadvantages of thevenins theorem

advantages and disadvantages of thevenins theorem

Hlt halt instruction , HLT Halt Instruction The microprocessor halts  ...

HLT Halt Instruction The microprocessor halts  the execution  of the  program and enters into  the wait  state  the address  and data bus are placed in the  high  impedance st

What is polarisation, What is polarisation? Explain. While a dielectric...

What is polarisation? Explain. While a dielectric material is related an electric field the dipoles of the material find oriented in a certain direction under the effect of the

Determine the electromagnetic torque developed, Q. A dc series motor, with ...

Q. A dc series motor, with a design constant K a = 40 and flux per pole of 46.15 mWb, operates at 200 V while taking a current of 325 A. The total series-field and armature-circui

DECISIEN FEEDBACK, Do you provide me matlab code for comparison the perfor...

Do you provide me matlab code for comparison the performance of decision feedback equalizer over MLSE

Mixed mode simulator, Mixed Mode Simulator: The circuit is preproc...

Mixed Mode Simulator: The circuit is preprocessed. The test points and waveform markers are located in input and output of the circuit. GND net is set like reference net.

Super-heterodyne receiver, Write a short explanation of the principles of s...

Write a short explanation of the principles of super-heterodyne receiver. It may help to use sample block diagram to state the process. Why is the production of the intermediate fr

Metering techniques, Metering Techniques The techniques of metering co...

Metering Techniques The techniques of metering could be categorized depending upon the voltage at which consumers are fed as: 1. LT (Low Tension) Metering, and 2. HT (Hi

Ultrasonic Sensor Help for Seventh Grader, What are ultrasonic sensors made...

What are ultrasonic sensors made of? What is a good online source to find information on a basic level about ultrasonic sensors?

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