With numpy built opration, the speed of binarization operation improves six times.