Damoy / ImageFilter

Reduced colors palette image filter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image filter

Version 0.3 - Launch configuration

You can now provide command arguments in order to configure application behavior.

Available arguments

Command name Command value example Definition
finput resources/input/cube.png Image file / folder to process
fpalette _auto Palettes file or folder to use
fgen resources/palettes/palettes_10random_4to16 Palettes generation file output
pgen 10 Number of palettes to generate
cgenMin 4 Minimum colors number of one palette
cgenMax 16 Maximum colors number of one palette

Complete command example:

java -jar ImageFilter.jar -finput resources/input/cube.png -fpalette _auto -pgen 10 -cgenMin 4 -cgenMax 16 -fgen resources/palettes/palettes_10_random_4to16.if

Above command will make the application to:

  • generate 10 color palettes
    • each palette with a minimum of 4 colors
    • each palette with a maximum of 16 colors
  • use "palettes_10_random_4to16.if" file as palettes generation output file
  • process "cube.png" image using generated palettes only


Version 0.2 - Palette plugin

Adding your own colors palette

  • [Option] | Create your own palette file at "./resources/palettes/".
  • Add your own palette definition (follow instructions at "./resources/palettes/palettes_examples.if") on your desired palette file.


Version 0.1

Available palettes

  • Custom 5 colors.
  • Custom 8 colors.
  • Custom 16 colors.

Source image and processed images [source-p5-p8-p16].


Custom 5 colors palette

Filter color RGB value
Dark Burgundy [79,49,48]
Burgundy [80,140,215]
Orange [170,80,66]
Skin [216,189,138]
Yellow [216,215,143]

Custom 8 colors palette

Filter color RGB value
Black [0,0,0]
Violet [85,65,95]
Gray [100,105,100]
Orange [215,115,85]
Blue [80,140,215]
Green [100,185,100]
Yellow [230,200,110]
White [220,245,255]

Custom 16 colors palette

Filter color RGB value
Light Pink [232,204,210]
Light Beige [222,214,202]
Light LightGreen [203,211,187]
Light DarkGreen [171,193,185]
Light DarkBlue [156,171,177]
Pink [214,162,173]
Beige [195,181,159]
LightGreen [160,175,132]
DarkGreen [102,143,128]
DarkBlue [74,102,112]
Dark Pink [98,74,79]
Dark Beige [89,83,73]
Dark LightGreen [73,80,60]
Dark DarkGreen [47,65,59]
Dark DarkBlue [34,47,51]
Gray [100,105,100]

[Try it out]

1. Put the desired images in "/resources/input/".
2. Launch by double clicking on ImageFilter.jar.
3. Wait few seconds and enjoy processed images at "/resources/output" :)

About

Reduced colors palette image filter.

License:GNU General Public License v3.0


Languages

Language:Java 100.0%