Change int mat type to uchar