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 do you mean by waveforms, Q. What do you mean by Waveforms? We are...

Q. What do you mean by Waveforms? We are often interested in waveforms, which may not be constant in time of particular interest is a periodic waveform, which is a time-varying

Explain the term half duplex transmission, Explain the term half duplex tra...

Explain the term half duplex transmission. A half duplex channel can receive and send, but not at similar time. It's as a one-lane bridge where two-way traffic should give way

Find the equivalent series impedance, Q. 10-kVA, 4800:240-V, 60-Hz, single-...

Q. 10-kVA, 4800:240-V, 60-Hz, single-phase transformer has an equivalent series impedance of 120 + j300  referred to the primary high- voltage side. The exciting current of the tr

Assignment, Hi, I got assignment to design a power electronic system Design...

Hi, I got assignment to design a power electronic system Design the circuit and select the appropriate components for that circuit to fulfil the requirements of the device. Regards

Find the charge flowing and number of electron, Q. A current i(t) = 20 cos(...

Q. A current i(t) = 20 cos(2π × 60)t A flows through a wire. Find the charge flowing, and the number of electrons per second that are passing some point in the wire.

Frequency Variation, Frequency variation in simple transmitters can be redu...

Frequency variation in simple transmitters can be reduced by adding a _______ stage.

Determine the study of robotics, Determine the study of Robotics Robots...

Determine the study of Robotics Robots can comprise embedded processors or be linked to a computer system. They are pre-programmed to do a specific task or taught' to remember

Short-term measures for technical loss reduction, Short-Term Measures for T...

Short-Term Measures for Technical Loss Reduction The short-term measures involve measures needs for immediate improvement and reduction of losses within the system. These are

Chemistry, what is the definition of laws of chemical combination ?

what is the definition of laws of chemical combination ?

What is the output modes used in 8279, What is the output modes used in 827...

What is the output modes used in 8279? 8279 gives two output modes for selecting the display options. 1.Display Scan In this mode, 8279 gives 8 or 16 character-multiple

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