Chroma key
Posted: 2018-02-16T07:09:03-07:00
Hi.I have the idea to implement any kind of Chroma key just like here: http://www.imagemagick.org/Usage/photos/#chroma_key, but using magick.net.
convert shirt.jpg -modulate 100,100,33.3 -colorspace HSL \
-channel Hue,Saturation -separate +channel \
\( -clone 0 -background none -fuzz 5% +transparent grey64 \) \
\( -clone 1 -background none -fuzz 10% -transparent black \) \
-delete 0,1 -alpha extract -compose multiply -composite \
shirt_mask.png
First three steps I think are easy:
image6.Modulate(new Percentage(100), new Percentage(100), new Percentage(33.3));
image6.ColorSpace = ColorSpace.HSL;
image6.Separate();
But cannot understand how to implement separate and clone steps.
Thanks
convert shirt.jpg -modulate 100,100,33.3 -colorspace HSL \
-channel Hue,Saturation -separate +channel \
\( -clone 0 -background none -fuzz 5% +transparent grey64 \) \
\( -clone 1 -background none -fuzz 10% -transparent black \) \
-delete 0,1 -alpha extract -compose multiply -composite \
shirt_mask.png
First three steps I think are easy:
image6.Modulate(new Percentage(100), new Percentage(100), new Percentage(33.3));
image6.ColorSpace = ColorSpace.HSL;
image6.Separate();
But cannot understand how to implement separate and clone steps.
Thanks