PLEASE NOTE: This solution was implemented as an exercise and do not necessarily provides the best solution for a real world use case.
You can test the application online by using OneCompiler. Consider the following URIs
https://onecompiler.com/cpp/3xwwcxw3y
https://onecompiler.com/cpp/3xwwcrsas
Clone the project by running the following command
git clone https://github.com/mateokurti/rle-compression.git && cd rle-compression
Run the RGB RLE Compression:
g++ rle_rgb.cpp -o rle_rgb && ./rle_rgb
or
Run the Grayscale RLE Compression:
g++ rle_grayscale.cpp -o rle_grayscale && ./rle_grayscale