Image 之前)您是否使用旧版本的IM?尝试识别-版本。我有6.9.1-6 Q16 x86_64 2015-06-26 for i in range(500): for j in range(500): if abs(x[i,j][0] - 234) &
Image 之前)您是否使用旧版本的IM?尝试识别-版本。我有6.9.1-6 Q16 x86_64 2015-06-26 for i in range(500): for j in range(500): if abs(x[i,j][0] - 234) &,image,colors,bitmap,Image,Colors,Bitmap,之前)您是否使用旧版本的IM?尝试识别-版本。我有6.9.1-6 Q16 x86_64 2015-06-26 for i in range(500): for j in range(500): if abs(x[i,j][0] - 234) < TRESH and abs(x[i,j][1] - 211) < TRESH and abs(x[i,j][2] - 23) < TRESH: x[i,j] = ... # how to set the ne
之前)您是否使用旧版本的IM?尝试
识别-版本
。我有6.9.1-6 Q16 x86_64 2015-06-26
for i in range(500):
for j in range(500):
if abs(x[i,j][0] - 234) < TRESH and abs(x[i,j][1] - 211) < TRESH and abs(x[i,j][2] - 23) < TRESH:
x[i,j] = ... # how to set the new color in a smooth way?
# Make red-yellow gradient with blue square within
convert -size 500x500 gradient:red-yellow -fill none -stroke blue -strokewidth 10 -draw "rectangle 100,100 400,400" image.png
convert image.png \( +clone -fill "rgb(255,128,0)" -colorize 100% \) \
-compose difference -composite \
-evaluate Pow 2 -separate \
-evaluate-sequence Add -evaluate pow 0.5 \
-negate \
colour_distance.png
convert image.png \
\( +clone -fill fuchsia -colorize 100% \) \
\( colour_distance.png -sigmoidal-contrast 20 \) \
-composite z.png
#!/bin/bash
# Make red-yellow gradient with blue square within
convert -size 500x500 gradient:red-yellow -fill none -stroke blue -strokewidth 10 -draw "rectangle 100,100 400,400" image.png
# Make everything blue green, then everything else transparent, then blur the lot
convert image.png -fill green -opaque blue -fill white +opaque green -transparent white -blur x6 x.png
# Now overlay the blurred greeness onto the original after replacing blues with green
convert x.png \( image.png -fill green -opaque blue \) -compose overlay -composite result.png