Frame binarization