Function decode_rle
Source pub fn decode_rle(rle: &CocoRle) -> Result<(Vec<u8>, u32, u32), Error>
Expand description
Decode uncompressed RLE to binary mask.
CRITICAL: RLE uses column-major (Fortran) order, starting with
background.
§Arguments
rle - COCO RLE with counts array
§Returns
Binary mask as Vec<u8> in row-major order, plus (height, width)