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

Determine the service and backwash rates, Determine the Service and Backwas...

Determine the Service and Backwash Rates The system on site is a pressure sand filter, with a service curve. The filter is backwashed using the feed pump, at a higher flow rat

Rectifiers and inverters, Normal 0 false false false EN...

Normal 0 false false false EN-IN X-NONE X-NONE RECTIFIERS AND INVERTERS

Circuit, y more number of resistance and capacitor are used in a circuit w...

y more number of resistance and capacitor are used in a circuit what is the purpose to add ore than one..?

Write short note on quantization, Q. Write short note on Quantization? ...

Q. Write short note on Quantization? Quantization: This is first step in PCM. Total amplitude range of the modulating signal is divided into a number of standard levels calle

What are the predefined interrupts in 8086, What are the predefined interru...

What are the predefined interrupts in 8086? The predefined interrupts are, DIVISION BY ZERO (type 0) Interrupt. SINGLE STEP (type 1) Interrupt. NONMASKABLE (ty

Explain the operation of n-channel fet, Q. Explain the operation of N-chann...

Q. Explain the operation of N-channel FET? Transistor is a linear semiconductor device that controls current with the application of a lower-power electrical signal. Transistor

Calculate the e.m.f. generated in armature of a d.c. machine, The armature ...

The armature of a d.c. machine has a resistance of 0.3 and is connected to a 200V supply. Calculate the e.m.f. generated when it is running (a) as a generator giving 80A (b) as a

Peak inverse voltage - thyristor, Peak inverse Voltage   Peak  inverse v...

Peak inverse Voltage   Peak  inverse voltage is   important parameter in the design of rectifier circuit. PIV is the maximum  voltage that appears across the device  during its

Electronics, The mobility of free electrons and holes for pure silicon are ...

The mobility of free electrons and holes for pure silicon are 0.13 and 0.05 m2/V-S respectively. Find the intrinsic conductivity for silicon. Assuming ni = 1.5x 1016/cm3 at room te

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