Coder Social home page Coder Social logo

pixelsorting's Introduction

screenshot

Pixel Sorting

A set of experiments in pixel sorting using Processing

- - -

####Seed Sorting Using either edge-detection or random choice, start with a set of 'seed' pixels, grab all neighbors within a 1px radius, sort those, and repeat the process.

[ example ]

####Sort Image By Least Resistance Similar to the 'seam carving' example, this is a little softer movement across the image by looking for least change between the current pixel and its neighbors.

####Sort Image By N-px Sees the image as a linear list of pixel values (rather than 2d), sorting in chunks. Includes wrapping for weird distortions and patterns.

[ example ]

####Sort Image By N-px Block Similar to the previous, but sorts the image by blocks.

See this video this video for an example.

####Sort Pixel Portal Sorts a random column of pixels, then looks for the closest match to the last pixel in that column. Sorts and repeats. Imagined as a kind of "Chutes and Ladders" within the image.

####Sort Through Seam Carving Based on the algorithm used for Photoshop's "Content-Aware Scaling", find the path of "least energy" through the image, starting at the bottom center. That path is sorted, then shifted over 1px and repeated across the entire image. Versions include one phase, as well as rotate-and-iterate for serious pixel-mashing.

[ example ]

####Spiral Sort The entire image is loaded in order from outer edge in, then sorted and placed back.

[ example ]

- - -

[ all code available under Creative Commons BY-NC-SA license - feel free to use but please let me know ]

pixelsorting's People

Contributors

jeffthompson avatar

Watchers

James Cloos 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.