Procedurally generate output bitmaps that are locally similar to an input bitmap.
Original algorithm by ExUtumno. For an overview of how this program works, please refer to ExUtumno's excellent write-up.