I'm doing a Huffman compression in C++ using OpenCV, I already have the codes for the tones of grey but I'm confused about what to do with it. Is there a way to replace the values in the image? Do I have to create other mat?
P.S. My Huffman codes are strings, do I need to change them?