I am trying to re-create the look of Kodak Infrared Ektachrome (KIE), by shooting through a yellow filter. This blocks blue light, so the blue channel has pure infrared, and the red has red+infrared and the green has green+infrared.
To emulate KIE, one must subtract the blue channel (infrared) from the red and green channels, and then move the blue channel (infrared) into the red channel, red into green, and green into blue — with some minor adjustments to R and G for proper balance, as illustrated below:

Is this something that can be accomplished with XnConvert or NConvert?
If not, is there any way to develop a plugin for doing so, that would appear on the "Add Action>" menu on the "Actions" tab? I looked through the XnConvert.app/Contents folder, and didn't see anything hopeful. locate(1) doesn't show any other files or directories with "XnConvert" in their names.
I am able to swap channels with a scaling (gamma) factor in ImageMagick, (using the -color-matrix command-line option) but have not discovered any way to do channel math in ImageMagick, to remove the infrared from the red and green channels.
I know there are ways to use GUI editors like Photoshop to do this, but it is tedious and I'd like a 90% automagic solution that I could then tweak in a photo editor.
Thanks for any advice offered!