deinterlacing.tools module
- deinterlacing.tools.ImageBlockGenerator
Type alias for a generator of image blocks
- deinterlacing.tools.NDArrayLike
Type alias for numpy array-like data structures.
- deinterlacing.tools.index_image_blocks(images, block_size, unstable=None)[source]
Index the image blocks for batch processing during deinterlacing. This function returns a generator yielding tuples of start and end indices for each block of images to be processed. It takes into account the unstable parameter, which specifies how many frames should be processed individually before switching to batch-wise processing.