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

Give the alternate functions for the port pins of port3, Give the alternate...

Give the alternate functions for the port pins of port3? RD - Read data control output. WR - Write data control output. T1 - Timer / Counter1 external input or test pin.

What is segment displays, Q. What is Segment displays? Seven-segment di...

Q. What is Segment displays? Seven-segment displays are the most commonly used numeric display devices, while 10- and 16-segment (starburst) display devices are also available.

Determine the transfer function and driving-point impedance, Q. A filter is...

Q. A filter is a network employed to select one range of frequencies while rejecting all other frequencies. A basic building block often used in integrated-circuit filters is shown

Use ideal op-amp technique to find voltage at point, Q. In the circuit show...

Q. In the circuit shown in Figure, use the ideal op-amp technique to find: (a) v o as a function of v i . (b) The voltage at A.

Show the octal number system, Q. Show the Octal Number System? Though t...

Q. Show the Octal Number System? Though this was once a popular number base, especially in the Digital Equipment Corporation PDP/8 and other old computer systems, it is rarely

Working principle of a q meter, Q. Explain the working principle of a Q met...

Q. Explain the working principle of a Q meter. Also explain the factors that cause errors during a Q factor measurement. Ans.   Working Principle of Q Meter: the q meter is

Disaster management, role of electrical engineer in disaster management

role of electrical engineer in disaster management

MIMO, MIMO downlink mode uses

MIMO downlink mode uses

Key performance indicators in business, Key Performance Indicators in Busin...

Key Performance Indicators in Business Significance of Key Performance Indicators (KPIs) in the business of power especially within a change environment due to partial deregul

Explain temperature effect on electrical conductivity metals, Explain the e...

Explain the effect of temperature on electrical conductivity of metals. As the temperature is increased, there is a greater thermal motion of atoms which decreases the regulari

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