Giter VIP home page Giter VIP logo

jpeg's Introduction

JPEG Compression

Jpeg Compression algorithm based on Chapter 7 of book Image and Video Compression for Multimedia Engineering.

The code is for Matlab and its development was part of a university course called Image and Video Codification Systems. This course is in the second year of Audiovisual Systems Engineering Degree at Universitat Pompeu Fabra (Barcelona).

How to use it:

  • Download zip or clone the repository to your Desktop.
  • Open the unzipped folder in your Matlab current folder directory.
  • Drag the example image named ‘kodim14.bmp’ to the Command Window and save its data to the workspace. It should appear the data of the image ‘cdata’ and its colormap.
  • Type [jpeg_decoded] = jpeg[cdata] in the Command Window and insert the compression factor you want to use.
  • Wait until the process is done and you’ll see the image.

Algorithm constraints:

  • The input images have to be in grayscale.
  • The size of the image in both rows and columns has to be multiple of 8.

If these two conditions are not met, the behavior of the algorithm will not probably be the expected.

jpeg's People

Contributors

xaviraol avatar xiaozhao00 avatar

Stargazers

 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.