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

Illustrate common emitter configuration, Illustrate Common Emitter configur...

Illustrate Common Emitter configuration, current amplification factor and collector amplifier. Describe transistor as an amplifier.

What is work-sharing constructs, Q. What is Work-Sharing Constructs? A ...

Q. What is Work-Sharing Constructs? A work-sharing construct distributes execution of associated region amongst the members of team which encounters it. A work-sharing construc

Explain junction transistors (npn and pnp), Explain junction transistors (n...

Explain junction transistors (npn and pnp). Junction Transistor: This transistor consists of two p-n junctions combined in one crystal as demonstrated in figure below.

What is 16-bit isa, What is 16-bit ISA? Compare it with 8-bit ISA bus. ...

What is 16-bit ISA? Compare it with 8-bit ISA bus. The only difference among the 8 and 16-bit ISA bus is that other connector is attached behind the 8-bit connector. This 16-bi

Show limitations of microprocessor-based control systems, Q. Show limitatio...

Q. Show limitations of microprocessor-based control systems? Practical limitations of microprocessor-based control systems stem from the following considerations: • Finite-w

Issue in sub-transmission and distribution systems, Issue In Sub-Transmissi...

Issue In Sub-Transmission and Distribution Systems The major issue in Sub-transmission and Distribution systems or rather the issue confronting the power sector as an overall,

In given block diagram find geq, Q. Show that the block diagram of Figure c...

Q. Show that the block diagram of Figure can be reduced to the form of Figure. Find G eq (s) and H eq (s).

Compute the force, Q. Consider a current element I 1 d ¯ l 1 = 10 dz ¯ az...

Q. Consider a current element I 1 d ¯ l 1 = 10 dz ¯ az kA located at (0,0,1) and another I 2 d ¯ l 2 = 5dx ¯ ax kA located at (0,1,0). Compute d ¯ F 21 and d ¯ F 12 experienc

Control, Ask The goal of this project is to model a system and to design a ...

Ask The goal of this project is to model a system and to design a controller for the system so that the closed-loop system performs satisfactorily. We want to accurately positio

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