哈夫曼树实现图片压缩与解压

上传者: 39852652 | 上传时间: 2021-04-17 22:25:50 | 文件大小: 6.84MB | 文件类型: ZIP
功能要求 1. 针对一幅BMP格式的图片文件,统计256种不同字节的重复次数,以每种字节重复次数作为权值,构造一颗有256个叶子节点的哈夫曼二叉树。 2. 利用上述哈夫曼树产生的哈夫曼编码对图片文件进行压缩。 3. 压缩后的文件与原图片文件同名,加上后缀.huf(保留原后缀),如pic.bmp 压缩后pic.bmp.huf 4. 解压缩

文件下载

资源详情

[{"title":"( 54 个子文件 6.84MB ) 哈夫曼树实现图片压缩与解压","children":[{"title":"huffmanty","children":[{"title":"huffmanty.sln <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"huffmanty","children":[{"title":"huffmantree.h <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"111.bmp <span style='color:#111;'> 1012.62KB </span>","children":null,"spread":false},{"title":"text.huf <span style='color:#111;'> 144.04KB </span>","children":null,"spread":false},{"title":"FILEio.h <span style='color:#111;'> 331B </span>","children":null,"spread":false},{"title":"img","children":[{"title":"make_output.png <span style='color:#111;'> 43.36KB </span>","children":null,"spread":false},{"title":"big_test.jpg <span style='color:#111;'> 252.99KB </span>","children":null,"spread":false},{"title":"compare.png <span style='color:#111;'> 134.49KB </span>","children":null,"spread":false},{"title":"big_test_out.png <span style='color:#111;'> 41.24KB </span>","children":null,"spread":false},{"title":"test2.png <span style='color:#111;'> 792.67KB </span>","children":null,"spread":false},{"title":"run_output.png <span style='color:#111;'> 81.49KB </span>","children":null,"spread":false},{"title":"architecture.png <span style='color:#111;'> 15.95KB </span>","children":null,"spread":false}],"spread":true},{"title":"1.png.png <span style='color:#111;'> 41.24KB </span>","children":null,"spread":false},{"title":"huffmanty.vcxproj.user <span style='color:#111;'> 165B </span>","children":null,"spread":false},{"title":"4.huf <span style='color:#111;'> 1.19MB </span>","children":null,"spread":false},{"title":"111.huf.bmp <span style='color:#111;'> 1012.62KB </span>","children":null,"spread":false},{"title":"huffmantree.cpp <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"ioimg.h <span style='color:#111;'> 226B </span>","children":null,"spread":false},{"title":"1.png <span style='color:#111;'> 41.24KB </span>","children":null,"spread":false},{"title":"1.huf <span style='color:#111;'> 269B </span>","children":null,"spread":false},{"title":"4.jpg <span style='color:#111;'> 1.78MB </span>","children":null,"spread":false},{"title":"text.bmp <span style='color:#111;'> 1012.62KB </span>","children":null,"spread":false},{"title":"ChMkJlbKwv2IJp20ABx8cnbTMTQAALGwAK5g-MAHHyK648.jpg <span style='color:#111;'> 1.78MB </span>","children":null,"spread":false},{"title":"111.huf <span style='color:#111;'> 144.04KB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 943B </span>","children":null,"spread":false},{"title":"ioimg.cpp <span style='color:#111;'> 5.52KB </span>","children":null,"spread":false},{"title":"huffman.h <span style='color:#111;'> 195B </span>","children":null,"spread":false},{"title":"huffmanty.vcxproj <span style='color:#111;'> 6.44KB </span>","children":null,"spread":false},{"title":"main.h <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"huffmanty.vcxproj.filters <span style='color:#111;'> 2.23KB </span>","children":null,"spread":false},{"title":"2.png <span style='color:#111;'> 792.67KB </span>","children":null,"spread":false},{"title":"FILEio.cpp <span style='color:#111;'> 3.68KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"FILEio.obj <span style='color:#111;'> 273.97KB </span>","children":null,"spread":false},{"title":"main.obj.enc <span style='color:#111;'> 90.94KB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 161.36KB </span>","children":null,"spread":false},{"title":"huffmanty.log <span style='color:#111;'> 237B </span>","children":null,"spread":false},{"title":"ioimg.obj <span style='color:#111;'> 35.90KB </span>","children":null,"spread":false},{"title":"huffmantree.obj <span style='color:#111;'> 67.80KB </span>","children":null,"spread":false},{"title":"huffmantree.obj.enc <span style='color:#111;'> 69.85KB </span>","children":null,"spread":false},{"title":"vc141.idb <span style='color:#111;'> 267.00KB </span>","children":null,"spread":false},{"title":"huffmanty.tlog","children":[{"title":"CL.write.1.tlog <span style='color:#111;'> 4.40KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 75.21KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false},{"title":"huffmanty.lastbuildstate <span style='color:#111;'> 223B </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 716B </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false}],"spread":false},{"title":"vc141.pdb <span style='color:#111;'> 572.00KB </span>","children":null,"spread":false},{"title":"create_huffman.obj <span style='color:#111;'> 13.66KB </span>","children":null,"spread":false}],"spread":false},{"title":"3.png <span style='color:#111;'> 9.93KB </span>","children":null,"spread":false}],"spread":false},{"title":"README.md <span style='color:#111;'> 13.61KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"huffmanty.ilk <span style='color:#111;'> 860.95KB </span>","children":null,"spread":false},{"title":"huffmanty.exe <span style='color:#111;'> 122.00KB </span>","children":null,"spread":false},{"title":"huffmanty.pdb <span style='color:#111;'> 1020.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • Shadow_Walker01 :
    想问一下 解压缩以后为什么打不开呢
    2021-04-18

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明