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

ET1410, MODULE 2 EXERCISE: OP-AMP CONFIGURATION

MODULE 2 EXERCISE: OP-AMP CONFIGURATION

Explain superconductivity, Explain Superconductivity. Superconductiv...

Explain Superconductivity. Superconductivity - The resistivity of most metals rises with rise in temperature and vice-versa. There are several metals and chemical compounds

Where does cpu enhanced mode originate from, Intel's 80386 was the first 32...

Intel's 80386 was the first 32-bit processor, and as the company had to backward-support the 8086. All the modern Intel-based processors run in the improved mode, capable of switch

Digital logic design, how to sort three number in descending order and disp...

how to sort three number in descending order and display on seven segment

Find the current flow through resistor using thevenin''s, Find the current ...

Find the current flow through resistor 12 Ω using Thevenin's Theorem.

Linear system to a unit-step excitation, Q. The response v(t) of a linear s...

Q. The response v(t) of a linear system to a unit-step excitation i(t) is given by v(t) = (5 - 3e -t + 2e -2t ) u(t). Determine the transfer function H(s) = V (s)/I (s).

How does voice one dsl work?, Question 1 Define the term telecommunication...

Question 1 Define the term telecommunication? Discuss briefly the various uses of telecommunication in daily life Question 2 Explain the powers and functions of the TRAI

What is the signal classification of 8085, What is the signal classificatio...

What is the signal classification of 8085 All the signals of 8085 can be classified into 6 groups Address bus Data bus Control and status signals Power supply and f

Explain the power transmission lines, Explain the Power Transmission Lines ...

Explain the Power Transmission Lines Transmission and distribution of electric power is accomplished by using overhead lines or underground cables. Overhead lines are normally

Change in an organisation, Change in an organisation: Change might ...

Change in an organisation: Change might be perceived in two ways: Change as continuous and intrinsic to an organisation and change as discontinuous & extrinsic. A force

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