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

atex equipment, I have an enclosure which doesnt comply with the atex dire...

I have an enclosure which doesnt comply with the atex directive, they want to install it in outside in a safe area of an offshore platform. They have produced an atex cert and want

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

Explain the working principle of a triac, Q. Explain the working principle ...

Q. Explain the working principle of a TRIAC. "Triac" is an abbreviation for three terminal ac switch. 'Tri'-indicates that the device has three terminals and 'ac' indicates tha

Determine the supply current and the supply voltage, A single phase line ha...

A single phase line has an impedance of 8.4 + j11.2 ?. The line feeds a load consisting of a resistor and an inductor connected in parallel as shown in Figure 1. The load is absorb

Find the residual output offset voltage, Q. In order to minimize output vol...

Q. In order to minimize output voltage offsets in practical op-amp circuits, one provides a dc path from each input terminal to ground, makes each input terminal see the same exter

What are the drawbacks of microprocessor, There is a limitation on the size...

There is a limitation on the size of data. Most Microprocessor does not maintain floating-point operations.

Uses of fet, Uses of FET IGBTs (Insulated-gate bipolar transistor) se...

Uses of FET IGBTs (Insulated-gate bipolar transistor) see application in switching internal combustion engine ignition coils, in which fast switching and voltage blocking cap

Emf, discuss the factor affecting the emf induced in electric machines

discuss the factor affecting the emf induced in electric machines

Find the net force experienced by a positive charge q, Q Two charges of equ...

Q Two charges of equalmagnitude 5µC but opposite sign are separated by a distance of 10 m. Find the net force experienced by a positive charge q = 2 µC that is placed midway betwee

Explain various functions of telephone switching systems, Q. Explain variou...

Q. Explain various functions of telephone switching systems. Ans: Functions of telephone switching systems are: (i)  Attending: The system should be continually monito

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