The name is influenced by the algorithm I used which scans the region line by line to find the pixels included. But you are right, it may not be a good name in the context of WCS.

The returned mask is a byte array with region labels and 0's for pixels which are not in any region. The region labels may be int or str.