min_pool2x2#
- rlemasklib.RLEMask.min_pool2x2(inplace=False)[source]#
Min-pool the mask by a factor of 2.
Each 2x2 block in the input produces a single pixel in the output, which is 1 only if all pixels in the block are 1.
- Parameters:
inplace – whether to perform the operation in place or to return a new object
- Returns:
An RLEMask object representing the min-pooled mask.
- Return type:
Examples
.min_pool2x2() ==