Giter Site home page Giter Site logo

yy1300326388 / fractal-image-compression Goto Github PK

View Code? Open in Web Editor NEW

This project forked from c00kiemon5ter/fractal-image-compression

0.0 0.0 0.0 5.35 MB

A Fractal Image Compression System

Home Page: http://c00kiemon5ter.github.com/Fractal-Image-Compression

Java 100.00%

fractal-image-compression's Introduction

Fractal Image Compression

Fractal compression is a lossy image compression method using fractals. The method is best suited for textures and natural images, relying on the fact that parts of an image often resemble other parts of the same image. Fractal algorithms convert these parts into mathematical data called "fractal codes" which are used to recreate the encoded image. Fractal compression differs from pixel-based compression schemes such as JPEG, GIF and MPEG since no pixels are saved. Once an image has been converted into fractal code, the image can be recreated to fill any screen size without the loss of sharpness that occurs in conventional compression schemes.

Notes

  • compression:

    • read image

    • split into NxM range and domain blocks

    • compare range with domain blocks

    • store most similar blocks along with transformations applied

      • similar blocks construct a pattern space
      • produce a fractal model from the pattern space
    • store the matched image with the position it draws

  • optimizations

    • limit color space store color information separately similarity doesn't care about color

      • negate image
      • monochrome image
      • grayscale image
    • scale down images before comparing less pixel-by-pixel compares

    • classify images edges color space histogram

    • perceptual hash algorithms compare phashes only check under a thresold value (quality?)

fractal-image-compression's People

Contributors

c00kiemon5ter avatar masterex avatar uberspot 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.