reproject_rle_mask#
- deltacamera.reproject_rle_mask(rle_mask, old_camera, new_camera, dst_shape, interp=None, antialias_factor=1, dst=None, precomp_undist_maps=True, warp_in_rle=False)[source]#
Reproject an RLE-encoded mask from one camera view to another.
- Parameters:
rle_mask – RLE-encoded binary mask in the old camera’s image space.
old_camera – Source camera.
new_camera – Target camera.
dst_shape – Output shape (height, width).
interp – Interpolation method.
antialias_factor – Antialiasing factor (1 = no antialiasing).
dst – Optional pre-allocated output array.
precomp_undist_maps – Whether to precompute undistortion maps.
warp_in_rle – If True, warp directly in RLE space without decoding (experimental).
- Returns:
Reprojected RLE mask.