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

Flip flops, if JK flip flop has 1600hz frequency .then what is the input fr...

if JK flip flop has 1600hz frequency .then what is the input frequency?

Mutual inductance and coefficient of coupling, Mutual inductance and coeffi...

Mutual inductance and coefficient of coupling: The equivalent inductance of two series connected coil (with mutual inductance among them) is 0.8 or 0.2 Henry based on the rela

Block schematic diagram of ss7, Q. Block schematic diagram of SS7? Leve...

Q. Block schematic diagram of SS7? Levels are as below: Level 1: The Physical Layer Level 2: The Data Link Level Level 3: The signaling network level Level 4: The User Pa

Counter-controlled analog to digital converter, Q. Counter-controlled analo...

Q. Counter-controlled analog to digital converter? Figure shows the block diagram of a counter-controlledA/Dconverter. Resetting the binary counter to zero produces D/A output

Advanced mobile phone system, Q. Advanced Mobile Phone System? Cellular...

Q. Advanced Mobile Phone System? Cellular systems employed cells with a radius in the range of 5-18 km. The base station usually transmitted at a power level of 35 W or less, a

Di disable interrupts instruction, DI Disable  Interrupts Instruction ...

DI Disable  Interrupts Instruction The interrupt enable  flip flop is reset and all the  interrupts of 8085 microprocessors  except  TRAP  are disabled . the  instruction  form

Illustrate the working of ujt, Q. Explain, with the help of structure, the ...

Q. Explain, with the help of structure, the working of UJT? List its applications One of the oddest semiconductor devices in use is the unijunction transistor (UJT). As its nam

Chemistry, Write short note on hardness of water and its units

Write short note on hardness of water and its units

Discuss direct memory access, Discuss DMA definition. Direct memory ac...

Discuss DMA definition. Direct memory access (DMA) is a process wherein an external device takes over the control of system bus by the CPU. Direct memory access is for high-sp

What minimum value of coupling resistance, Q. It is desired to have a sag o...

Q. It is desired to have a sag or tilt of no more than 10% when a 50Hz square wave is impressed on an amplifier stage. The output circuit resistance is Rv=1K. What minimum value of

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