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

#title.Shockley diode, I want proof of shockley diode equation with all ste...

I want proof of shockley diode equation with all steps

Define the property under which resistance of metals vanish, The property d...

The property due to which the resistance of some metal or compound vanishes under certain conditions is (A) Semi conductivity.                     (B) Super conductivity.

Calculate the value in ohms of the rotor resistance, The synchronous speed ...

The synchronous speed of a wound-rotor induction motor is 900 r/min. Under a blocked-rotor condition, the input power to the motor is 45 kW at 193.6 A. The stator resistance per ph

.branch current method, if a resistor is present between 2 branches in such...

if a resistor is present between 2 branches in such way that its polarities are different to compare with one another so how we choose polarity of that resistor

Determine the expected voltage levels at the output, The subsequent voltage...

The subsequent voltage-source multiplying DAC is to be utilized to convert the digital data stream "11" and "01" to an analog signal.  It has 2-bit inputs and hence is capable of c

Basic working principle of laser beam machining process, Define the basic w...

Define the basic working principle , process characteristics,advantages, disadvantages and application of Laser Beam Machining Process.

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.

Define the gauss seidel method, Define the Gauss Seidel Method The Gaus...

Define the Gauss Seidel Method The Gauss-Seidel method is an iterative method in which the voltage of each node is calculated in turn using the most up to date voltages for the

Find the initial current, In the circuit shown below, the capacitor initial...

In the circuit shown below, the capacitor initially has a voltage across it 4 Volts (at t = 0). a.  Write down the expression for V C (t) when the switch is closed. b.  Writ

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