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

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

Briefly explain the principle and operation of strain gauges, Question: ...

Question: (a) With the help of a clearly labeled diagram explain the functioning of a basic thermocouple. (b) Briefly explain the principle and operation of strain gauges

Aci add immediate with carry instruction, ACI  Add Immediate with Carry  ...

ACI  Add Immediate with Carry  Instruction Similar  to ADC instruction 8 bit  data specified  in the  instruction and Carry  are added to the contents  of the  accumulator and

Explain a miller sweep generator, Q. With the help of circuit diagram expla...

Q. With the help of circuit diagram explain a Miller Sweep generator Figure given below shows the circuit of a Miller integrator or a sweep circuit. Transistor Q1 acts as a swi

What are the various types of amplifiers, Q. What are the various types of ...

Q. What are the various types of amplifiers? Amplifiers can be classified as follows: (a) Based on the transistor configuration 1. Common emitter amplifier 2. Common c

Multiplexer, design a 32:1 multiplexer using two 16:1 multiplexer

design a 32:1 multiplexer using two 16:1 multiplexer

Thyristor - power semiconductor devices , Thyristor The name thyristor...

Thyristor The name thyristor  is derived bya  combination of the  capital  letters from  thyratron and  translstor. This means that thyristor is a solid  state device like  a

Guarding against losses in service cables and connections, Guarding Against...

Guarding Against Losses in Service Cables and Connections The service cables to consumer premises are often a source of loss that can be reduced given below. The length of ser

Overcoming power shortages, Overcoming power shortages: NEP aims at me...

Overcoming power shortages: NEP aims at meeting both energy and peak demand fully through 2012 along within creating 5 percent spinning reserves at national level. The policy

Multiplexer, design a 32:1 multiplexer using two 16:1 multiplexer

design a 32:1 multiplexer using two 16:1 multiplexer

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