**Name**

**sr_distance** Compute distance between two shapes (binary product)

**Command Synopsis**

**sr_distance** *in1* *in2* *.*

in1: input shape 1 (Fcurves)

in2: input shape 2 (Fcurves)

. (screen output) : result

**Function Summary**

float sr_distance (Shape1 , Shape2 )

Fcurves Shape1 , Shape2 ;

**Description**

This module computes a simple ``distance'' between two shapes, which can be
first normalized using `SR_Normalize`

. This distance is zero when the
shapes match up to a translation-rotation, and can be up to 100 when they
do not. It is defined by

`erosion`

module). The binary rotation-invariant product

**See Also**

`erosion`, `fkcenter`, `fkplot`, `fkzrt`.

**Version 1.3**

Last Modification date : Thu Nov 29 20:23:57 2001

**Author**

Thierry Cohignac, Lionel Moisan