|
||||||||||||||||
DSpGMSingleBand:
Scalar subtraction
|
||||||||||||||||
In this operation a scalar is subtracted from every pixel in a raster band, or the pixel value is subtracted from the scalar. The raster band is overwritten with the result of the subtracttion. The operation is provided in a high-level and a low-level format. In the high-level format a raster object, a band identifier and a token are specified, together with the scalar. The operation applies to all pixels and the result is stored in the specified band. In the low-level format the operation is applied to a block of contiguous memory containing a specified number of pixels. The low-level format is useful to chain a number of operations without the overhead of storing intermediate results. If you want to preserve the original raster band, you should make a copy of the band first.
|
||||||||||||||||
Declaration | ||||||||||||||||
High-level declaration (pixel value - scalar): procedure DSpGMSubtractScalar(const r: TDSpRaster; const band, token: integer; High-level declaration (scalar - pixel value): procedure DSpGMScalarSubtract(const r: TDSpRaster; const band, token: integer; Low-level declarations (scalar - pixel value): procedure DSpGMScalarSubtractUInt32 The low-level operations for
pixel value - scalar use the low-level procedures for scalar
addition, supplying -scalar as the scalar value.
|
Last
modified: 1 January 2005. Page maintained by pvanlaake
|