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

Speed control of three phase induction motors , Speed  Control of Three  ...

Speed  Control of Three  Phase Induction Motors Three  phase  induction motors are invariably used in the application where in speed in  required to be  constant  or adjustabl

Working hydro-electric power plant, With the help of neat diagrams illustra...

With the help of neat diagrams illustrate the construction and working of various elements used in hydro-electric power plant. Compare hydro-electric power plant with other type

What do you mean by capacitance, Q. What do you mean by Capacitance? An...

Q. What do you mean by Capacitance? An ideal capacitor is an energy-storage circuit element (with no loss associated with it) representing the electric-field effect. The capaci

Show dc generator characteristics, Q. Show DC Generator Characteristics? ...

Q. Show DC Generator Characteristics? Figure shows schematic diagrams of field-circuit connections for dc machines without including commutating pole or compensating windings.

truth table in sop form, Normal 0 false false false EN...

Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4

List out the reasons for automation, Describe the term (i) Automation ...

Describe the term (i) Automation (ii) Automated lines 04 List out the reasons for automation and discuss in detail the process of work part transport.

Configured the dual processor architecture, Configured dual processor archi...

Configured dual processor architecture  In centralized SPC, dual processor architecture can be configured to operate in following one of three modes: 1.  Standby mode: In

Find the current in resistance, Q. Obtain the Thévenin and Norton equivalen...

Q. Obtain the Thévenin and Norton equivalent circuits for the portion of the circuit to the left of terminals a-b in Figure, and find the current in the 200- resistance.

Gis for distribution network management, Gis for Distribution Network Manag...

Gis for Distribution Network Management: You are well aware of the problems facing the distribution utilities to meet the day-to-day requirements of the power consumers, like

What are concentrators, Q. What are concentrators? Elucidate how it helps i...

Q. What are concentrators? Elucidate how it helps in connecting number of subscribers. Ans: In rural areas, subscribers are usually dispersed. It is both expensive and unn

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