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

What are the supplementary services, Q. What are the supplementary services...

Q. What are the supplementary services? new services are called supplementary services and some of the prominent ones are as below: Category 1: Abbreviateddialling

Microprocessor, what is the function of CBW in the microprocessor

what is the function of CBW in the microprocessor

What do you mean by addressing and numbering, Q. What do you mean by addres...

Q. What do you mean by addressing and numbering? Numbering and Addressing: In data and telephone networks, end equipment are more often single units than multiple devices uni

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

Carry flag - registers, Carry Fla Registers  The  size  of the accumul...

Carry Fla Registers  The  size  of the accumulator is of 8 bit  if after  any arithmetical  or logical  operation 9 th   bit is generated i e  there is  carry beyond  D 7   bi

Determine the value of maximum power, Determine the value of maximum power:...

Determine the value of maximum power: Determine the value of load resistance, R L for which the source shall transfer the maximum power. Also determine the value of maximum p

Rim read interrupt mask instruction, RIM Read Interrupt Mask Instruction ...

RIM Read Interrupt Mask Instruction This  instruction is used  to read the  status  of interrupts  and  read the serial  input  data. The status  byte is loaded  into  the accu

Evaluate the current using the loop-current method, Consider the circuit in...

Consider the circuit in Figure (a), which include a controlled source, and find the current in the 5-V source and the voltage across the 5- resistor by using (a) the loop-current

Explain digital signal formatting, Q. Explain Digital Signal Formatting? ...

Q. Explain Digital Signal Formatting? After quantization and coding the samples of the message, a suitable waveform has to be chosen to represent the bits. This waveformcan the

Draw and explain diode clipping circuit, Q. Draw and explain diode clipping...

Q. Draw and explain diode clipping circuit ? A diode clipping circuit can be used to limit the voltage swing of a signal. Clipper circuits are used to clip a portion of the w

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