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

Find the maximum kva rating as an auto- transformer, Q. A 5-kVA, 480:120-V,...

Q. A 5-kVA, 480:120-V, two-winding, 60-Hz, single-phase transformer has an efficiency of 95% while delivering rated load at rated voltage and 0.8 power factor lagging. This transfo

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

Calculus, area bounded by the curve y=3x(x-2)^2 and the x-axis

area bounded by the curve y=3x(x-2)^2 and the x-axis

Power Engineering, A three-phase transposed line is composed of one ACSR co...

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

Low voltage at transformers, Low Voltage at Transformers While the vo...

Low Voltage at Transformers While the voltage applied to induction motor varies from the rated voltage, its performance is affected. Against permissible voltage variation of

Simple harmonic motion, what is the application of simple harmonic motion i...

what is the application of simple harmonic motion in electrical engineering?

Explain the working of frequency division, Explain the Working of Frequency...

Explain the Working of Frequency Division? A frequency divider able to be constructed from J-K flip-flops by taking the output of one cell to the clock input of the next and th

Realization of digital filter design, why we are going to realization of di...

why we are going to realization of digital filter after finding the H(z).

FLOW CHART TO RUN MOTOR, IFYOU AVE TWO DC MOTOR,RELAY,TWO BATTERYAND MICROC...

IFYOU AVE TWO DC MOTOR,RELAY,TWO BATTERYAND MICROCONTROLLER FLOW CHART TO RUN MOTOR AND CONTROL TWO BATTERIES

Determine the mmf of the exciting coil, Q. For themagnetic circuit shown in...

Q. For themagnetic circuit shown in Figure, neglecting leakage and fringing, determine the mmf of the exciting coil required to produce a flux density of 1.6 T in the air gap. Them

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