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

Step up chopper - power supplies , Step Up Chopper In this  chopper av...

Step Up Chopper In this  chopper average output  voltage  is greater than  input  voltage. The circuit  different  mode  of operation and  current  waveforms are show. When

Measurement, explain a basic measurement system

explain a basic measurement system

Active-mode pnp transistors in circuits, Active-mode PNP transistors in cir...

Active-mode PNP transistors in circuits: In the figure, the arrows showing current point in the direction of conventional current - the flow of electrons is in the opposite di

Deviations from purchasing power parity, Q. Does the existence of non-trada...

Q. Does the existence of non-tradable goods allow for deviations from Purchasing Power Parity? Answer: Yes the continuation of non-tradable goods permits deviations from Purch

Determine the node voltage by using kcl, Determine the node voltage by usin...

Determine the node voltage by using KCL: Determine the node voltage V and then current flowing through each element by using KCL. Solution Apply KCL at the node whose

Explain role/purpose of dummy coils in dc machine winding., Dummy coils : ...

Dummy coils : These coils are used with wave winding and resorted to when the requirement of the winding are not met by the standard armature punching available in armature win

Draw and explain a monostable multivibrator, Q. Draw and explain a monostab...

Q. Draw and explain a monostable multivibrator ? The monostable configuration consists of two amplifier stages interconnected in such a manner as to possess one stable state. T

Define voltage divider rule, Define voltage divider rule Voltage drop a...

Define voltage divider rule Voltage drop at every resistor that connected by serial can be search by using voltage divider rules (VDR).

Schematic diagram of led based system, Q. Schematic Diagram of LED based Sy...

Q. Schematic Diagram of LED based System ? As shown in the two schematic diagrams above, the LEDs in a seven-segment display are not isolated from each other. Rather, eith

Determine the supply current and the supply voltage, A single phase line ha...

A single phase line has an impedance of 8.4 + j11.2 ?. The line feeds a load consisting of a resistor and an inductor connected in parallel as shown in Figure 1. The load is absorb

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