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

Determine the efficiency of the transformer, 1.    A 230/1000V 50 Hz, singl...

1.    A 230/1000V 50 Hz, single phase transformer has the following test data: Open circuit test (L.V.) Primary voltage = 230V Primary current = 1.30 A Input power

Fereday law.., what does actually feredy law wants to proof.

what does actually feredy law wants to proof.

Calculate expected peak demand for transformer, What is the expected peak d...

What is the expected peak demand for a transformer feeding the following loads?                           Connected                 kVA

Bjt, what is compensation of bjt

what is compensation of bjt

Determine the current through each resistor, For the circuit of Fig 1a: ...

For the circuit of Fig 1a: (i) Using Ohm's Law , determine the equivalent resistance across the battery (ii)  determine the current through each resistor (iii) the arrang

Draw the logic diagram of the enabled d latch, Q. (a) Draw the logic diagra...

Q. (a) Draw the logic diagram of the enabled D latch using only NAND gates. (b) Complete the timing diagram of Figure (a) of theDlatchwhose block diagram and truth table are giv

Ac amplitude measurement, 1. Introduction: Theory: Amplitude is defined ...

1. Introduction: Theory: Amplitude is defined as the magnitude of the change in the oscillating variable with each oscillation within an oscillating system. It is calculated as

Junctions and diodes, An intrinsic semiconductor at room temperature has fr...

An intrinsic semiconductor at room temperature has free electrons

Clampers, just to put an assignment Give only short details that are impor...

just to put an assignment Give only short details that are important Specially bised clamper

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