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 is logic gates - microprocessor, What is Logic Gates? The Logic Gat...

What is Logic Gates? The Logic Gates are circuits made up of transistors, diodes, and resistors. The Logic gates process one or more input signals in a logical fashion. Dependin

Evaluate the voltage source, Q. For the capacitor shown in Figure connected...

Q. For the capacitor shown in Figure connected to a voltage source, sketch i(t) and w(t).

Metal oxide field effect transistor, Metal Oxide Field Effect Transistor ...

Metal Oxide Field Effect Transistor The metal-oxide-semiconductor field-effect transistor (MOSFET/MOS-FET/MOS FET) is a device employed for amplifying or for switching electr

Show the use of hexadecimal, Hexadecimal is of use in IT because (1) It...

Hexadecimal is of use in IT because (1) It is a compact system (e.g. only 3 digits represent the number 986) (2) As 16 are a power of 2 it turns out to be quite easy to conv

What is miller integrator, Q. What is Miller integrator ? MILLER INTEGR...

Q. What is Miller integrator ? MILLER INTEGRATOR : Consider a basic RC circuit in which the opening of switch provides a sweep voltage.Yhe waveform generated by this basic circ

Is the mosfetoperating in the active region, Q. A depletion MOSFET is given...

Q. A depletion MOSFET is given to have large V A , V P = 2.8V, I DSS = 4.3 mA, v DS = 4.5V,and v GS = 1.2V. (a) Is theMOSFEToperating in the active region? (b) Find iD.

What is photovoltaics?, Photovoltaics  is a high-technology approach  to ch...

Photovoltaics  is a high-technology approach  to changing sunlight  directly  into  electrical  energy.  The  electricity  is direct  current  and  can  be  used  that  way,  chnag

Transparent latch d flip flop, Transparent latch D flip  Flop A typica...

Transparent latch D flip  Flop A typical  example  of this  type of D flop  is 7475 shown  in figure when CLK  connected is enable signal is high and the flip  flop  is enabled

What do you understand by progressive control, Q. What do you understand by...

Q. What do you understand by progressive control? Progressive Control: Step by step system is an example of progressive control. The connection is set up in stages, in response

Example register to memory , Example  Register  to Memory Example ...

Example  Register  to Memory Example : Write assembly language  statement  to copy 25H  stored  in register D to memory location 3052H. Solution :   Assuming  3050H is s

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