closing2# rlemasklib.closing2(rle)[source]# Compute the closing of a mask with a round 5x5 kernel. The kernel is 0 in the four corners, otherwise 1. 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 0 The closing is defined as the erosion of the dilation. Parameters: rle (dict) – an RLE mask dictionary Returns: An RLE mask dictionary of the closed mask. Return type: dict