name: Mask : public AlgorithmBase

synopsis:

g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_algo.a

#include <Mask.h>

Mask(ALGORITHM algorithm = DEF_ALGORITHM);
Mask(const Mask& arg);
boolean eq(const Mask& arg);
boolean setAlgorithm(ALGORITHM algorithm);
boolean set(const VectorByte& mask);
boolean set(const String& source);
quick start:

VectorFloat data(L"0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,32,32,0,32,-32,16");
VectorFloat output;
String mask_str(L"0-3, 14-19, 21");
Mask mask(mask_str);
mask.compute(output, data);
description:

The Mask class is used to extract or remove the indicated elements from the input data. Two algorithms are supported: SELECT and REMOVE. When the algorithm is SELECT, the Mask class will output the elements of input data which are identified in the mask string. When algorithm is REMOVE, the Mask class will remove those elements which are identified in the mask string.

The table below summarizes the options available for this class:


The mask string can be specified using a fairly flexible mixture of numbers and ranges (e.g, "1, 3, 5", "0-3, 4, 7-9"), making it easy to specify ranges of elements. The range "7-9" denotes elements 7, 8, and 9 (inclusive).

dependencies:

public constants:

error codes:

protected data:

required public methods:

class-specific public methods:

private methods:

examples:

notes: