Giter VIP home page Giter VIP logo

Comments (1)

sadimanna avatar sadimanna commented on September 26, 2024

@franec94 I ran the source code on Win 10 myself with both 8X8 and 16X16 BMP images. Is is working fine for me. I think you should check with Valgrid.

THis is the output on my Laptop...

Huffmann Codes::

pixel values -> Code

 51      -> 01110111
 54      -> 01000101
 55      -> 01010000
 58      -> 1001101
 59      -> 01000001
 62      -> 01000110
 64      -> 01000100
 65      -> 011110
 66      -> 01011100
 69      -> 1011011
 70      -> 111111
 71      -> 01110100
 72      -> 01001011
 73      -> 01001100
 74      -> 01000000
 75      -> 110100
 76      -> 000011
 77      -> 110111
 78      -> 1011111
 79      -> 01011011
 82      -> 0010011
 83      -> 1001100
 84      -> 000101
 88      -> 1000001
 89      -> 011111
 90      -> 01001000
 91      -> 01001001
 92      -> 01001111
 93      -> 001110
 95      -> 01001101
 96      -> 1010001
 97      -> 011011
 98      -> 110101
 99      -> 011000
 101     -> 1000000
 102     -> 01011010
 104     -> 0000100
 105     -> 01011000
 106     -> 1000110
 107     -> 110110
 108     -> 10101010
 109     -> 01110110
 110     -> 1011000
 111     -> 011001
 112     -> 01110101
 113     -> 1010010
 114     -> 11000
 115     -> 000110
 116     -> 01001110
 117     -> 1001111
 119     -> 111001
 120     -> 111110
 121     -> 01000011
 122     -> 1000011
 123     -> 000111
 124     -> 111100
 125     -> 01000111
 126     -> 0000000
 127     -> 1000100
 128     -> 1011010
 129     -> 001111
 130     -> 0000101
 131     -> 001100
 132     -> 01011101
 133     -> 01010010
 134     -> 01010011
 135     -> 1011100
 138     -> 001101
 139     -> 011010
 140     -> 000100
 141     -> 1001110
 142     -> 111010
 143     -> 01001010
 144     -> 111011
 145     -> 111000
 146     -> 1000010
 147     -> 10010
 148     -> 001010
 149     -> 001011
 150     -> 001000
 151     -> 01000010
 152     -> 1000111
 153     -> 111101
 154     -> 1000101
 155     -> 0000010
 156     -> 0000011
 157     -> 011100
 159     -> 1011001
 161     -> 1011110
 162     -> 0000001
 165     -> 110010
 168     -> 01011001
 172     -> 01011110
 174     -> 01011111
 175     -> 1011101
 177     -> 110011
 179     -> 1010011
 182     -> 1010000
 183     -> 0010010
 184     -> 01010001
 188     -> 01010110
 189     -> 01010111
 190     -> 01010100
 191     -> 01010101
 193     -> 1010110
 195     -> 10101011
 197     -> 10101000
 200     -> 10101001
 201     -> 10101110
 211     -> 10101111
Average number of bits:: 6.554688

from compression.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.