Code Monkey home page Code Monkey logo

dtu-intro-ai-lab-03's Introduction

Lab 3 - Image compression with k-means segmentation October 28, 2020

August Hertz Bugge & Kris Back Kruse & sarphiv (redacted)

Pre notes

For the full rapport read report.pdf

The following is a teaser from the report.

Abstract

Storing images is necessary for many AI tasks, however, data storage at large scale is costly. A widely used technique is to compress images using lossy algorithms like JPEG, but even a small improvement can save money. We compare k-means clustering as a lossy compression algorithm vs. JPEG on 1890 images using qualitatively chosen parameters for our k-means clustering. Our algorithm has a compression ratio of 35% better than JPEG. This indicates high compression ratios can be obtained if parameters are optimized for a given use case.

Introduction

Storing large amounts of images requires a lot of storage space which is costly. Many algorithms exist, and is used in different situations, to compressed images. We want to compare the compression of an image, using k-means clustering and the widely used "JPEG" algorithm, in terms of space gained. Our hypothesis is that, using the k-means clustering algorithm, we will get within 20% points of the compression ratio of the "JPEG" algorithm, when compared to the equivalent bitmap file.

References

Learning outcome

Processing many images requires a lot of computational power. In the future, more time should be spent error-checking, optimizing, and preparing as this could ironically lead to a loss of time.

dtu-intro-ai-lab-03's People

Contributors

sarphiv avatar kriskruse avatar

Stargazers

Victor Justesen avatar

Watchers

 avatar  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.