Invert Function Invert will also work on the Z channel, but it assumes the Z is normalized, ie, between 0 and 1. If this is not the case, you will have an unpredictable result. If you need to invert a non-normalized Z channel, use ColorX with a formula something like this in the Z channel: MaxZRange-z
Synopsis image Invert( image, const char * channels ); Script image = Invert( image, "channels" ); Command Line shake -invert channels |