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

[email protected], a sensorless brushless DC motor control with back emf ...

a sensorless brushless DC motor control with back emf (zero crossing point ) technique, using Arduino Microcontroller board control and describe in C. program language.

Add the contents of register - add instruction , Add the Contents of Regist...

Add the Contents of Register   This  instruction is used to add the contents  of register R with  the contents  of accumulator  and result  of operation is stored  in the accumu

Determine and plot the ratios for air, 1.Determine and plot the ratios μ tr...

1.Determine and plot the ratios μ tr /μ and μ ab /μ  from 5 keV to 100 MeV for      (a) air,              (b) water,      (c) muscle,     (d) bone, and      (d) lead

Simplify the following boolean expressions, Q. Using K maps, simplify the f...

Q. Using K maps, simplify the following Boolean expressions: (a) F = A · ¯ B + A · B (b) F = A · C + C · D + B · C · D (c) F = A·B · ¯ C +B ·C +A·B ·D +B ·C ·D

Convolution, how to use tabular method to solve convolution problems

how to use tabular method to solve convolution problems

Transformers, A 440v 4-pole dc generator takes an armature current of 50A w...

A 440v 4-pole dc generator takes an armature current of 50A when rotating at 626 rpm. the armature circuit resistance is 0.25 ohms. determine the generated emf?

Not gate- introduction microprocessors , Normal 0 false fals...

Normal 0 false false false EN-IN X-NONE X-NONE

Chemistry, what is the definition of laws of chemical combination ?

what is the definition of laws of chemical combination ?

Survey methods and analysis - power supply, Survey Methods and Analysis - P...

Survey Methods and Analysis - Power Supply There are two major methods of gathering information from customers: qualitative and quantitative.  Quantitative Rese

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