I wish to arm one chewed automatic to make use of fast-neural-doodle
I found http://www.fmwconcepts.com/imagemagick/kmeans/index.php but it does not give the possibility to choose the palette and does not do median
automask 4 color
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: automask 4 color
I am sorry, but I do not understand this.arm one chewed
My kmeans script allows you to choose a set of colors and then does kmeans adjustment of the colors.
If you want an exact color palette mapping see -remap http://www.imagemagick.org/Usage/quantize/#remap with -dither none.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: automask 4 color
I don't understand what you want. Perhaps you want to transform the gray images to the coloured ones. Windows BAT syntax:
Code: Select all
%IM%convert ^
bg.png ^
-colorspace Gray ^
-blur 0x5 ^
( -size 10x1 xc:Lime ^
-size 10x1 xc:Blue ^
-size 10x1 xc:Red ^
-size 70x1 xc:Yellow ^
+append ) ^
-clut ^
fnd_out.png
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: automask 4 color
I think you have to manually modify the second mask from the first yourself in some tool such as GIMP or Photoshop as is done in https://github.com/alexjc/neural-doodle.
Re: automask 4 color
thanks!!!snibgo wrote: ↑2017-03-11T16:36:08-07:00 I don't understand what you want. Perhaps you want to transform the gray images to the coloured ones. Windows BAT syntax:Code: Select all
%IM%convert ^ bg.png ^ -colorspace Gray ^ -blur 0x5 ^ ( -size 10x1 xc:Lime ^ -size 10x1 xc:Blue ^ -size 10x1 xc:Red ^ -size 70x1 xc:Yellow ^ +append ) ^ -clut ^ fnd_out.png