libBMPTransByOpenCV Make picture (e.g. png, jpg, bmp) Image Binarization to 8 bit BMP, Then an 8 bit BMP to 1 bit BMP and resize.