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

Minimize f in a pos form and obtain a possible realization, Q. The truth ta...

Q. The truth table for F(A,B,C) = Mi (0, 1, 6, 7) is as follows: (a) Express F in a canonical product-of-sums form. (b) Minimize F in a POS form and obtain a possible re

Find the current through each resistor, For the circuit in figure, find the...

For the circuit in figure, find the current through each resistor.

Explain shockly''s equation and its significance, Q. Explain shockly's equa...

Q. Explain shockly's equation and its significance in plotting the transfer characteristics ? The linear relationship does not exists in the output of the JFET, the relationshi

C R O DELAY LINE, WHAT IS THE FUNCTION OF DELAY LINE IN CRO

WHAT IS THE FUNCTION OF DELAY LINE IN CRO

Explain a miller sweep generator, Q. With the help of circuit diagram expla...

Q. With the help of circuit diagram explain a Miller Sweep generator Figure given below shows the circuit of a Miller integrator or a sweep circuit. Transistor Q1 acts as a swi

Calculate the power factor of the motor, A 3 phase 400 volt(line to line) w...

A 3 phase 400 volt(line to line) wye connected synchronous motor has Xs= 1 ohm per phase and a negligible armature resistance. The field current is so adjusted that the internal(in

In given block diagram find geq, Q. Show that the block diagram of Figure c...

Q. Show that the block diagram of Figure can be reduced to the form of Figure. Find G eq (s) and H eq (s).

Capacitor-input filter, Capacitor-input filter: The capacitor-input fi...

Capacitor-input filter: The capacitor-input filter, as well called pi filter because of its shape which looks like the Greek letter pi, is a sort of electronic filter. Filter

Common control switching system, Q. Common control switching system? C...

Q. Common control switching system? Common Control Switching System: A functional block diagram of a common control switching system is displayed in Figure. Control functions

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