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 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

Gis application architecture, GIS application architecture: GIS applic...

GIS application architecture: GIS application architecture should 1  Give a framework and the essential programming interfaces to enable complex GIS applications to be deve

Explain the effect of a dielectric on behaviour of capacitor, Explain the e...

Explain the effect of a dielectric on the behaviour of a capacitor. If two parallel plates are separated by a distance 'd' (meters) in vacuum and are kept at a potential diffe

For carry flag , For carry flag  CC ( Call on Carry ) and CNC ( Call ...

For carry flag  CC ( Call on Carry ) and CNC ( Call  on No Carry ) Instructions CC Calls  the subroutine form  the specified memory  location if carry flag  is set (CY=

Show the procedure twos complement subtraction, Q. Show the procedure twos ...

Q. Show the procedure twos complement subtraction? Two's complement subtraction is the binary addition of the minuend to the 2's complement of the subtrahend (adding a negative

What are the various flags used in 8085, The various flags are: - Sign flag...

The various flags are: - Sign flag,  Axillary flag, Zero flag, Parity flag, Carry flag.

Clampers., hint on clamping as a project topic

hint on clamping as a project topic

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