@jonthegeek @coolbutuseless @teunbrand
Here is an approach to do #2D #RLE applied to the processing of #ECG images: https://link.springer.com/chapter/10.1007/978-981-13-5802-9_86, and also there is a 3D RLE approach for volumetric medical image data: https://www.tandfonline.com/doi/abs/10.1080/13682199.2019.1565695
In my previous #Bioinformatics life, RLE was used, there is rle2() for the #Bio3D package which uses indices (http://thegrantlab.org/bio3d/reference/rle2.html).
Also, there is an improvement of RLE with a bit of Huffman encoding thrown in: https://arxiv.org/abs/2101.05329