Trigonometry

 

DSpGMSingleBand: Trigonometry

In this operation a trigonometrical operation is applied to every pixel in a raster band. The raster band is overwritten with the result of the operation.

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. 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 declarations:

procedure DSpGMSin(const r: TDSpRaster; const band, token: integer);
procedure DSpGMCos(const r: TDSpRaster; const band, token: integer);
procedure DSpGMTan(const r: TDSpRaster; const band, token: integer);
procedure DSpGMArcSin(const r: TDSpRaster; const band, token: integer);
procedure DSpGMArcCos(const r: TDSpRaster; const band, token: integer);
procedure DSpGMArcTan(const r: TDSpRaster; const band, token: integer);

Low-level declarations:

procedure DSpGMSinFloat32
procedure DSpGMSinFloat64
procedure DSpGM
CosFloat32
procedure DSpGMCosFloat64
procedure DSpGM
TanFloat32
procedure DSpGMTanFloat64
procedure DSpGM
ArcSinFloat32
procedure DSpGMArcSinFloat64
procedure DSpGM
ArcCosFloat32
procedure DSpGMArcCosFloat64
procedure DSpGM
ArcTanFloat32
procedure DSpGMArcTanFloat64
                        (const data: pointer; pixels: integer;
                         fill: TDSpFloat64);

Parameter Description
r A valid raster object. It must be opened for write access.
band The identifier of the raster band. The band must exist in the raster, and it can be of any type. The data type must be 32-bit or 64-bit floating point.
token The access token for the raster. The token has to be generated for write access.
data A pointer to a block of memory containing pixels pixel values.
pixels Number of pixels in the data block of memory.
fill The missing data value of the raster band.


Go to SourceForge
Last modified: 4 January 2005. Page maintained by pvanlaake