greymap-distance

Synopsis

(greymap-distance greymap1 graemap2)

Parameters

  • greymap1
  • greymap2

Description

This procedure computes the Manhattan distance between two greymaps with same dimensions (width*height).

Side Effects

Return Value

The distance measure is returned as an exact number.

Example

> (define a (greymap-create 100 100))
a
> (define b (greymap-create 100 100))
b
> (greymap-distance a b)
0.000000
> (greymap-randomize! b)
#<greymap orow:-1 ocol:-1 xres:-1 yres:-1 w:100 h:100>
> (greymap-distance a b)
215163197.000000
>