greymap-crop

Synopsis

(greymap-crop greymap row col height width)

Parameters

  • greymap
  • row
  • col
  • height
  • width

Description

greymap-crop returns a copy of a region of a greymap. The region is defined by its position (row and col) and by the desired height and width). It is an error if a pixel of the requested region lies outside the greymap where it should be copied from.

Side Effects

Return Value

The cropped region is returned as a new greymap, the original position is remembered.

Example