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 a centralized spc organization, Q. Draw a centralized SPC organization...

Q. Draw a centralized SPC organization. Ans: A dual processor architecture can be configured to operate in one of three modes: (i)  Standby mode (ii)  Synchronous dupl

What do you mean by continuous signals, Q. What do you mean by Continuous s...

Q. What do you mean by Continuous signals? Continuous signals are described by time functionswhich are defined for all values of t (a continuous variable). Commercial broadcast

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

Basic architecture of digital switching systems, Q. Explain the basic archi...

Q. Explain the basic architecture of digital switching systems. Explain in detail companding. Ans: A simple N X N time division space switch is displayed in Figure. Switch

Draw a relay construction diagram, Draw a relay construction diagram and br...

Draw a relay construction diagram and briefly explain the operation of a relay. Define the terms normally open and normally closed. Define the terms Set and Reset for relays.

Determine the power rating of compressor motor, An ice plant produces 12ton...

An ice plant produces 12tonn of ice per day at 0 0 C using water at 300C. The plant operates on reversed Carnot cycle between -15 0 C and 28 0 C. If the actual C.O.P. is 50% of the

Calculate total internal resistance, One battery having of four cells, conn...

One battery having of four cells, connected in series. Emf of each cell is 1.45V and internal resistance of 0.04Ω. if a load resistance of 5Ω is connected to the battery, draw the

Description of capacitor, Description of Capacitor r A capacitor has cap...

Description of Capacitor r A capacitor has capacitance of one Farad when current charging of one Ampere flows in one second. This process causing a transferring of one volt in p

Calculate the maximum power that transmitted to the load, Calculate the Max...

Calculate the Maximum Power That Transmitted To the Load? A 25 MW load at the 33 kV receiving-end busbar of a short 3-phase transmission line has a power factor of 0.8 lagging.

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