9 lines
724 B
Bash
9 lines
724 B
Bash
#!/usr/bin/env bash
|
|
set -eu
|
|
cd "$(dirname "$0")"
|
|
# Preserve candidate 02 outside the generated left sleeve/arm and connected drape.
|
|
# A bounded two-pixel transition joins the registered generated donor.
|
|
convert -size 1060x1484 xc:black -fill white -stroke none -draw 'path "M 518,552 C 572,566 618,609 643,653 L 676,741 L 702,818 L 728,887 L 749,967 L 775,1050 L 800,1124 L 766,1214 L 764,1484 L 330,1484 L 359,1200 L 389,1050 L 326,1034 L 328,959 L 382,908 L 477,890 L 496,730 Z"' -blur 0x2 -threshold 0.5% arm-04-support-mask.png
|
|
convert arm-04-support-mask.png -blur 0x1 arm-04-blend-mask.png
|
|
convert art-native-candidate-02.png art-generated-candidate-04.png arm-04-blend-mask.png -composite art-native-candidate-04.png
|