Skip to content
A image filter that uses cluster recognition to replace every pixel with the mean of its bretheren of similar color.
Haskell Nix
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
CHANGELOG.md
LICENSE
README.md
Setup.hs
landscape.jpeg
landscapeResult.png
mean-color-filter.cabal
release.nix
shell.nix
sierra.jpg
sierraResult.png

README.md

This project usess cluster recognition on a sample of 300 pixels in an image to reduce the number of colors in said image.

usage

mean-color-filter image.png cutFactor # replace cutFactor with a number between 0 and 1.8ish

examples

to build:

make sure you have nix installed.

nix-build release.nix

cabal new-build or cabal v1-buildgt might also work in a pinch.

You can’t perform that action at this time.