get_valid_mask#

deltacamera.get_valid_mask(camera, imshape=None)[source]#

Get the valid region mask for a camera with lens distortion.

The valid region is where the distortion model is well-defined and invertible. For cameras without distortion, the entire image is valid.

Parameters:
  • camera – Camera with potential lens distortion.

  • imshape – DEPRECATED. Image shape (height, width). Use camera.image_shape instead.

Returns:

RLEMask indicating valid pixels.