The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



FillArrayMasked


Unit:SDL_openarrays
Class: none
Declaration: [1] function FillArrayMasked (var Mat: TDouble2DArray; Value: double; MaskArray: TBool2DArray): integer;
[2] function FillArrayMasked (var Mat: TInt2DArray; Value: integer; MaskArray: TBool2DArray): integer;

The function FillArrayMasked fills all cells of the matrix Mat with the value specified by the parameter Value if the particular cell is not masked by the corresponding cell of the array MaskArray. A TRUE value in a cell of MaskArray masks this cell. Masked cells are left unchanged. The function value returns the number of processed pixels.

The function returns the following error codes:

≥0 ... everything is ok
-1 ... the sizes of Mat and MaskArray do not match
-2 ... Mat has no size at all



Last Update: 2023-Mar-18