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

Power machines., name two types of axial flow turbines

name two types of axial flow turbines

Derive the equations of the self bias circuit, Q. Derive the equations of t...

Q. Derive the equations of the self bias circuit? A circuit which is used to establish a stable operating point is the self biasing configuration. The circuit is shown in Fig

Common source amplifier, Common Source Amplifier A common-source ampl...

Common Source Amplifier A common-source amplifier is one of three basic single-stage field-effect transistor abbreviated as FET amplifier topologies, commonly used as a volta

Example numerical of dc generator., Q. An 8 - pole dc generator has 500 arm...

Q. An 8 - pole dc generator has 500 armature conductors and has a useful flux per pole of 0.065 web. What will be the emf generated if it is lap connected and runs at 1000 r.p.m.

Construction and operation of enhancement mosfet, Q. Explain the constructi...

Q. Explain the construction and operation of Enhancement MOSFET? The construction of an N-channel enhancement MOSFET is shown in figure below. Two highly doped N + regions are

Segment assembler directive, What do you understand by SEGMENT assemble...

What do you understand by SEGMENT assembler directive? SEGMENT: This directive explains to the assembler the start of a segment along with name segment-name. The segment

Discuss dma operation in brief, Discuss DMA operation in brief. The fun...

Discuss DMA operation in brief. The fundamental idea of DMA is to transfer blocks of data directly among memory and peripherals. The data don't suffer the microprocessor but th

What is the maximum speedup, Question: (a) Explain the following metric...

Question: (a) Explain the following metrics: (i) Throughput (ii) Latency (iii) IPC (b) Of the three factors in the equation (EXCPU = Number of instructions × CPI × cy

Commutator, explan Two segment and four sagment commutator action

explan Two segment and four sagment commutator action

Jfet common source amplifier, Q. JFET Common Source Amplifier? The comm...

Q. JFET Common Source Amplifier? The common source configuration for a FET is similar to the common emitter bipolar transistor configuration, and is shown in figure. The common

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