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

101, make the following conversion 1000 Mx to Wb

make the following conversion 1000 Mx to Wb

Multitasking - single processor many users many tasks , Multitasking -  Si...

Multitasking -  Single Processor Many Users Many  Tasks In multitasking or also  called  time sharing  systems  multi  user  more than  one users are sharing  one processor

Pneumatic circuit diagram, FIGURE shows a pneumatic circuit diagram used fo...

FIGURE shows a pneumatic circuit diagram used for air supply and exhaust in an automatic control system.  (a) Name all symbols (including pipelines) used in the system. (b) N

Determine the nyquist sampling interval - radar system, Consider an S band ...

Consider an S band (3 GHz) radar with a rotating aperture antenna with a width of 3 m.  Suppose the antenna rotates at a rate of one rotation every 10 seconds.  Assume the 3 dB bea

What do you mean by nibble, Q. What do you mean by Nibble? The nibble i...

Q. What do you mean by Nibble? The nibble is a collection of bits on a 4-bit boundary. It would not be a particularly interesting data structure except for two items BCD (binar

Explain error-rate control and output-rate control, Error-Rate Control, Out...

Error-Rate Control, Output-Rate Control, and Integral-Error (Reset) Control Let us consider a typical second-order servomechanism(containing two energy-storing elements) whose

Rms values, 1. Derive the necessary formula/method to determine the effect...

1. Derive the necessary formula/method to determine the effective value or RMS of a triangular wave. Use either a similar method to the class example of the RMS determination

Current flow if 0.45 coulombs is to be transferred in 5 ms, What current m...

What current must flow if 0.45 coulombs is to be transferred in 5 ms? Quantity of electricity, Q = It, then:

Electronic devices technology and circuits, Please can you explain the oper...

Please can you explain the operation of a transistor in a Common Emitter Class A audio Amplifier?

Machine control instructions , Machine Control Instructions Instructio...

Machine Control Instructions Instructions used to control  various machine operations are kept  in this group.

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