I tried negating the whole image before rotating the hue, but that didn't produce the expected result.
My image, and the expected result:


Code: Select all
convert neg-bw1.png -colorspace HSB -channel g -separate +channel -threshold 0% mask
Code: Select all
convert neg-bw1.png \( -clone 0 -negate \) \( -clone 0 -colorspace HSB -channel g -separate +channel -threshold 0% -negate \) -compose over -composite neg-bw1.png_lowsat_negate.png