{"id":27154466,"url":"https://github.com/nilssonk/ordered-dithering-cpp","last_synced_at":"2025-07-23T19:04:02.179Z","repository":{"id":44803186,"uuid":"419625346","full_name":"nilssonk/ordered-dithering-cpp","owner":"nilssonk","description":"A tool for performing black and white Bayer dithering, written in C++17.","archived":false,"fork":false,"pushed_at":"2022-11-03T23:05:36.000Z","size":488,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-07T10:47:36.626Z","etag":null,"topics":["bayer","cpp","cpp17","dithering"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nilssonk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-21T07:33:58.000Z","updated_at":"2022-11-02T23:28:52.000Z","dependencies_parsed_at":"2022-08-26T10:20:34.753Z","dependency_job_id":null,"html_url":"https://github.com/nilssonk/ordered-dithering-cpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nilssonk/ordered-dithering-cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilssonk%2Fordered-dithering-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilssonk%2Fordered-dithering-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilssonk%2Fordered-dithering-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilssonk%2Fordered-dithering-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilssonk","download_url":"https://codeload.github.com/nilssonk/ordered-dithering-cpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilssonk%2Fordered-dithering-cpp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266737568,"owners_count":23976389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bayer","cpp","cpp17","dithering"],"created_at":"2025-04-08T17:34:42.602Z","updated_at":"2025-07-23T19:04:02.152Z","avatar_url":"https://github.com/nilssonk.png","language":"C++","readme":"# ordered-dithering-cpp\n\nA tool for performing black and white Bayer dithering, written in C++17.\n\n![Clang Build and Lint](https://github.com/nilssonk/vulkan-cpp/actions/workflows/clang-build.yml/badge.svg)\n![GCC Build](https://github.com/nilssonk/vulkan-cpp/actions/workflows/gcc-build.yml/badge.svg)\n\n### 2x2 Bayer Kernel\n\n![Dither 2x2 Kernel](.github/img/dither2.jpg)\n\n### 4x4 Bayer Kernel\n\n![Dither 4x4 Kernel](.github/img/dither4.jpg)\n\n### 8x8 Bayer Kernel\n\n![Dither 8x8 Kernel](.github/img/dither8.jpg)\n\n## Usage\n\n```\n# Use the 8x8 Bayer kernel (currently available sizes are 2x2, 4x4, and 8x8).\n# Increase pre-dithering brightness by 30 (pixel intensity values range from 0-255).\n# Increase pre-dithering contrast by 15%.\n# For the PNG output format, a bit depth of 1 is automatically selected.\nordered_dithering_main /path/to/some_image.jpg /path/to/output.png 8 30 1.15\n```\n\n## Dependencies\n\nThere are a few dependencies required to build this tool:\n\n#### Bundled/Fetched by CMake\n\n-   ASIO (https://think-async.com/Asio)\n\n-   fmt (https://github.com/fmtlib/fmt)\n\n#### Not included\n\n-   libvips (https://github.com/libvips/libvips)\n\n## Building\n\nThe recommended way of building this project is as follows:\n\n1. Grab the source code\n\n```\ngit clone https://github.com/nilssonk/ordered-dithering-cpp\ncd ordered-dithering-cpp\n```\n\n2. Run CMake to configure and build the project using presets and ninja-build\n\n```\n# Clang Debug build with clang-tidy static analysis enabled\ncmake --preset=clang-debug .\ncmake --build --preset=clang-debug\n# GCC Release build with LTO enabled\ncmake --preset=gcc-release-lto .\ncmake --build --preset=gcc-release-lto\n```\n\nIf all goes well, the executable can then be found at _main/ordered_dithering_main_ inside the build directory (default _${sourceDir}/build_).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilssonk%2Fordered-dithering-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilssonk%2Fordered-dithering-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilssonk%2Fordered-dithering-cpp/lists"}