Multichannel thresholding

Multichannel thresholding  without debug