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.... |
Home MathPack OpenArrays Procedures and Functions CreateMaskShape | |||||||||||||||||||
See also: FillArrayMasked | |||||||||||||||||||
CreateMaskShape |
|||||||||||||||||||
The function CreateMaskShape can be used to create pixel masks based on rectangular, elliptic and circular regions. CreateMaskShape sets all matrix cells of the boolean array MaskArray within the selected Shape (including the borders) to TRUE, all other cells are left unchanged. The indices of the matrix are seen as integer coordinates (valid range: 0 <= x < length(MaskArray) and 0 <= y < length(MaskArray[0])). Depending on the type of the shape the open array parameter Params holds different numbers of parameters. The specific meaning of each parameter can be taken from the following table:
The function returns the following error codes: 0 ... everything OK
|