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

Define flash analog to digital converters, Define Flash Analog to Digital C...

Define Flash Analog to Digital Converters? Parallel flash ADCs transform the analog input voltage faster as compared to other types of ADCs.  They compare the voltage in parall

Load balancing and load management, Load Balancing and Load Management ...

Load Balancing and Load Management It has been observed in which the load on all three phases of a distribution line and between the feeders is not balanced. This output in in

Illustrate about the digital televisions, Illustrate about the Digital tele...

Illustrate about the Digital televisions Microprocessor would be used to control the below features, for instance: - Automatically tuning into television stations - allow

Charge variation with time, Q. A charge variation with time is given in Fig...

Q. A charge variation with time is given in Figure. Draw the corresponding current variation with time.

Pid controller design, PID controllers are popularly adopted in a wide rang...

PID controllers are popularly adopted in a wide range of industrial processes. The objective of this design practical is to study the way this PID controller changes system dynamic

Equalizer rings, purpose of equalizer rings in lap winding

purpose of equalizer rings in lap winding

What is logic gates - microprocessor, What is Logic Gates? The Logic Gat...

What is Logic Gates? The Logic Gates are circuits made up of transistors, diodes, and resistors. The Logic gates process one or more input signals in a logical fashion. Dependin

What is meant by cross-compiler, Ans) A program runs on one machine and imp...

Ans) A program runs on one machine and implements on another is known as cross-compiler Programs which compile on One Machine and implements on another machine is known cross

Hall effect experiment, Hall Effect experiment: Prob. Write short not...

Hall Effect experiment: Prob. Write short note on Hall Effect and its applications. What properties of a semiconductor are determined from a Hall Effect experiment? Sol.

Architecture for Real-time systems, The paper should be written in the form...

The paper should be written in the format of a paper to be submitted to a conference (IEEE). There should be a minimum of three journal paper references. The topic should be a disc

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