Coder Social home page Coder Social logo

vector_quantize_lbg's Introduction

程序分为2部分:压缩/解压 码书的设计使用课上讲到的LBG算法.

1.编译

环境:Linux gcc 使用命令: source compile.sh 编译成功后生成可执行文件:LBG_VQ(压缩) 与 Decode_VQ(解压)

2.运行

使用命令: ./LBG_VQ,对lena512x512.raw进行压缩 压缩后生成codebook.raw文件

使用命令./Decode_VQ , 对codebook.raw进行解压, 解压后生成lena_decode.raw

注:该程序使用.raw格式的图像文件进行处理, 可以使用支持16进制的编辑器查看.raw的内容 codebook.raw中各字节含义及内容在程序注释中有详细说明.

vector_quantize_lbg's People

Contributors

magiczixiao avatar

Stargazers

 avatar

Watchers

 avatar

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.