Example: |
The following code snippet creates a new mask called "MyMask", then creates the mask array for the particles 10,12 and 28, inverts it and copies the boolean array to the pixel mask "MyMask":
var
msk : integer;
mask : TBool2DArray;
....
msk := DefineNewMask ('MyMask', true);
PEData.CopyParticleToMask ([10,12,28], mask);
InvertBoolMatrix (mask);
SetMask (msk, mask);
....
|