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

Help needed in degree project, i have to design a project title "Edge deter...

i have to design a project title "Edge determining techniques for Low quality images in different lighting conditions and we use matlab for images simulation by changing different

Scatter Diagrams - Quality Tools for Improvement, Scatter Diagrams - Qualit...

Scatter Diagrams - Quality Tools for Improvement Scatter diagrams are graphical tools which attempt to depict the influence in which one variable has on another. A general dia

Given a system; how to find feedback, I am working on Vision based vehicle ...

I am working on Vision based vehicle lane keeping control system. I have uploaded two images at http://tinypic.com/view.php?pic=24gj85t&s=6 & at http://tinypic.com/view.php?pic=

Find v and i , Find V and I in the figure given below using ideal diode mod...

Find V and I in the figure given below using ideal diode model

Compute the efficiency at one-half load, Q. A certain 10-hp, 230-V motor ha...

Q. A certain 10-hp, 230-V motor has a rotational loss of 600 W, a stator copper loss of 350 W, a rotor copper loss of 350 W, and a stray load loss of 50 W. It is not known whether

Find a minimum two level, Find a minimum two level, multiple-output AND-OR ...

Find a minimum two level, multiple-output AND-OR gate circuit to realize these functions (eight gates minimum). F 1 (a,b,c,d) =Σm(10,11,12,15) +D (4,8,14) F 2 (a,b,c,d) =Σm(4

Circuit, Aplication of resonance in different divices

Aplication of resonance in different divices

Paper on Matrix Computer Methods, 5 page paper on matrix and computer metho...

5 page paper on matrix and computer methods applied to Linear Gear trains

What are the different functional units in 8086, Bus Interface Unit and imp...

Bus Interface Unit and implementation unit, are the two dissimilar functional units in 8086.

Short-term measures for technical loss reduction, Short-Term Measures for T...

Short-Term Measures for Technical Loss Reduction The short-term measures involve measures needs for immediate improvement and reduction of losses within the system. These are

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