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

Define the parity with respect to serial communication, With respect to ser...

With respect to serial communication define the parity. Besides the synchronization given by the use of start and stop bits, an additional bit termed as a parity bit may opt

Explain thermal noise, Thermal noise This is the most significant noise...

Thermal noise This is the most significant noise in an ampli?er. It is produced by random movements of electrons in the resistors. This is caused by the ?uctuations in the volt

Clipper and clamper circuit, Clipper Circuits: Clipper circuit have ab...

Clipper Circuits: Clipper circuit have ability to Clipper of portions of the input signals without distorting the remaining part of the alternating wave form. Clamper net

Explain current and magnetic force, Q. Explain Current and Magnetic Force? ...

Q. Explain Current and Magnetic Force? The rate ofmovement of net positive charge per unit of time through a cross section of a conductor is known as current, i(t) = dq / dt

What do you eman by digital circuits, Q. What do you eman by Digital Circui...

Q. What do you eman by Digital Circuits? The use of nonlinear devices (BJT and FET) in constructing linear amplifiers. Although these devices are inherently nonlinear, their op

Induction heating - -stepper motor , Normal 0 false false f...

Normal 0 false false false EN-IN X-NONE X-NONE Induction Heating When alternating curren

What is meant by thermal runaway in a transistor, Q. What is meant by therm...

Q. What is meant by thermal runaway in a transistor ? When current flows through the collector circuit, it produces heat at the collector junction. This increases the temperatu

What do you mean by negative clamper, Q. What do you mean by Negative Clamp...

Q. What do you mean by Negative Clamper? During the positive half cycle the diode conducts and acts like a short circuit. The capacitor charges to peak value of input voltage V

Explain the hysteresis loop of a magnetic material, Explain the hysteresis ...

Explain the hysteresis loop of a magnetic material. Hystereses loop-Below the Curie temperature all-ferromagnetic materials show the identified hysteresis in the B (i.e. flux

Help assignments, A three-phase transposed line is composed of one conducto...

A three-phase transposed line is composed of one conductor per phase with flat horizontal spacing of 11 m as shown in Figure 1(a). The conductors have a diameter of 3.625 cm and a

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