Page 1 of 1
Help with filtering!!!
Posted: 2014-09-26T02:02:34-07:00
by danigonza
Hi to all the community!!!
I need a little help to transform this type of image :
To this one:
Which is type of transformation, mask that i need to apply to accomplish that??
Thanks in advance!!!!
Re: Help with filtering!!!
Posted: 2014-09-26T09:35:33-07:00
by fmw42
Please always identify your version of IM and platform
try this.
unix syntax
# find the two colors
Code: Select all
convert imagemagicklpreliminar.png -format "%[pixel:u.p{0,0}]" info:
srgb(91,155,213)
convert imagemagicklpreliminar.png -flop -format "%[pixel:u.p{0,0}]" info:
srgb(237,125,49)
# process image
Code: Select all
convert imagemagicklpreliminar.png -channel red -separate +channel -auto-level -threshold 50% -write show: \
+level-colors "srgb(91,155,213),srgb(237,125,49)" show:
or
Code: Select all
convert imagemagicklpreliminar.png -fuzz 40% \
-fill "srgb(91,155,213)" -opaque "srgb(91,155,213)" \
-fill "srgb(237,125,49)" -opaque "srgb(237,125,49)" \
result.png
adjust the fuzz value as desired