Commit Graph

  • cb938b2737 Add missing image kris 2021-01-25 22:45:08 +0000
  • 6c095c494b Merge branch 'main' of https://github.com/KrisKennaway/ii-pix into main kris 2021-01-25 22:44:02 +0000
  • 8577a00969 New default, modified Jarvis dither that propagates errors to 4 pixels in the forward x-direction. kris 2021-01-25 22:43:03 +0000
  • a6905a4868
    Merge pull request #1 from KrisKennaway/add-license-1 KrisKennaway 2021-01-25 22:37:02 +0000
  • 7f9d48aeb2
    Create LICENSE add-license-1 KrisKennaway 2021-01-25 22:36:50 +0000
  • dd8cf07c49 Add support for multiple palettes kris 2021-01-25 22:28:00 +0000
  • 923ec0cf6d Docs and examples kris 2021-01-25 22:27:24 +0000
  • d535d2430d Tidy a bit kris 2021-01-22 22:26:10 +0000
  • 081c815643 Flatten image array, about 5% faster kris 2021-01-22 22:19:48 +0000
  • 61e1448b87 Refactor to use a Dither cstruct kris 2021-01-22 22:06:25 +0000
  • 84442f32a7 Clean up some more kris 2021-01-21 23:33:12 +0000
  • e046f5fccf Clean up a bit kris 2021-01-21 23:23:19 +0000
  • a4ecf69610 Checkpoint WIP kris 2021-01-21 23:17:55 +0000
  • 9f0cd870e7 In 140px resolution show the output image with and without NTSC fringing kris 2021-01-16 18:11:21 +0000
  • f9f1398969 Show output as 560x384 regardless of input size kris 2021-01-16 17:57:21 +0000
  • 18ce9d8f82 Expand help text kris 2021-01-15 23:03:31 +0000
  • a061795022 Re-enable 140px mode kris 2021-01-15 22:58:01 +0000
  • 8d671f08ac Remove bitmap support kris 2021-01-15 22:34:22 +0000
  • d57d6f9038 Add flags to show input/output images kris 2021-01-15 22:34:03 +0000
  • ce99d62304 Tidy kris 2021-01-15 22:28:44 +0000
  • f132f0b84b Default to --lookahead=6 now that it's fast kris 2021-01-15 22:25:32 +0000
  • c5b8feb17e Parametrize dither patterns as command-line argument kris 2021-01-15 22:25:06 +0000
  • f5553e00b8 Rename kris 2021-01-15 22:20:28 +0000
  • 31b565f22a Refactor a bit kris 2021-01-15 22:18:25 +0000
  • 0109675bf2 Tidy a bit kris 2021-01-12 22:22:37 +0000
  • 348752dc35 Small tweaks and cleanups kris 2021-01-12 22:01:49 +0000
  • 02393381df Write out mmapp'ed numpy array instead of pickling kris 2021-01-12 22:01:29 +0000
  • ebd9f94d98 Mmap uncompressed distance array instead of bunzipping first. Since we don't end up reading most of the elements again, this is faster. kris 2021-01-12 20:44:39 +0000
  • 45ceb9987f Opt open_image a bit kris 2021-01-12 10:21:31 +0000
  • 32d54d5b78 cythonize dither_image kris 2021-01-12 10:00:56 +0000
  • 3e7cb37253 Oops, don't use python to cast to long kris 2021-01-12 00:27:03 +0000
  • 31446cb457 Minor tweaks kris 2021-01-11 23:54:00 +0000
  • 5ba25e7b9c Opt more! kris 2021-01-11 23:41:04 +0000
  • 6a4e5995a2 Opt more! kris 2021-01-11 23:04:47 +0000
  • 6b890a9b75 Optimize morer kris 2021-01-11 22:19:41 +0000
  • 5c07469751 Optimize more! kris 2021-01-11 21:35:13 +0000
  • b601360669 Optimize more kris 2021-01-11 20:56:26 +0000
  • a40b496a38 Optimize more kris 2021-01-11 20:43:28 +0000
  • 78660784ff cythonize dither_lookahead, still lots of low-hanging fruit kris 2021-01-11 20:21:00 +0000
  • bbc9eec29f malloc temporary array kris 2021-01-11 18:55:37 +0000
  • 575fa168ed Cythonize dither.apply kris 2021-01-10 22:12:14 +0000
  • ec691f5d6d Clean up and optimize kris 2021-01-10 20:10:32 +0000
  • 61b8171586 Working version with precomputation. kris 2021-01-10 16:06:14 +0000
  • 9129e680f5 Add support for euclidean distance in LAB space (though it doesn't give good results and doesn't seem to be much faster anyway) kris 2021-01-09 23:25:46 +0000
  • db87ad2f9e Working version kris 2021-01-09 18:05:36 +0000
  • 6bf7fd90ff WIP - optimizations but also some bugs kris 2021-01-08 22:44:28 +0000
  • 8f2424127f Remove debug code kris 2021-01-04 21:11:18 +0000
  • 7f47aa33e7 - work with image as numpy.ndarray instead of Image - use float32 representation instead of uint8 - Vectorize applying dither - Improve quality of 560px images by looking ahead N pixels, evaluating all 2^N colour choices and minimizing the total error. kris 2021-01-04 21:08:29 +0000
  • 82e5779a3a Allow modeling screen as 140x192x16 pixels (i.e. ignoring fringing) or 560x192 where each pixel has a choice of two colours. kris 2021-01-03 23:23:15 +0000
  • ff7a7365bb - Convert from sRGB to linear RGB when rescaling image, and when dithering. This is important for linear treatment of quantization errors. kris 2021-01-03 22:32:04 +0000
  • 2458bf98f7 Pack output in Apple II screen format and save as binary file. kris 2020-12-30 10:27:33 +0000
  • 38d621a097 Fix edge conditions in dithering kris 2020-12-29 21:03:17 +0000
  • da420b66c8 Limit colour choices to the two available at each pixel. kris 2020-12-29 20:47:33 +0000
  • 5a6eb08db1 Floyd-Steinberg dithering to DHGR colour palette. Doesn't yet take into account the restrictions on neighbouring colours. kris 2020-12-29 18:24:29 +0000