code-spot

a programming blog

  • Blog
  • Writing (on Game Development)
  • Private Projects
    • Polyominoes
    • Difference and Functional Equations Reference
    • Python Image Code
    • Special Numbers Library
    • XSI Scripting Using Python: Course Notes
  • About Me
Skip to content

Category: Image Processing

January 24, 2011

2D Minimum and Maximum Filters: Algorithms and Implementation Issues

A while back I needed to implement fast minimum and maximum filters for images. I devised (what I thought was) a clever approximation scheme where…

June 15, 2010

Region Quadtrees in C++

(Original image by GoAwayStupidAI). Below are four C++ implementations of the region quadtree (the kind used for image compression, for example). The different implementations…

May 12, 2010

Catching Common Image Processing Programming Errors with Generic Unit Tests

When implementing image algorithms, I am prone to make these mistakes: swapping x and y; working on the wrong channel; making off-by-one errors, especially…

April 16, 2010

Simple, Fast* Approximate Minimum / Maximum Filters

*Fast = not toooo slow… For the image restoration tool I had to implement min and max filters (also erosion and dilation—in this case with a…

April 15, 2010

Experimental Tool for Removing Unwanted Artefacts in Textures

Many textures used for 3D art start from photographs. Ideally, such textures should be uniformly lit so that the texture does not interfere with…

April 7, 2010

Poisson Disk Sampling Example Code

I decided to put the Poisson disk sampling code here for download since the site that hosted it is down. The code accompanies the…

May 28, 2009

Getting More out of Seamless Tiles

I wrote an article for Dev.Mag covering some techniques for working with seamless tile sets such as making blend tiles, getting more variety with procedural colour  manipulation,…

December 15, 2008

A simple texture algorithm – faster code and more results

Faster Code A while back I wrote about a simple texture algorithm that I have been exploring. The Python implementation was very slow –…

November 15, 2008

Quadtrees

The code below implements some quadtree extensions, as discussed in another Dev.Mag tutorial about quadtrees (see Issue 27). The tutorial covers the following topics:…

November 14, 2008

A Simple Procedural Texture Algorithm – More Results and Code

In a previous post I explained a simple algorithm for generating textures. Below are some more examples of the kinds of textures that the…

Posts navigation

1 2 Next

Categories

  • Algorithms (22)
  • C++ (3)
  • Downloads (13)
  • Game Development (13)
  • Games (1)
  • Image Processing (11)
  • Java (2)
  • Mathematics (9)
  • Python (6)
  • Simulation (5)
  • Snippet (8)
  • Tools (4)
  • Tutorial (9)
  • Web Development (1)

Blogroll

  • Dev.Mag

Tag cloud

compression blending Dev.Mag distribution function sampling sum optimisation Mathematics response curve image partitioning procedural texture algorithm functional equations editor Python probability quadtree white noise 2D vector field quadtrees computer graphics Game Maker C++ Simulation z-transform Special Numbers Library game tools filtering spatial partitioning discrete calculus random tiles random distribution AI functional equation level editor difference equation Perlin noise random number generation artificial intelligence Image Processing grids maintainability Game Development

Categories

  • Algorithms (22)
  • C++ (3)
  • Downloads (13)
  • Game Development (13)
  • Games (1)
  • Image Processing (11)
  • Java (2)
  • Mathematics (9)
  • Python (6)
  • Simulation (5)
  • Snippet (8)
  • Tools (4)
  • Tutorial (9)
  • Web Development (1)

Blogroll

  • Dev.Mag

Tag cloud

algorithm Game Development white noise Perlin noise editor sum functional equations Python grids quadtrees spatial partitioning AI procedural texture image partitioning Game Maker Dev.Mag compression vector field discrete calculus Simulation probability z-transform distribution function response curve difference equation Special Numbers Library level editor blending artificial intelligence random number generation game tools filtering 2D maintainability computer graphics tiles sampling quadtree optimisation C++ functional equation Image Processing random distribution Mathematics random
Copyright code-spot. All rights reserved. | Powered by WordPress & Writers Blogily Theme