thresholding: removed selected input layer and added each available input channel layer separately, fixes #615