So, I have been breaking my head over huffman coding compression for "IMAGES".
I know the working of huffman and am able to implement on text, however, I do not understand how do I proceed further with images.
I have a grayscale image, which I converted into binary string i.e 1's and 0's now I can perform huffman coding on the string, but how do I compress the image?
can some one please help me with steps?
Say convert image into bytearray and then into binary string and perform huffman coding and then convert back to byte and into image, but I dont know how do I proceed with that.
All over internet, I can find huffman coding on text and they are making a huffman tree out of that, but I do not want a tree, I want to compress image. :(
Any help related to algorithm would be highly appreciated.
Thanks (Let me know, if you need more info)