Matlab image binarization tests