MAXIMUM_VALUE_METRIC_CVIP

maximum_value_metric_cvip() - calculates the maximum value distance between two feature vectors.

Contents

SYNTAX

d =  maximum_value_metric_cvip( vector1, vector2)

Input Parameters include:

output Parameters include:

DESCRIPTION

The function calculates the maximum value distance between two feature vectors given as input by the user.

The maximum value distance for two vector x, and y is defined as:

$$|| x - y ||_{\infty} = \max_{1 \leq i \leq n} |x_i - y_i|$$

REFERENCE

1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.

EXAMPLE

 % input vectors

  vector1 = [1 3 4 2];

  vector2 = [-3 3.2 sqrt(2) pi];

 % maximum value distance between two vectors.

  d =  maximum_value_metric_cvip( vector1, vector2)
d =

     4

CREDITS

Author: Mehrdad Alvandipour, March 2017
Copyright © 2017-2018 Scott E Umbaugh
For updates visit CVIP Toolbox Website