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

Explain the purpose of the global descriptor table register, Explain the pu...

Explain the purpose of the global descriptor table register. The GDTR stand for global descriptor table register and IDTR stand for interrupt descriptor table register conta

Explain djnz instructions of intel 8051 microcontroller, Explain DJNZ instr...

Explain DJNZ instructions of intel 8051 microcontroller? a) DJNZ Rn, rel Decrement the content of the register Rn and jump if not zero. b) DJNZ direct, rel Decreme

Explain the principle of a thermocouple, Explain the principle of a thermoc...

Explain the principle of a thermocouple. Give two examples of some common thermocouples. Thermocouples : They are used for the measurement of temperature. While two wires of v

Estimate the missing precipitation to long-term average, Out of a long-term...

Out of a long-term record of precipitation for four adjacent stations you find that records of one station (station D) are missing for the spring months, September, October, and No

Transformer, how back emf is produced in transformer?

how back emf is produced in transformer?

Commercial fm radio broadcasting, Q. Commercial FM radio broadcasting? ...

Q. Commercial FM radio broadcasting? Commercial FM radio broadcasting utilizes the frequency band of 88 to 108 MHz for the transmission ofmusic and voice signals. The carrier

Resistance, factors affecting resistance

factors affecting resistance

Calculate power delivered to the network, Calculate power delivered to the ...

Calculate power delivered to the network: 1. A wave is traveling from left to right, emerging from Z g =50 with a peak amplitude of V p =5V. The 1-port network [S] has in=0.5-

Find appropriate values of sampling rate - nyquist rate , 1. Find the Nyqu...

1. Find the Nyquist rate for the following signals: (a) x(t) = 5 sin 3000Πt cos 4000Πt (b) A binary channel with bit rate 36000 bps is available for PCM voice transmission.

Construction of inductor, Construction of inductor An inductor is usual...

Construction of inductor An inductor is usually constructed as a coil of conducting material, typically opper wire, wrapped around a core either of air or ferrous material.

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