Camera.remove_images¶
- Camera.remove_images(images)[source]¶
This method is used to remove images from the
imageslist while also ensuring that theimage_masklist remains the same size as theimageslist.This method is the only way that a user should remove images from a
Cameraobject after the object has been initialized. It ensures that theimagesandimage_masklists do not get out of sync.Images to be removed are specified by index, list of indices, or slice. The images are removed by using:
del self.images[ind] del self.image_mask[ind]
If images is an iterable, it should be sorted in decreasing order to make sure the proper images are removed.
- Parameters:
images (int | slice | Iterable[int | slice]) – The images to be removed from the camera, as either an index, a slice, or a list of indices and slices
- Return type:
None