Photoshop
Selecting
Channel calculations
Blending layers and channels
Blend channels with the Apply Image command
Blend channels with the Calculations command
Add and Subtract blending modes
This page on the Web