Added support for 2 column input to the _inverse_binarize_thresholding function in the binary case