Created functions for channel and red extraction