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 limit signal spectrum to prevent aliasing, Explain Limit Signal Spe...

Explain Limit Signal Spectrum to Prevent Aliasing? The sampling frequency should at least be two times that of the highest frequency in the incoming signal to avoid aliasing. T

Determine the capacitor and inductor voltages, Experiment • Wire the circu...

Experiment • Wire the circuit shown in Figure. Connect the three oscilloscope channels as shown in Figure. • Select the sinusoidal waveform. Adjust the frequency of the input volt

Low voltage at transformers, Low Voltage at Transformers While the vo...

Low Voltage at Transformers While the voltage applied to induction motor varies from the rated voltage, its performance is affected. Against permissible voltage variation of

Storage delay and transistor alpha- beta, Turn-on, turn-off, and storage de...

Turn-on, turn-off, and storage delay: The Bipolar transistor shows a few delay characteristics while turning on and off. Most of the transistors, and particularly power transi

Partial fraction expansion for z transformation, how should I calculate in...

how should I calculate inverse z transform of 1/0.729z^-1+0.729z+1.5314

DC motor & encoder, If a high resolution emcoder is used for position contr...

If a high resolution emcoder is used for position control, will the number of pole count in the DC motor be matter? What is the requirement for the DC motor in order to work with h

Show that the force exerted on each charge, Q. Consider two 1-C charges sep...

Q. Consider two 1-C charges separated by 1 min free space. Show that the force exerted on each is about one million tons.

Find the capacitor voltage and current, Q. The energy stored in a 2-µF capa...

Q. The energy stored in a 2-µF capacitor is given by w c (t) = 9e -2t µJ for t ≥ 0. Find the capacitor voltage and current at t = 1s.

Air gaps, What is the main thing to look for in calculations of air gaps?

What is the main thing to look for in calculations of air gaps?

Define asynchronous communication with serial communication, With respect t...

With respect to serial communication define the asynchronous communication. Asynchronous implies "no synchronization", and therefore does not require sending and receiving idl

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