Discuss digital image processing techniques and algorithms. We encourage its application to ImageMagick but you can discuss any software solutions here.
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2017-03-11T14:07:33-07:00
arm one chewed
I am sorry, but I do not understand this.
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.
bazza
Posts: 20 Joined: 2016-06-15T18:06:36-07:00
Authentication code: 1151
Location: Argntina
Post
by bazza » 2017-03-11T15:49:01-07:00
sorry.
generator mask to image
snibgo
Posts: 12159 Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK
Post
by snibgo » 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
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2017-03-11T16:53:19-07:00
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 .
bazza
Posts: 20 Joined: 2016-06-15T18:06:36-07:00
Authentication code: 1151
Location: Argntina
Post
by bazza » 2017-03-12T11:54:47-07:00
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
thanks!!!
bazza
Posts: 20 Joined: 2016-06-15T18:06:36-07:00
Authentication code: 1151
Location: Argntina
Post
by bazza » 2017-03-12T14:27:04-07:00
result: