An image binarization demo (opencv, javacv)