@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

An Image Processing Approach for Compression of ECG Signals Based on 2D RLE and SPIHT

This paper proposes an image processing approach for compression of ECG signals based on 2D compression standards. This will explore both inter-beat and intra-beat redundancies that exist in the ECG signal leading to higher compression ratio (CR) as compared to 1D...

SpringerLink