graymap-distance

Synopsis

(graymap-distance graymap1 graymap2)

Parameters

  • graymap1
  • graymap2

Description

This procedure computes the Manhattan distance between both 16 bit graymaps with same dimensions.

Side Effects

Return Value

The distance measure is returned as an exact number.

Example

> (define a (graymap-create 100 100))
a
> (define b (graymap-create 100 100))
b
> (graymap-randomize! b)
#<graymap(16) orow:-1 ocol:-1 xres:-1 yres:-1 w:100 h:100>
> (graymap-distance a b)
1748778924779.000000
>