Camera.remove_images¶
- Camera.remove_images(images)[source]¶
This method is used to remove images from the
images
list while also ensuring that theimage_mask
list remains the same size as theimages
list.This method is the only way that a user should remove images from a
Camera
object after the object has been initialized. It ensures that theimages
andimage_mask
lists 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